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

Re: "Improve your XSLT coding five ways"

Subject: Re: "Improve your XSLT coding five ways"
From: Uche Ogbuji <uche.ogbuji@xxxxxxxxxxxxxxx>
Date: Wed, 24 Jan 2001 22:59:07 -0700
xsl characters coding amp
> > In the new tutorial by Benoît Marchal
> >
> > http://www-106.ibm.com/developerworks/library/x-xslt5.html?dwzone=xml
> >
> > there is one chapter about HTML entities, and I don't understand
> > why to use non-breaking space in such a complicated way. Until now, I
> > simply used &#160; in XSL, which works fine and results in &nbsp;
> > in the HTML output.
> >
> > The author recommends
> > <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></td>
> > Why is that?

It's quite frustrating to find this on IBM dW.  It is, of course, bad advice.

> I don't understand why somebody would recommend that *unless* he absolutely
> needs the representation as &-n-b-s-p-; in the output (however the author
> doesn't state that this is the reason).

Actually, 4XSLT and Saxon, that I know of, will automatically replace &#160; 
with &nbsp; in the HTML output method, and so on with other HTML characters 
with named entities.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@xxxxxxxxxxxxxxx               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.