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

Re: ANN: SAX Filters for Namespace Processing

  • From: Ronald Bourret <rpbourret@r...>
  • To: xml-dev@l...
  • Date: Sat, 04 Aug 2001 12:23:19 -0700

Re: ANN: SAX Filters for Namespace Processing
"David E. Cleary" wrote:

> Let's take this argument to an extreme. There are members of the XML
> community who loudly argue that using attributes is a bad practice. XML
> Schema could have taken this point of view and not created attribute
> declarations. ... XML Schema had to be able to model as much
> of well formed XML as possible.

I finally understand your point here. It's interesting, because I had
always thought of XML Schemas as a way to build document models.
Modeling well-formed XML was obviously a requirement that had to be
fulfilled, but more of one that sat in the background. The reason for
this was that some well-formed documents just aren't worth modeling,
even if it should be possible. XSLT style sheets are a good example of
this, since you generally would need one DTD per stylesheet.

My point was not that XML Schemas shouldn't be able to model any
well-formed XML -- it should, and doing something like omitting
attribute definitions would break this. My point was that by including a
convenience feature -- which I believe local element types and
elementFormDefault are -- you effectively legitimize the practice that
the feature supports.

-- Ron

P.S. For extra credit, I have three questions:

1) Is there any well-formed XML that a DTD can't model? I can't think of
any (namespace issues aside).

2) Is there any well-formed XML that XML Schemas can't model? Again, I
can't think of any.

3) Are local element types and the elementFormDefault attribute
necessary to model well-formed XML? Again, I'm pretty sure that the
answer is no.

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.