[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 slash
** Reply to message from ktl@k... on Fri, 1 Nov 2002 18:20:20 -0800

> How difficult is it to include the following line:
> 
> <!DOCTYPE foo [ <!ENTITY % ents SYSTEM "http://www.example.org/ents"> %ents; ]>

The problem is that many systems will complain that 'foo', as well as every
other element, has not been declared.  Some respondents have replied that this
is just a matter of switching off the validation on your parser.  I wish I lived
in the kind of cosy world where I had control over all of the parsers, and could
control their settings.  Those people who live within their own closed-world
environments can ignore the rest of this message.  This kind of construct can be
confusing to XML editing applications, and to recipients who don't understand
why the elements & attributes are not declared.  A document with a DOCTYPE no
longer looks just well-formed.  It looks like a document that should be valid
with respect to some DTD, but which some idiot didn't specify properly.  The
author will know better, but how will the users, particularly where those
"users" may be software applications, not people?

If this seems pedantic, let me give a concrete example.  XSLT engines do not
require XSLT scripts to be valid with respect to a DTD.  However, character
entities are convenient to use in XSLT scripts, particularly when generating
HTML.  If I stick a DOCTYPE like the above in my XSLT script, the standard
command-line settings will mean that validation fails, and the transformation
won't happen.  Now, the erudite readers of "xml-dev" know how to work around
this, but the other 99% of the world doesn't know, and doesn't want to have to
spend the time learning how.  I can't really go for solutions based on a
slash-and-burn approach towards part-time XML/XSLT users.

	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.