xsl-list
[Top] [All Lists]

RE: [xsl] problem with processing CDATA tags in xml

2010-04-08 06:44:21
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>


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


An excellent idea. If you want <sub> and <sup> to be recognized as tags, all
they need to do is get rid of the CDATA:

<Value>G<sub>p(max)</sub> is the maximum power gain, 
  if K > 1. If K &lt; 1 then G<sub>p(max</sub> = MSG.</Value>

The only possible reason for having the CDATA is to prevent the <sub> and
<sup> being recognized as tags, so if you want them treated as tags, just
cut out the CDATA.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--