Subject: problem with processing CDATA tags in xml
From: "Robby Pelssers" <robby.pelssers@xxxxxxxxx>
Date: Thu, 8 Apr 2010 13:17:58 +0200
|
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<sub>p(max)</sub> is the
maximum power gain, if K > 1. If K < 1 then
G<sub>p(max)</sub> = 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
|