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

Re: Character Entities: An XML Core WG View


xerxes xml
From: "John Cowan" <jcowan@r...>

> The alternative is having gobs of character entities built into every XML
> parser.  They are built into every HTML parser, true, but XML parsers have
> a lot wider domain of application, and often need to be more lightweight.

It strikes me that a variant is to allow a parser to supply its own definitions
for the standard entities.

So no DTD is needed. If someone uses character entities in a document
being sent to a lightweight parser that didn't provide its own declarations,
it would be a WF error, as currently exists.  And a bantemweight parser
could provide declarations for the HTML sets but not the MathML and
extended ISO sets. But the size of declarations for entities dwarfs the 
size of code for the rest of the parser (e.g. look at Xerxes, ye gods)
anyway, except for people who are hard up for every byte of ROM.

Doesn't this compromize interoperability?  Yes, but only in the same way
that currently XML errs on the side of flexibility for characters:  if you
send your XML in UTF-8 with no entity references it will get through:
if you send your document in your local character set with entity
references, you are doing so based on your expectations about what
capabilities your receiving XML processors will have. 

Cheers
Rick Jelliffe

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.