I am having some difficulty getting fop-0.93 to work with DocBook in one very 
specific case.  I need to tell fop/docbook where to find images, so initially 
I tried setting this 'img.src.path' docbook xslt param.  This is set to a 
fully resolved file path.  Actually this works great on my linux box.  

And then a user on windows tried it:
java.net.MalformedURLException: unknown protocol: d
        at java.net.URL.<init>(URL.java:574)
        at java.net.URL.<init>(URL.java:464)
        at org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:138)
        at org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:638)
        at org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:421)
        at org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:395)
        at org.apache.fop.image.ImageFactory.loadImage(ImageFactory.java:190)
        at org.apache.fop.image.ImageLoader.loadImage(ImageLoader.java:56)
        at 
org.apache.fop.image.ContextImageCache.getImage(ImageFactory.java:432)
        at org.apache.fop.image.ImageFactory.getImage(ImageFactory.java:157)
        at 
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:68)
        at org.apache.fop.fo.FObj.processNode(FObj.java:118)
        at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:321)
        at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185)
        at 
com.icl.saxon.output.ContentHandlerProxy.startElement(ContentHandlerProxy.java:119)
...

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116150&postdays=0&postorder=asc&start=0

So that leaves me with the question of which is correct.  Is 'img.src.path' 
expected to be a URL, as fop believes?  

Also, in general since setting a single 'img.src.path' always seemed kind of 
limiting anyway, would it instead make sense to not rely on that and instead 
plugin in a URIResolver to find the images (this would obviously not work out 
for other docbook formats however)?  Via FOUserAgent.setURIResolver() I 
mean...  What else beside images is this URIResolver asked to resolve?

Thanks,
Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to