[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

unparsed CDATA maintain HTML

Subject: unparsed CDATA maintain HTML
From: "George @dante" <dantetools@xxxxxxxxxxx>
Date: Sun, 14 Dec 2003 16:21:02 +0000
cdata html
Hi there,

lets say for a reason (maybe a wrong one) we have an XML file that contains a text element

<text><![CDATA[I <i>have/<i> to add some <b>HTML</b> here is ]]></text>

and at the result XHTML I want to maintain these. I thought that CDATA should be enough and applying templates would maintain these but I get &lt; &gt; and that resulting to the <i>s and <b>s being shown as at the end

Is there an easy way around that ? (I could copy each element I guess individually but some of the them (eg. table) have many attributes and it would be complicated to redifene them all right ?)

Notice that sometimes:

<text>other things<elements>fdsds</elements></text>

but if there was a reason I could introduce a separate element say <unparsedText>

I am I doing it all wrong ?

Thanks,

George

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.