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

RE: note: Handling ' ' in source xml

Subject: RE: note: Handling ' ' in source xml
From: "Nathan Young \(natyoung\)" <natyoung@xxxxxxxxx>
Date: Thu, 8 Sep 2005 10:46:53 -0700
amp nbsp
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 '&amp;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/

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.