Subject: RE: note: Handling ' ' in source xml
From: "Nathan Young \(natyoung\)" <natyoung@xxxxxxxxx>
Date: Thu, 8 Sep 2005 10:46:53 -0700
|
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@xxxxxxxxx]
Sent: Thursday, September 08, 2005 7:07 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: 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/
|