This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "Improve your XSLT coding five ways"


> > 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   in XSL, which works fine and results in  
> > 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@fourthought.com               +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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]