to include an instruction ssi in a xslt 2003-03-28 - By BAILLEUX Benoit FTRD/DMI/CAE
Are you sure that there is a space character beetween the "<!" and the "--" ? -- BB
-----Message d'origine----- De : noel.jean-baptiste@(protected) [mailto:noel.jean-baptiste@(protected)] Envoye : vendredi 28 mars 2003 15:03 A : xalan-j-users@(protected) Objet : to include an instruction ssi in a xslt
Hello, I tested without success: in the xml i put my instruction ssi just as it is: < root > <! -- #include file="file.html "- - > </root > in the xsl, I made: </xsl:template > < xsl:template match="comment() "> < xsl:text sayable-output-escaping="yes"><! -- </xsl:text > < xsl:value-of select ="."/> < xsl:text sayable-output-escaping="yes"> -- ></xsl:text > </xsl:template > and I see in source HTML: <! -- #include file="file.html "- - > But this one was not treated by Apache. Also I tried to put the instruction ssi in Doc HTML and in my xsl I do: < xsl:variable name="htmldoc "> < xsl:value-of select="document(' testssixsl.html ')"/> </xsl:variable > < xsl:value-of select="$htmldoc"/>
the testssixsl.html contains just: < body>test<! -- #include file="rg "-- ></body >
and I see in source HTML: test
The instruction <! -- #include file="rg "- - > does not appear there and was not treated. Rem: When I do not pass by a xslt for my ssi, Apache treats the ssi well.
thank you for your answers.
jib
|
|