Do you try to write an root element? So your output flow will be an xml file. Marc
On July 21, 2015 3:04:58 PM CEST, "Grégory Pakosz" <[email protected]> wrote: >Hello, > >I'm using the following command XSL stylesheet > >t.xsl >----- ><?xml version="1.0" encoding="utf-8"?> ><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > > <!-- ATTENTION this doctype (especially the doctype-system part) > is needed to have the same rendering in mozilla than for javadoc --> > <xsl:output > method="html" > doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" > doctype-system="http://www.w3.org/TR/html4/loose.dtd" > /> > > <xsl:template match="/"> > <xsl:message>Hello</xsl:message> > </xsl:template> > ></xsl:stylesheet> > > >--- >When I run it with Xalan for Java CLI, I get the following output: >$ java -classpath >/usr/share/java/xalan.jar:/usr/share/java/serializer.jar:/usr/share/java/xml-apis.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xsltc.jar >org.apache.xalan.xslt.Process -IN in.xml -XSL t.xsl -OUT out.html >file:///home/gregory/xalan-test/t.xsl; Line #14; Column #18; Hello > >However, when I add -XSLTC I'm getting: >$ java -classpath >/usr/share/java/xalan.jar:/usr/share/java/serializer.jar:/usr/share/java/xml-apis.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xsltc.jar >org.apache.xalan.xslt.Process -IN in.xml -XSL t.xsl -OUT out.html >-XSLTC >(Location of error unknown)Hello > > >Could you please tell me how to make XSLTC output the proper source >location for the <xml:message> ? > >Gregory -- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
