Hi all, I have to build a simple transformation on a document that contain a XIncude element. I try using xalan-J-2.7.0 with a batch script like this:
set classpath=D:\javatools\xalan_2_7_0\xalan.jar;D:\javatools\xalan_2_7_0\xerces impl.jar;D:\javatools\xalan_2_7_0\xml-apis.jar java -cp %classpath% xalan.jar -V -IN inputDoc.xml -XSL transformation.xsl -OUT outputDoc.html (all classpath specification seems correct). The piece of input : ... <segmentoSQL> <xi:include href="D:\myIncludedDocument.txt" parse="text" xmlns:xi="http://www.w3.org/1999/XSL/XInclude"> <xi:fallback> Document non found </xi:fallback> </xi:include> </segmentoSQL> ... and the piece of transformation ... <xsl:template match="testresults"> ... <xsl:apply-templates select="results/failure"/> <xsl:apply-templates select="results/error"/> <p>Sezione SQL</p> <xsl:value-of select="results/segmentoSQL" /> <p> <a href="#overview">Torna al Riepilogo</a> </p> ... </xsl:template> As results, first i got the strange version message : >>>>>>> Versione Xalan XSLT4J Java 2.5.4, <<<<<<< and then I verify that the xi:include statament was totally ignored. No other error message. I suspect that the xerces parser were not used, nor his xi:include-treatment is enabled I know the there are some properties that I can set but I don't know how to do this in such a simple batch scenario. Can anyone give me a suggest? Thanks in advance Vito Caleandro