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

Re: Two Questions - on XML Schema

  • To: noah_mendelsohn@u...
  • Subject: Re: Two Questions - on XML Schema
  • From: Rick Jelliffe <rjelliffe@a...>
  • Date: Thu, 09 Mar 2006 20:15:23 +1100
  • Cc: xml-dev@l..., xmlschema-dev@w...
  • In-reply-to: <OFE1FE220B.D7A75891-ON8525712B.004E3DDA-8525712B.004EFF44@l...>
  • References: <OFE1FE220B.D7A75891-ON8525712B.004E3DDA-8525712B.004EFF44@l...>
  • User-agent: Mozilla Thunderbird 0.6 (X11/20040502)

questions on xml schema
noah_mendelsohn@u... 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

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.