xsl in WAR
Hi, 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. Any ideas? Regards, Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsl in WAR
Hi, 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. Any ideas? Regards, Laurent. Maybe you should let the server unpack you war, so the common.xsl file is actually on the filesystem.. Regards, Wouter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xsl in WAR
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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/ I think this should be no problem if the 'commons.xsl' is in the same folder as the xsl-fo containing this xsl:include... otherwise you're gonna have to use an absolute url. 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. baseDir is q the current working directory /q if FOP is being embedded. (see: http://xml.apache.org/fop/configuration.html ) Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsl in WAR
[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]
Re: xsl in WAR
Thx to all that replied, for the help supplied. Regards, Laurent. ---Original Message--- From: [EMAIL PROTECTED] Date: Tuesday, October 21, 2003 10:16:09 PM To: [EMAIL PROTECTED] Subject: Re: xsl in WAR 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] . IncrediMail - Email has finally evolved - Click Here