Re: [xsl] create escaped(?) html of some nodes

Subject: Re: [xsl] create escaped(?) html of some nodes
From: "Jan Limpens" <jan@xxxxxxxxxxx>
Date: Tue, 10 Oct 2006 21:42:22 -0300
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@xxxxxxxx>:
  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

Current Thread