www.webdeveloper.com
Results 1 to 2 of 2

Thread: html code

  1. #1
    Join Date
    Jul 2003
    Posts
    10

    Question html code

    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.

  2. #2
    Join Date
    Aug 2003
    Location
    London, United Kingdom
    Posts
    117
    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
    You end up being who you are.
    http://www.geocities.com/lillamarta

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles