Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about CDATA

Status
Not open for further replies.

ynaik002

Programmer
Jan 9, 2007
1
US
Hi there,
I am trying to wrap all data that has special characters in it with <![CDATA[ ]]> section in an xsl.
for example <bookname><![CDATA[Rainbow & it's Story]]></bookname>...The problem is that i am retriving the book name using
<xsl:value-of select="BookName"/>....so i wanted to know if the following syntax is correct...

<bookname><![CDATA[ ]]><xsl:value-of select="BOOKNAME"/><![CDATA[ ]]></bookname>

Any corrections or changes needed, please let me know....

thanks...
rahul
 
It is unclear whether you are attempting actually to place the data in the stylesheet, or are merely concerned about the output of the stylesheet. Your problem description could be better...

However, in response to, "i[sic] wanted to know if the following syntax is correct" is an emphatic "No".

Please try to provide a better problem description.

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top