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

Re: Character Entities: An XML Core WG View


xml trademark symbol
Ann Navarro scripsit:

> My problem has always been that to use named character entities in an XML 
> Schema-based language, you have to use a DTD *as well* to make this happen.

This is inherent in the way DTDs and schemas (generally, not just W3C XML ones)
are processed.  DTD processing is interleaved with parsing; schema processing
is done after parsing.   The only way to change this (to allow entities
to be declared in schemas but referenced at parse time) is to utterly break
compatibility with XML 1.0.

> This makes XML Schema mind-bogglingly annoying as an incomplete solution 
> for a language definition, that we have no choice but to use based on 
> political pressure.

DTDs try to do it all, and have the usual problems of one-size-fits-all
solutions.  (Personally, I'm a 5X, and one-size-fits-all *never* fits me.)
Other solutions can take over the validation part and do it better than DTDs
can, but the non-validation part remains behind.

OTOH, if DTDs meet your validation needs as well as or better than
schemas, you are better off not submitting to that political pressure.
Es mejor morir en sus pies que vivo en sus rodillas.  --Emilio Zapata
(Or possibly Dolores Ibarruri.)

> Asking document authors to write DTDs to simply use the trademark symbol 
> (or insert your common character of choice), something they've done for 
> years, strikes me as the result of laziness on our part (we = the creators 
> of standards). They shouldn't have to do that. Any reasonable justification 
> escapes me.

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.

-- 
All Gaul is divided into three parts: the part          John Cowan
that cooks with lard and goose fat, the part            www.ccil.org/~cowan
that cooks with olive oil, and the part that            www.reutershealth.com
cooks with butter. -- David Chessler                    jcowan@r...

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.