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

Re: Character Entities: An XML Core WG View


define nbsp in xml
** Reply to message from John Cowan <jcowan@r...> on Wed, 30 Oct
2002 16:41:46 -0500 (EST)

> In light of ongoing discussions relating to "character entities"
> including suggestions that a future version of XML should be
> augmented to include some new syntax to accommodate them, the
> XML Core Working Group has developed a public statement describing 
> the current consensus within the WG on certain aspects of this topic.

I'm not convinced by the argument in this document that the internal DTD subset
is a sufficient/appropriate place for the definition of any and all named
character/string entities.  The problem is that once you start using the
internal DTD subset, you have to have an ELEMENT declaration for every element
in the document, as well as ATTLIST declarations.  All of this just because you
wanted to define "&nbsp;" for an otherwise well-formed document.  OK, you could
leave out the ELEMENT & ATTLIST declarations and just allow lots of validation
errors to be reported, but that in itself would just be a source of unnecessary
distraction & confusion for anyone else working with you.  It obscurs the intent
too much.

I don't see why any fundamental reason why documents should be denied the use
of named character/string entities just because they are only well-formed and
not valid.  It seems to me to be just a consequence of XML's roots in SGML
(where life without DTDs was impossible), rather than a preferred design choice.
And if it wasn't a preferred design choice, maybe there would be value in an
entity declaration mechanism that works just as well for well-formed documents
as for valid documents.

	Cheers,
		Tony.
====
Anthony B. Coates, Information & Software Architect
mailto:abcoates@T...
MDDL Editor (Market Data Definition Language)
http://www.mddl.org/

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.