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

Re: XML spec and XSD

  • From: Rick Jelliffe <rjelliffe@allette.com.au>
  • Date: Sun, 08 Nov 2009 20:01:32 +1100

Re:  XML spec and XSD
Len Bullard wrote:
> No.  I think it was a way of saying something simple and familiar will work
> until something more precise and powerful can replace it.  It was a
> stabilizer in a time of incredible shifts and unpredictable fortunes.  It's
> clear that validity is not intrinsic to markup functionally.  It is just as
> clear that validation is useful to applications.
>   
DTDs provide a convenient summary and test of a document; they allowed 
and encouraged a basic level of test-driven development in an area with 
a lot of cowboy programmers.

When the summary becomes larger than the document, and the test becomes 
more difficult to debug than to do by hand, then DTDs are not much use. 
Which is why so many small XML documents don't have them.

But you need a fairly large document for an XSD schema to be useful to 
programmers as a summary, and you need a very complex document before 
the schema is less difficult to install and debug than just inspecting 
the documents or writing your own tests.

The main problem with DTDs is not that they are flawed (they are nice 
simple, modest, inoffensive little things), but that that DTDs limited 
the expectations of the initial XSD Schema WG, many of whom had never 
written a schema or DTD IIRC*, about what a schema was supposed to do.  
Questions that could have been asked early include "Can this support 
HTML?", "Can this support SVG?", "Can this support RDF?", "Can this 
support XSLT?", "Can this support RSS?"   Instead, what we got was "Can 
this support Postal Addresses?"

Cheers
Rick Jelliffe

* When I was on the XSD Working Group (a decade ago), any reference I 
made to "idiomatic usages of XML" seemed to be met with utter 
incomprehension and dismissal, as if it were an eccentric concern.  
Consequently, at the last minute, when XSD was finally tested against 
real schemas such as HTML, it was found to need revisions: the whole 
complex-type derivation system was found inadequate and the <redefine> 
escape hatch had to be provided, for example. Now, after 10 years, we 
can see some recognition of this, in that XSD 1.1 has some idea that 
attributes might actually be used to make decisions on content. (Of 
course, instead of the neat RELAX NG way, XSD implements it by tacking 
it on outside content models, the chance for more bogus complexity being 
too irresistable, I suppose.) 

 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.