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

Re: converting encoded characters <, > etc

Subject: Re: converting encoded characters <, > etc
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Wed, 01 Dec 2004 13:32:39 +0100
xsl converted as lt
<xsl:value-of select="-- path to data --" disable-output-escaping="yes" />

you could do that (if your system supports disable-output-escaping
but it's always worth suggesting that you change your input.
d-o-e is very much a last resort.

Very true.


Specifically, the original poster said:

When I manipulate XML data using XMLDOM in ASP, all characters like "<" and
">" in the XML data gets converted to "&lt;" and "&gt;".

That is very strange, you would expect that a DOM would end up being seen by XSLT as a node set of element nodes, so if it is being linearised, something is probably wrong with the way the DOM has been built, or XSLT is being called.

It actually sounds like Wong is trying to insert XML (or XHTML) data into the DOM tree as character data...


Wong, if that is the case, you would be better off when doing a parseXML/loadXML on that data and use DOM functions to move the resulting parse nodes into the larger DOM tree.

That way, you will be able to match for those elements in XSL as well...

Cheers..

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.