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

Re: More entity confusion and my opinion on the right way

Subject: Re: More entity confusion and my opinion on the right way
From: James Clark <jjc@xxxxxxxxxx>
Date: Wed, 06 Jan 1999 11:23:51 +0700
Re: More entity confusion and my opinion on the right way
Andrew Bunner wrote:
> 
>   Here's what I don't understand about the entity-writing problem...
> 
>   If I include &amp; in my source document or stylesheet, I get &amp; in my
> result document (this is good since my result document is HMTL).
> 
>   If I include &quot; in my source document or stylesheet, I get " in the
> result document. Hmm. OK.

&quot; and " are equivalent.  I made XT use " in content; I could as
easily make it use &quot;.  Does anybody care one way or the other?

>   Of even greater confusion to me is if I include &copy; in my source document.
> In this case, I get an error... &copy; references an undefined entity. BUT, if
> I include &#169; in my source document, I get &copy; in the result document.
> 'Hooray!' I think to myself, this must mean that if I include an entity
> reference to an ascii code, it will get translated to the right HTML entity.

Right.  That's what XT does when you use the HTML namespace as the
result.
 
>   Wrong.
> 
>   &#32; (space) gets translated to the space character, not to &nbsp;

&nbsp; corresponds to &#160; not &#32;.

James



 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.