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

SV: [xml-dev] Two Questions - on XML Schema

From: Bryan Rasmussen <BRS@itst.dk>
Date: Thu, 9 Mar 2006 12:56:05 +0100
Message-ID: <A2DF252098C9AD4B9781453BE4C5422B562BDD@excw2k301.koncern.local>
To: "Rick Jelliffe" <rjelliffe@allette.com.au>, <noah_mendelsohn@us.ibm.com>
Cc: <xmlschema-dev@w3.org>
SV: [xml-dev] Two Questions - on XML Schema

I agree somewhat. Some months back there was a thread where I argued that
instead of extending XML Schema with co-occurence constraints there should be
some work done on how to connect XML Schema better with Schematron. 

One thing that I can think of straight off the bat if XML Schema went towards
defining bindings to Schematron of some sort then xsd:unique could be
dropped. Dropping syntax is also a benefit. 



Cheers,
Bryan Rasmussen

-----Oprindelig meddelelse-----
Fra: xmlschema-dev-request@w3.org
[mailto:xmlschema-dev-request@w3.org]På vegne af Rick Jelliffe
Sendt: 9. marts 2006 10:15
Til: noah_mendelsohn@us.ibm.com
Cc: xml-dev@lists.xml.org; xmlschema-dev@w3.org
Emne: Re: [xml-dev] Two Questions - on XML Schema



noah_mendelsohn@us.ibm.com wrote:

>As I noted above, there are serious discussions underway right now about 
>including XPath-based co-occurrence constraints in schema 1.1.   As with 
>the current use of Schematron in appinfo, these would be additional 
>constraints:  to be valid, content would have to satisfy both the content 
>model grammar and the XPath based constraints.   There are several 
>proposals as to exactly how the constraints would be expressed.  The ones 
>I believe closest to Schematron involve XPath predicates that would have 
>to resolve as true/false for the content to be valid per the type.  There 
>are also proposals from Fabio Vitale to use such predicates in selecting a 
>type.  So, no guarantee that anything will be proposed, but there is 
>certainly a chance.  We get requests for this function almost daily.
>  
>

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>

The ISO Schematron standard explicitly encourages this, see            
http://www.schematron.com/iso/P25.html#GEN38
including that you can define any context information for interpreting 
the XPath:
notably this includes type awareness.

I don't why this isn't a no-brainer: no need to alter XSD or add 
requirements to any
implementations, nicely layered, blame the limitations on someone else 
(me, ISO) when
people start to whinge,  no political ramifications with RELAX NG, etc.

Can fruit hang lower?

Rick
Received on Thursday, 9 March 2006 11:57:37 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.