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

Re: Top Ten Java and XSLT Tips, #5

Subject: Re: Top Ten Java and XSLT Tips, #5
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Fri, 31 Aug 2001 12:55:49 -0400
xml numerical character java
[Dimitre Novatchev]

> Thomas B. Passin wrote:
>
> > It works fine.  If &#160; doesn't work for some browser, then the main
> > alternative to disable-output-escaping is to declare an entity for
&nbsp; in
> > the stylesheet.
>
> But how do you define this entity -- as &#160; ? Or as what value???
>
> The former is meaningless, because it has exactly the same effect as using
the
> numerical character reference straight into your code.
>
Let's not get too picky here!  Some people like to use "&nbsp;" and an
entity is one way to get it.  As you say, there's no difference in the
result.

> This is why I'm quite puzzled -- what other substitute for &#160; are you
using?
>
> > This is living dangerously, though, because some processors
> > will insist on validating the document if there are any DTD declarations
in
> > it.  This won't work unless you include a DTD for the entire xslt
> > stylesheet - very annoying.  I have this situation using XML Cooktop and
the
> > Microsoft processor.
> >
> > Anyone know what browsers can't understand &#160;?
>
> Can you point out any browser, which "can't understand &#160;" ?

I can't, someone else made the claim.  Personally, I just use &#160;

But it you were using a lot of those special entities, you probably would
want to declare them in a DTD because remembering all those numerical
equivalents would be hard, and the resulting code would be hard to read.

Cheers,

Tom P


 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.