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

Re: Why ANY is so restrictive?

  • From: Toby Speight <Toby.Speight@s...>
  • To: "XML developers' list" <xml-dev@x...>
  • Date: 11 Feb 2000 11:12:09 +0000

Re: Why ANY is so restrictive?
Paul> Paul Tchistopolskii <URL:mailto:paul@q...>

Paul quoted:

>> ANY means any *declared* element.  You still have to declare the
>> elements, and when you declare the elements, you have to declare
>> what their contents can be.


0> In article <00c301bf7372$28616240$5df5c13f@PaulTchistopolskii>,
0> Paul wrote:

Paul> About one year ago I have posted the letter to XML-dev list
Paul> asking was there some practical reason behind making 'ANY' so
Paul> restrictive in XML v 1.0.
Paul>
Paul> I proposed to change the semantics of ANY to 'anything well-formed
Paul> is fine'.
Paul>
Paul> There was a silence on this topic. I got no explanation why ANY
Paul> is so restrictive.
Paul>
Paul> Maybe now somebody would try to explain what was the purpose of
Paul> such a restrictive 'ANY' in XML 1.0?

Because if ANY allowed any well-formed content, you could have a valid
XML document which was not SGML-valid.  The idea of valid XML is that
it can be processed by an SGML parser with an appropriate declaration;
the concept of "well-formed" was invented to allow non-SGML processing
of XML.

I suggest you concentrate your efforts on other schema types than
DTDs, as these other schema types generally apply to all well-formed
XML (not only valid), and may be able to specify what you want.

-- 


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.