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

Re: UTF-8+names


ampersand in utf 8
From: "Tim Bray" <tbray@t...>
>
> Check out http://tbray.org/tag/utf-8+names.html

Instead of throwing an error for a missing semicolon, why not let that case
fall under section 4.  Since the set of pre-defined reference names are
known, you also know the maximum length possible.  If you reach length+1
characters, you know it's not a reference and leave it as-is.  It also means
that a lone ampersand won't be an error.  I suspect the motivation to
require the semicolon is for consistency with XML's same requirements.
However, this disallows some valid UTF-8 from being valid UTF-8+names as
well.  While this may be fine if used solely within the context of XML
(which would throw an error as soon as it hit the invalid reference anyhow),
I suspect people will try using this outside of XML as well.

Also, I suspect that using the same format as XML/SGML's references is going
to confuse people.  Maybe use a similary format such as #name; or @name;.
This way, at least the two references (UTF-8+name and XML) would not be
confused.

---
Seairth Jacobs (seairth@s...)
Looking: http://www.seairth.com/blog/65


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.