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

RE: Two Questions - on XML Schema


RE:  Two Questions - on XML Schema
The reference is W3C-member restricted.

It might be that we've reached the stage where we can't afford to do things
properly so we have to do them cheaply. If that's the case, then this is
probably the right way forward. However, one needs to be aware of its
limitations. For example, if there are two possible content models for an
element and you want to control which one to use based on an attribute, then
you have to define the union of the two content models and design XPath
expressions that implement two permitted subsets. That seems pretty unusable
to me.

To my mind, grammar-based constraints and value-based constraints should be
much more closely integrated than this. And I don't think it's impossible.
One way of doing co-occurrence constraints is to think in terms of a
"computed xsi:type" where the effective value of xsi:type on an element is
computed as the result of an XPath expression in the schema, applied to the
element instance as context node. This expression can default to
"@xsi:type", so the current xsi:type facility becomes just a special case.

That doesn't preclude the needs for generalized XPath-based constraints in
the schema, of course.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Paul.V.Biron@k...
> Sent: 09 March 2006 16:37
> To: rjelliffe@a...
> Cc: ElektonikaMail@f...; xml-dev@l...; 
> xmlschema-dev@w...; xmlschema-dev-request@w...
> Subject: Re:  Two Questions - on XML Schema
> 
> 
> > Well, can I recommend just officialy recommending the  
> simple Schematron 
> 
> > assert statements as the easiest way forward for everyone, 
> using the 
> > schematron namespace, and inside <appinfo>
> 
> Rick, that is exactly what I have proposed, see [1], and one of the 
> options the WG is seriously considering.  I'm really 
> interested in your 
> reactions to my proposal.
> 
> pvb
> 
> [1] 
> http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2006Jan/
> 0137.html
> 
> 
> 



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.