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

Re: Re: determining ID-ness in XML

  • From: Marcus Carr <mrc@a...>
  • To: "Bullard, Claude L (Len)" <clbullar@i...>
  • Date: Tue, 30 Oct 2001 11:24:38 +1100

attributes as cdata xml

[I can't post to ietf-xml-mime@i..., so have left them off.]

"Bullard, Claude L (Len)" wrote:

> What we got instead was a
> step by step inching into a system in which semantics
> are being inserted via magic strings that are eroding
> the boundary between processor and content.

It's true that that boundary has never been well defined, but the problem
predates XML - the same thing occurred daily in SGML. How many times did
you have to change ID to CDATA in a DTD because you wanted to parse a
single chapter of a defense document and didn't want to be inundated with
meaningless errors about dangling IDREFs? The fact is, the decision as to
whether a particular attribute value should be checked for uniqueness
depends on the scope or extent of the process - same as it ever was...

The DTD is suppposed to be the contract, yet for the reasons described
above, it was (and probably still is) common practice to declare attributes
as CDATA and then check their uniqueness during processing. This not only
removes the semantics from the DTD, it also completely removes them from
the instance, leaving them entirely in the processing application. A "magic
string" in the instance seems like a much better option than not storing
the information anywhere. In fact, given the choice, I'd probably prefer a
"magic string" over defining something as an ID in the DTD, since that
codifies semantics that so commonly don't fit with the current
requirements.


--
Regards,

Marcus Carr                      email:  mrc@a...
___________________________________________________________________
Allette Systems (Australia)      www:    http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
       - Einstein



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.