Hi Florent,
2 looks very nice as I can use it in many places. I just don't
understand - how does the node-set() function come into play (in my
case it would be the ms extensions)?
2006/10/10, Florent Georges <darkman_spam(_at_)yahoo(_dot_)fr>:
For 2/, you have to use you prefered xx:node-set() extension or XSLT
2.0. You then create the template rules that make the escaping, in a
particular mode:
<xsl:template match="*" mode="serialize">
<xsl:text>&_lt;</xsl:text>
<xsl:value-of select="name()"/>
<xsl:apply-templates select="@*" mode="serialize"/>
<xsl:text>&_gt;</xsl:text>
<xsl:apply-templates select="node()" mode="serialize"/>
<xsl:text>&_lt;/</xsl:text>
<xsl:value-of select="name()"/>
<xsl:text>&_gt;</xsl:text>
</xsl:template>
Thanks a lot,
--
Jan
www.limpens.com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--