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

[off-topic] Re: Use xsd to specify multiple instances ofexisti

  • From: Rick Jelliffe <rjelliffe@a...>
  • To: xml-dev@l...
  • Date: Tue, 23 Sep 2008 03:12:56 +1000

[off-topic] Re:  Use xsd to specify multiple instances ofexisti
Michael Kay wrote:
> Or you could do it all with assertions - but the danger with complex
> assertions is that the diagnostics when they are not satisfied can get
> rather obscure.
>   
Hence the criticality of natural language formulations of the intent of 
the assertion test. Which was the
departure point for Schematron in 1999.

The initial problem that computer scientists try to solve is how to 
represent something in a way that
computers can understand. Then, as soon as that is answered, they 
realize that they have asked the
wrong question, and they need to ask how to represent something in ways 
that both humans and
computers can understand. I do think XSD is stuck asking that first 
question, and never getting to
the second (or deferring it to implementations, as if good human text 
about the intentions and rationale
of some constraint can be auto-generated from machine descriptions.)

This relates to the patterns versus types point I tried to make the 
other day. Considering a document
as a graph of nodes and arcs, XSD allows you to document nodes but not 
arcs. So there is nowhere
to document why it is that two elements in a sequence should follow each 
other, for example. That
becomes a comment of the type or parent, but even there it is odd. I 
think Schematron is equally strong
(and equally weak) on documentation and constraints on arcs as well as 
nodes.

Cheers
Rick


[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.