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

Expectations for XML Schemas 1.1 (was Re: Quick XML Schema question)

  • From: Rick Jelliffe <ricko@a...>
  • To: xml-dev@l...
  • Date: Wed, 23 May 2001 15:23:52 +0800

xml schema co constraint
From: Jeff Rafter <jeffrafter@e...>

>Adam,

>> Is there anyway for me to specify the requirement that the inpoint be
>> numerically smaller than the out point.

>Unless you mean something like inpoint must be less than the constant 24
and
>outpoint greater than or equal to 24, no.  This is what is lovingly
referred
>to as a co-constraint.  Features like this are slated for 1.1 or 2.0

I don't expect these kinds of constraints will be in XML Schemas 1.1.   I
imagine the Schema WG will be more interested in making good on the existing
functionality (e.g. the incomplete areas such as date/times, key scoping)
rather than venturing into new areas.

Another reason not to expect it for 1.1 is that the Schematron model's
strength is that it assumes random access to the whole document, while XML
Schemas has been limited to allow streaming implementations (a respectable
goal too). So in order to be consistent with XML Schema's design, a
Schematron-like constraint language would have to limit the kinds of XPaths
allowed: there has been no discussion anywhere on this issue (except the
related issue of the XPath subset to allowing streaming processing on keys)
and whether the result is useful.

I think the Schema WG has been loathe to include any unimplemented ideas
(not of their own making!), so until there is some implementation of a
streamable co-constraint language I doubt if it would go anywhere.

And, to a certain extent, given that the embedded Schematron constraints
seem so easy to implement, the need may not be so urgent in that there is at
least a feasible solution available.   (On the other hand, the Schematron
notion of "pattern" is not completely reconcilable with XML Schema's complex
types, so the more one uses complex type derivation the more complex the
corresponding Schematron context XPaths have to be, in the absense of PSVI
type information being available in XPath. )

Cheers
Rick Jelliffe


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.