[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: CDATA again

Subject: Re: CDATA again
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Date: Fri, 11 Feb 2005 11:22:24 -0000
valid cdata
----- Original Message ----- From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, February 11, 2005 11:13 AM
Subject: 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.