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

DOM Level 3, more or less flexible than AS?

  • To: xml-dev@l...
  • Subject: DOM Level 3, more or less flexible than AS?
  • From: Eric van der Vlist <vdv@d...>
  • Date: 24 Oct 2002 15:58:32 +0200

than as
Hi,

I'd like to react to what seems to be a common opinion and has been
recently expressed by Elliotte Rusty Harold on Cafe con Leche
(http://www.cafeconleche.org/):

"The W3C DOM Working Group has a new working draft of Document Object
Model (DOM) Level 3 Core Specification. The biggest new feature in this
release seems to be support for providing type information for
attributes and elements. DTD types are provided for attributes. Schema
types are provided for both elements and attributes. Unlike the recently
killed abstract schemas effort, the approach taken (just provide a type
name and URI for each node) seems much more extensible and much less
tied to particular schema languages. I think this is a clear case of
doing something better by doing less."

If we go back to DOM AS, the idea (as I understand it) was to completely
hide the schema system and rely on a query/request mechanism (the
application would just have asked to the AS if such and such update
could be done).

IMO, this blackbox approach is the most generic API we can imagine and
it could virtually cope with any kind of "schema" system, including
Relax NG, Schematron or even one's own application.

By contrast, accepting the idea that an element or an attribute must
have a "type" seems to be a step backward.

Relax NG doesn't impose this (and doesn't guarantee to report type
information consitently in all the cases) and Schematron has no
"built-in" notion of type either.

Furthermore, I don't see how you can implement rules like Schematron
does so well with a type and a URI.

I think that we are moving from a concept which could have been amended
to support any type of schema and constraint to a concept which at the
end of the day might be more complex and is narrow minded and very
specific to the DTDs and W3C XML Schema approaches!

Eric
-- 
See you in Baltimore.
                                    http://www.xmlconference.org/xmlusa/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


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.