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

Re: UTF-8+names

  • To: David Carlisle <davidc@n...>
  • Subject: Re: UTF-8+names
  • From: Tim Bray <tbray@t...>
  • Date: Sun, 19 Oct 2003 11:54:22 -0700
  • Cc: elharo@m..., xml-dev@l...
  • In-reply-to: <200310191630.RAA23060@e3000>
  • References: <200310191630.RAA23060@e3000>
  • User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5) Gecko/20031007

utf 8 amp
David Carlisle wrote:

>>You're partially right, &lt; is defined by old-fashioned (SGML-based) 
>>HTML but it's *not* defined by XHTML or MathML.  That's because it's 
>>wired into XML so XHTML gets it for free.  So it is *definitely* not 
>>defined in UTF-8+names, and the I-D should say that.
...
> Either way it should be made clarer. I think that for apos and quot
> at least my reading would be more useful as these would then expand to
> the characters which means they are useable in non xml contexts.

Well, there's no doubt that +names is optimized for the needs of XML 
users, in that it defines lots of things like &eacu; but *doesn't* 
define the XML magic 5; this means that &lt; and &amp; and so on go 
through untouched, which is what you need for the purposes of XML users.

For the purposes of XML users, +names really needs to not define &lt; 
and &amp; to be useful for them.  Not defining &apos; and &quot; and 
&gt; is not crucial but it's certainly handy.  I would argue that for 
most non-XML-users, having these things passed through untouched isn't 
really a problem, because normally these are not characters you need to 
escape except in the case that you plan on using the text in XML.

That is to say, I can see non-XML applications finding it handy to be 
able to say "Martin D&uuml;rst said so." but I don't see a common use 
case for "Clearly in this case Ir &lt; Is", unless you're headed for XML.

So I think the current behavior - not replacing the magic five - hits a 
sweet spot. -Tim



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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.