Subject: [xsl] Output CDATA tags From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx> Date: Fri, 28 Jan 2005 14:47:57 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL Newbie: how to inpage, David Carlisle | Thread | Re: [xsl] Output CDATA tags, David Carlisle |
Re: [xsl] XSL Newbie: how to inpage, David Carlisle | Date | Re: [xsl] XSL Newbie: how to inpage, David Carlisle |
Month |