Click to See Complete Forum and Search --> : html code


amel
08-31-2003, 12:39 PM
my problem is when i have a html code as data in an xml document and i want to configure my data with an xslt page the code is viewed like it is in html
i want to say that when i have for example:
<data> &lt;P> COUCOU§ &lt;/P> </DATA>
WITH XSLT it 'is viewed
<p> coucou! </p>
please help me;
thanks.

lillu
08-31-2003, 02:41 PM
Hi,

If you need to place characters that need escaping, like the < or > characters, or you just don't want the xml parser to parse that bit, but view it as it is, you can use CDATA sections:

<yourtag><![CDATA[<p>yourtext</p>]]></yourtag>

HTH,

Lillu