andreathedove Posted May 5, 2007 Report 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 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now