Hi.
If you have a text node that contains escaped HTML (I'll also space
things out so they don't get lost in transit)
$text = "& lt;b& gt;This & amp;amp; That& lt;/b& gt;"
And you want the output to be XHTML (in other words, have one layer of
escaping removed by the XSL):
<b>This & amp; That</b>
You can use disable output escaping:
<xsl:value-of disable-output-escaping="yes" select="$text"/>
------------>Nathan
-----Original Message-----
From: Phun Li [mailto:phun_li(_at_)yahoo(_dot_)com]
Sent: Thursday, September 08, 2005 7:07 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] note: Handling '&nbsp;' in source xml
sorry for my english i meant to say
Basically the source xml i'm converting to xml,
should be converting to HTML
and in case yahoo interfered with post i spaced these
out, i just want to.
replace
& amp ; nbsp ; (source xml)
with
& #160 ; or & nbsp ; (output html)
thank you Li
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--