Right. It's important to realize that FOP cannot help during the XSLT
stage at all. The document() function is purely XSLT. Setting an
URIResolver on FOP's FopFactory only helps with resolving URIs for
images, fonts etc.

Arturo, I don't know how you use the EntityResolver in your code, but
I'd propose to switch to URIResolver entirely. Please see the FopServlet
as an example how a URIResolver can be set to be used by both the XSLT
stage and the FO transformation:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/servlet/FopServlet.java?view=markup

The key part there is this:

this.uriResolver = new ServletContextURIResolver(getServletContext());

//This is for the XSLT stage (document() etc.)
this.transFactory = TransformerFactory.newInstance();
this.transFactory.setURIResolver(this.uriResolver);

//This is for the FO transformation (images, fonts etc.)
this.fopFactory = FopFactory.newInstance();
this.fopFactory.setURIResolver(this.uriResolver);

Good luck!

On 18.02.2007 09:52:09 Andreas L Delmelle wrote:
> On Feb 18, 2007, at 02:37, Arturo Perez wrote:
> 
> > In article <[EMAIL PROTECTED]>,
> >  Jeremias Maerki <[EMAIL PROTECTED]> wrote:
> >
> >> http://xmlgraphics.apache.org/fop/0.93/embedding.html#fop-factory
> >
> > I had already been setting the URIResolver and that doesn't seem to
> > work either.  My document calls would look like
> >    document('urn:hayesinc:report:id')
> 
> A call to document() is resolved during XSLT stage. Setting FOP's  
> URIResolver will do you little good here, unfortunately.
> Xalan indeed allows an EntityResolver to be set from the command- 
> line, but I didn't immediately find a reference on their site as to  
> how this can be set if JAXP is used...
> 
> Perhaps this is a question better suited for [EMAIL PROTECTED]
> 
> Cheers,
> 
> Andreas



Jeremias Maerki


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

Reply via email to