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

RE: problem with processing CDATA tags in xml

Subject: RE: problem with processing CDATA tags in xml
From: "Robby Pelssers" <robby.pelssers@xxxxxxxxx>
Date: Thu, 8 Apr 2010 14:46:21 +0200
RE:  problem with processing CDATA tags in xml
Hi Martin,

Actually I generate 2 kinds....

- xhtml (web rendition)
- DITA map/topics (which they import into framemaker to produce nice PDF's
showing their product information.

But even DITA recognizes these <sub> and <sup> tags just as AdobeFramemaker
does, so we use them for all publications actually.

Kind regards,

-----Original Message-----
From: Martin Honnen [mailto:Martin.Honnen@xxxxxx]
Sent: Thursday, April 08, 2010 2:07 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  problem with processing CDATA tags in xml

Robby Pelssers wrote:

> Their product schema does not allow a <Value> to have subtags... That's why
they use CDATA.  And in my opinion that's not so bad since from a data point
of view these html tags are pure a rendition thing.
> But basically I see 2 options from the responses:
> (1): Use cdata-sections attribute  on <xsl:output>
> (2): make changes to the schema for all elements which may have html tags as
> I still see a problem with (1)... in the end when serializing to html I
still want to disable-output-escaping so the browser will recognize <sub> and
<sup> as tags instead of plain text... but then the greater then '>' will
result in invalid xml.

You will need to explain in more detail what you want to achieve.
Do you have different stylesheets, some outputting XML, some HTML? Or in
what case do you want a CDATA section and in what case do you want to
output HTML elements like 'sub'?


	Martin Honnen

Current Thread


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.
First Name
Last Name
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.