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

problem with processing CDATA tags in xml

Subject: problem with processing CDATA tags in xml
From: "Robby Pelssers" <robby.pelssers@xxxxxxxxx>
Date: Thu, 8 Apr 2010 13:17:58 +0200
 problem with processing CDATA tags in xml
Hi all,

I have a problem processing following tag:

The original tag before transformation was:
<Value><![CDATA[G<sub>p(max)</sub> is the maximum power gain, if K > 1. If K <
1 then G<sub>p(max</sub> = MSG.]]></Value>

After transformation it becomes like below (which is the input from which I
need to continue processing) <Value>G&lt;sub&gt;p(max)&lt;/sub&gt; is the
maximum power gain, if K &gt; 1. If K &lt; 1 then
G&lt;sub&gt;p(max)&lt;/sub&gt; = MSG.</Value>


My customer wants to use <sub> and <sup> tags so in the rendition it's
formatted nicely.

Normally this did not cause any problems but now they have a mix of <sub> tags
and '>' (greather then)  and '<' (smaller then)...

When I use <xsl:value-of select="." disable-output-escaping="yes"/>  I get
invalid xml for this particular case.


Does anyone have a bright idea how to solve these kinds of problems in a nice
way?

Thx in advance,
Robby

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.