[Home] [By Thread] [By Date] [Recent Entries]
Title: Emulating <xsl:copy-of> with MSXML (was : Passing parameters to XSL...)
Chuck white wrote :
Aargh, it means that <xsl:copy-of> is not supported ! What I'm trying to do is something like XSL code generation (workaround for the absence of support of <xsl:param>... : <Template><![CDATA[<xsl:stylesheet><xsl:template match="]]><Parameter/><!CDATA[[<xsl...]]></Template> is transformed with something like : <xsl:template match="text()"><xsl:copy-of select="."/></xsl:template>
which, I thought, would output :
Actually, it works BUT escapes the "<,>" and what I feed the processor with is then :
This is apparently the right beahviour (see the XSL specs : xsl:value-of converts to strings). Therefore xsl:copy-of would fulfill my needs, but it is not implemented in MSXML. I tried using <xsl:copy> instead of <xsl:value-of> but then the <![CDATA[ and ]]> are not stripped. Has anyone got any ideas ? Cheers, Sebastien
|

Cart



