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

Re: how to output   to html from xsl?

Subject: Re: how to output   to html from xsl?
From: Daniel Hinz <daniel.hinz@xxxxxxxxxxxxxxx>
Date: Wed, 14 Jun 2000 19:29:31 +0200
output nbsp from xslt
Kay Michael wrote:
> 
> >
> > I also tried put &#160; in my xsl file, it had the same
> > problem. Is there any way to write out &nbsp; to an html file?
> >
> This is a FAQ and also the subject of another thread currently running.
> "&nbsp;" and "&#160;" and the invisible character xA0 in HTML are absolutely
> equivalent,
> so if your browser renders them differently, get another browser.

You can also implement org.xml.sax.DocumentHandler (in SAX 1.0)and
attach this to an XSLT processor.

In your Stylesheet you create a special tag, like <nbsp/>.

Now, when your DoucmentHandler encounters the element it writes out

&nbsp;

instead of your Tag. This type of DocumentHandler is called a Filter.

This is a lot better than switching browsers (if you use Netscape ;-)).

Regards,

Daniel Hinz


 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.