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

RE: XML-Data, "&" and inheritance

  • From: Andrew Layman <andrewl@m...>
  • To: xml-dev <xml-dev@i...>
  • Date: Mon, 27 Apr 1998 15:30:42 -0700

ampersand in xml
Paul Prescod wrote "In reviewing XML Data for another project, I note that
the XML Data
"subclass" mechanism depends on the XML-Data equivalent of the ampersand
operator that was removed from XML. I'm not convinced that putting that
operator back in was a good idea. It was left ouf of XML because it
complicates implementation.".

This is a valid criticism, and we need to think about it more.  The
motivating factor for including the ampersand operator in XML-Data is the
significant number of customers who have asked for it.  In discussing DTDs
with me and others, they showed examples like the following:

	<!ELEMENT person
((firstname|middlename|lastname|age|shoesize|hair|eyes|height|weight)*) >

When I've asked what this construction means, they said, in effect "What I
mean is that the elements can occur in any order, but there isn't any good
way to say that in XML DTDs."

I suspect a number of other people have seen similar examples.

I know we could argue that people should not allow variation in element
order, but customers have adamantly stated that they sometimes want
forgiving sequence.  For example, RDF specifies that order does not matter
for RDF data.

So we have a funny situation in XML in which we've tried to make processing
easier by forbidding certain things in the DTD, but the result is that
people either avoid DTDs altogether or write bogus DTDs that don't fully
describe the real syntax.  That is, we've simplified the implementation by
being unable to express the intended syntax. 

Anyway, I wanted to add to the discussion some of the factors that led the
authors of XML-Data to propose including the ampersand operator.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.