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

Re: Entities in XSL (again)

Subject: Re: Entities in XSL (again)
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Wed, 17 Feb 2010 09:14:50 -0500
Re:  Entities in XSL (again)
It's also may be worth examining why you want the 'nbsp' entity
declared for your stylesheet. I note that it is not referenced from
within the stylesheet you provided, but perhaps that was just
snippet-code, not your real program.

In any case, it can be particularly useful to use entities when
declared externally so that their values can be changed in 1 place
and be registered by both the stylesheet and the instances. 

But if you're just using the entity to make recording a character you
can't type on your keyboard easier for your encoders, using "&#160;"
in the stylesheet and "&nbsp;" in the instances will work just fine.
(Presuming, of course, that 'nbsp' has been properly declared in the
instance, as George pointed out.) This is because by the time the
XSLT engine sees these, each has been boiled down to the actual
character U+00A0 (which is 1100001010100000 if using UTF-8 :-), so
they're the same.

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.