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

RE:  

Subject: RE:  
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Sun, 20 Jun 1999 18:24:32 -0600
nbsp
> I simply need to be able to place some code in either the DTD 
> or the XSL that allows me to generate entities such as &nbsp;
> in my HTML. [...] I just keep on getting &amp;nbsp; in my HTML 
> and its wearing me a little thin.

Someone already posted the how. Here's some more info that will help explain
why.

You are not, in your XSL, literally saying what you want in the tangible
output. You're saying, using XML (well-formed HTML, in your case), what you
want the result tree (intangible) to have in it. Tangible output (which can
be in any format) will be derived from this result tree by the XSL
processor, possibly in a format that you have hinted at via the result-ns.

So your goal, really, is not to put the 6-characters & n b s p ; into the
HTML. It is to put Unicode character number 160 (a non-breaking space) in
your result tree, and then have faith that the XSL processor, when
outputting an interpretation of the result tree as HTML 4.0, will substitute
&nbsp; for that character on its own.

When you insist on putting all 6 characters & n b s p ; in the result tree,
&amp;nbsp; in the XSL actually does suffice. The problem is that when this
result tree is externalized as HTML 4.0, the & character is replaced with
the 5 characters & a m p ; by the XSL processor. Hence, &amp;nbsp; keeps
appearing in your HTML.

-Mike


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


Current Thread
  • &nbsp;
    • Mark Edwards - Sun, 20 Jun 1999 16:53:22 +0100
      • <Possible follow-ups>
      • Mike Brown - Sun, 20 Jun 1999 18:24:32 -0600 <=

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.