]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2107: org.apache.batik.bridge.BridgeException: Unable to make sense of URL for...
authorLuis Bernardo <lbernardo@apache.org>
Wed, 25 Sep 2013 23:09:55 +0000 (23:09 +0000)
committerLuis Bernardo <lbernardo@apache.org>
Wed, 25 Sep 2013 23:09:55 +0000 (23:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1526329 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/apps/FOUserAgent.java

index 68064343eccd7a4274bbcb35a21ace8ebaa56ef7..8b9e079ab8566c8da61c788aa98327b359f3c328 100644 (file)
@@ -408,7 +408,7 @@ public class FOUserAgent {
         try {
             // Have to do this so we can resolve data URIs
             StreamSource src = new StreamSource(resourceResolver.getResource(uri));
-            src.setSystemId(uri);
+            src.setSystemId(new File(uri).toURI().toURL().toExternalForm());
             return src;
         } catch (URISyntaxException use) {
             return null;