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

RE: Datatypes vs anarchy

  • From: Michael Champion <mike.champion@s...>
  • To: xml-dev <xml-dev@l...>
  • Date: Tue, 13 Mar 2001 18:14:55 -0500

well formed valid
> -----Original Message-----

> From: David E. Cleary [mailto:davec@p...]
> Sent: Tuesday, March 13, 2001 5:04 PM
> To: Michael Champion; xml-dev
> Subject: RE: Datatypes vs anarchy

> If you are writing a DOM level 3 parser, then you must worry
> about this stuff. Otherwise, stick to level 2. If you are a consumer of
> XML and do not care about schemas, don't use them, just like people who do
> not care about DTDs do not use them.

In my very humble but biased opinion, DOM Level 3 is doing the "right thing"
in that the content models and validation component is a separate, optional
module. Implementers can choose to ignore it, and consumers can test for its
support and either use it, or not use it. Nothing in the rest of the DOM
depends on the CM module. It is not easy to carve out independent API
modules from the alleged "layers" of XML-related specs, but the DOM WG tries
very hard to do so.

In the W3C Schema spec, data types are an integral part of the overall spec
(the "part 1" and "part 2" distinction does not reflect any explicit
modularization). The PSVI is not (as far as I can find) explicitly, much
less modularly, defined. This means that XPath 2.0, XSLT 2.0 and XQuery
depend on the Schema spec as a whole rather than being layered on the
PSVI/datatypes. It is true that a consumer of XPath 2.0/XSLT 2.0 need not
actually define a schema to write queries or stylesheets, but (as near as
one can tell from the Requirements so far), implementers and explainers of
XPath 2.0 will have to incorporate implementations/explanations of XML,
namespaces, the PSVI, and the W3C Schema datatypes before even getting
around to XPath. The opportunities to confuse the uninitiated here are
enormous, exponentially more so than in the good ol' days of XML 1.0's
well-formed/validating distinction.

> How are they entangled in XML? From my vantage point, they are layered.
> You have well formed, valid, and schema valid.

While I'm on a rant ... we don't simply have
"well-formed/valid/schema-valid" layers of XML processing. We have (and this
is not at all an exhaustive list) well-formed, well-formed-DTD-aware,
DTD-validating, namespace-aware, namespace-aware-DTD-aware, (but NOT
namespace-aware-DTD-validating), schema-validating (implies
namespace-aware), schema-validating-DTD-aware, and (God help us)
DTD-validating-schema-validating ... Then we have the fact the the InfoSet
is really just a common vocabulary for implementers, and that the DOM,
Xpath/XSLT, and XQuery all implement their own flavor of the thing. I'm
sorry, but I'll bet it would be hard to find a rational person coming in
from the outside, trying to make sense out of this, who wouldn't use some
synonym for "entangled" to describe it. And then there are the (ahem)
"colorful" descriptions of all this elegance over at xmlbastard.com, if you
think that *I* am being a bit unfair :~)

The DOM is far from perfect, but uses two principles that the rest of the
W3C doesn't seem to take very seriously: Levels of the Recommendation come
out when there is "minimal progress to declare victory" and the spec is
built out of independent modules.

Needless to say, this is my own rant; don't hold it against my DOM
colleagues or my employer.



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.