[EMAIL PROTECTED] wrote:
I read about how retrieving images in WAR files.
But how to access xsl-files located in WAR files.

My xsl-fo file includes another xsl file:
<xsl:include href="common.xsl"/>

However, while running the web-application, I get a java.io.FileNotFoundException: C:\jboss-3.0.4\bin\common.xsl

I thought, just like images, FOP would look into the baseDir location.

The XSLT is processed by Xalan, not FOP. You'll have to use a j.x.t.Transformer object directly, as demonstrated in http://xml.apache.org/fop/embedding.html#render-with-xslt and supply a custom URIResolver to the TransformerFactory (before you create the Transformer), which pulls your included style sheet from the WAR using a resource stream or some similar WAR magic.

J.Pietschmann



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



Reply via email to