[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] CDATA again


Subject: Re: [xsl] CDATA again
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Fri, 11 Feb 2005 11:22:24 -0000

----- Original Message ----- From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, February 11, 2005 11:13 AM
Subject: [xsl] CDATA again



I need to produce output where some of the input node are inside a valid CDATA comment.

E.g:
..
<targetGroup markup="yes">
<![CDATA[
                     <ul>
                       <li>PK Bestandskunden
                       (Postpaid+Prepaid)</li>
                       <li>Neukunden</li>
..

What need I put in here to get this?


<xsl:template match="td" mode="markup"> ???? <xsl:copy-of select="child::node()"/> ???? </xsl:template>

I tried without success:
- <xsl:text><![CDATA[</xsl:text>
- &lt;![CDATA[

Robert

Given that this sort of design invariably leads to problems later I would try to avoid it but you can put:
cdata-section-elements
in the xsl:output element and specify a whitespace delimited list of relevant element names.



Joe



Current Thread