xsl-list
[Top] [All Lists]

Output CDATA tags

2005-01-28 06:47:57
Inside my XSL I have a templates that just puts an HTML fragment into
XML CDATA comments. 

        <xsl:template match="td" mode="markup">
                <xsl:text><![CDATA[</xsl:text>
                <xsl:copy-of select="child::node()"/>
                <xsl:text>]]></xsl:text>
        </xsl:template>

What I want is that a 
<td>
        <span>foo...<br/></span
</td>

is transformed into a
<td>
        <![CDATA[
        <span>foo...<br/></span
        ]]>
</td>

But all I get is:
<td>
        </xsl:text><xsl:copy-of select="child::node()"/> <xsl:text>
</td> 

What am I doing wrong?

Robert
 

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>