xsl-list
[Top] [All Lists]

Re: converting encoded characters <, > etc

2004-12-01 05:32:39
   <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..


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--