Hello, Has anyone successfully packaged the docbook-xsl stylesheets into a WAR and used them with JAXP?
What I am trying to do is almost exactly what is described under "Adding XSL transformation (XSLT)" on this web page: http://xmlgraphics.apache.org/fop/0.20.5/servlets.html However, I am packaging the docbook-xsl stylesheets into a WAR file and using them in the following Java statements: InputStream is = this.getClass()getResourceAsStream("/xsl/xhtml/docbook.xsl"); Templates template = tFactory.newTemplates(new StreamSource(is)); Transformer transformer = template.newTransformer(); In order to use the docbook-xsl stylesheets, I had to write a custom URIResolver so that the <xsl:include href=""/> elements in the stylesheets would resolve to the stylesheet files in the WAR. I know the URIResolver is working; however, I get the following errors when trying to do the transform: 11:22:37,434 INFO [STDOUT] SystemId Unknown; Line #85; Column #15; Can not load requested doc: C:\Jboss\jboss-4.0.\bin\..\common\l10n.xml 11:22:37,434 INFO [STDOUT] SystemId Unknown; Line #95; Column #20; No localization exists for "en" or "". Using default "en". 11:22:37,434 INFO [STDOUT] Unknown error in XPath. I've exchanged email with the docbook-xsl group, and we think the problem has something to do with this type of element in the docbook-xsl stylesheets: <xsl:param name="l10n.xml" select="document('../common/l10n.xml')"/> Does anyone know if there is something else I need to do in order to get the Transformer to process the document() function correctly? Thanks, Don Adams --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
