andreathedove Posted May 5, 2007 Share Posted May 5, 2007 Hello,in my XML file I have an element:...<codice><![CDATA[<object type='application/x-shockwave-flash' data='al_cocco.swf' width='500' height='400'><param name='movie' value='al_cocco.swf' /><param name='quality' value='high' /></object>]]></codice> ...the result ishttp://www.allinonenet.it/gamezone/gameaon...ay.asp?gameid=6why?Andrea Link to comment Share on other sites More sharing options...
boen_robot Posted May 5, 2007 Share Posted May 5, 2007 Because CDATA makes all of it's contents into Character DATA. That is, all special signs become their entitites. "<" becomes ">" and so on. Those signs are escaped in the output, rendering the text as "<". You can "disable-output-escaping" by adding that attribute with a value of "yes" to the value-of element, like so: <xsl:value-of select="codice" disable-output-escaping="yes"/> Link to comment Share on other sites More sharing options...
andreathedove Posted May 5, 2007 Author Share Posted May 5, 2007 Because CDATA makes all of it's contents into Character DATA. That is, all special signs become their entitites. "<" becomes ">" and so on. Those signs are escaped in the output, rendering the text as "<". You can "disable-output-escaping" by adding that attribute with a value of "yes" to the value-of element, like so:<xsl:value-of select="codice" disable-output-escaping="yes"/> thanksssssssssssssss youuuuuuuuuuu Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.