--- /home/cpdev/src/classpath/gnu/xml/transform/XSLURIResolver.java	2005-07-02 21:03:17.000000000 +0000
+++ gnu/xml/transform/XSLURIResolver.java	2005-06-30 05:34:22.000000000 +0000
@@ -134,41 +134,33 @@
                   }
               }
           }
-        if (in == null)
+        if (in == null && url != null)
           {
-            if (url != null)
+            systemId = url.toString();
+            node = (Node) nodeCache.get(systemId);
+            // Is the resource up to date?
+            URLConnection conn = url.openConnection();
+            Long llm = (Long) lastModifiedCache.get(systemId);
+            if (llm != null)
+              {
+                lastLastModified = llm.longValue();
+                conn.setIfModifiedSince(lastLastModified);
+              }
+            conn.connect();
+            lastModified = conn.getLastModified();
+            if (node != null && 
+                lastModified > 0L &&
+                lastModified <= lastLastModified)
               {
-                systemId = url.toString();
-                node = (Node) nodeCache.get(systemId);
-                // Is the resource up to date?
-                URLConnection conn = url.openConnection();
-                Long llm = (Long) lastModifiedCache.get(systemId);
-                if (llm != null)
-                  {
-                    lastLastModified = llm.longValue();
-                    conn.setIfModifiedSince(lastLastModified);
-                  }
-                conn.connect();
-                lastModified = conn.getLastModified();
-                if (node != null && 
-                    lastModified > 0L &&
-                    lastModified <= lastLastModified)
-                  {
-                    // Resource unchanged
-                    return new DOMSource(node, systemId);
-                  }
-                else
-                  {
-                    // Resource new or modified
-                    in = conn.getInputStream();
-                    nodeCache.put(systemId, node);
-                    lastModifiedCache.put(systemId, new Long(lastModified));
-                  }
+                // Resource unchanged
+                return new DOMSource(node, systemId);
               }
             else
               {
-                throw new TransformerException("can't resolve URL: " +
-                                               systemId);
+                // Resource new or modified
+                in = conn.getInputStream();
+                nodeCache.put(systemId, node);
+                lastModifiedCache.put(systemId, new Long(lastModified));
               }
           }
         InputSource input = new InputSource(in);
@@ -215,11 +207,6 @@
               {
                 url = new URL(href);
               }
-            else
-              {
-                // See below
-                throw new MalformedURLException(systemId);
-              }
           }
         return url;
       }
