Hi Ok so I don't have idea. I don't use xalan anymore. Marc On July 23, 2015 8:38:38 AM CEST, "Grégory Pakosz" <[email protected]> wrote: >Hi Marc, > >My question isn't about what I'm trying to get as an output document. I >just wrote a test t.xsl file that just contains <xsl:message> to >reproduce >my problem. > >The problem is: without XSLTC, <xsl:message> produces: >file:///home/gregory/xalan-test/t.xsl; Line #14; Column #18; Hello > >But with XSLTC, <xsl:message> produces: >(Location of error unknown)Hello > >In other words, I don't understand why using -XSLTC makes Xalan lose >the " >file:///home/gregory/xalan-test/t.xsl; Line #14; Column #18;" location >information. > >This is happening whatever in.xml, and wherever <xsl:message> is used >in an >XSL stylesheet. > >Gregory > >On Thu, Jul 23, 2015 at 8:32 AM, Marc <[email protected]> wrote: > >> 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é. >>
-- Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
