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

RE: [XML Schema 1.1] I need an example that illustrates the usefulness of xs:error

From: Michael Kay <mike@saxonica.com>
Date: Wed, 22 Jul 2009 20:01:27 +0100
To: "'Costello, Roger L.'" <costello@mitre.org>, <xmlschema-dev@w3.org>
Message-ID: <D5A0190B0D404A62BCE5B72577810DD2@Sealion>
RE: [XML Schema 1.1] I need an example that illustrates the  usefulness  of xs:error
> Doesn't this achieve the same result (I simply omitted the 
> third alternative):
> 
>    <element name="template">
>      <alternative test="@name" type="xslt:named-template"/>
>      <alternative test="@match" type="xslt:template"/>
>    </element>
> 

I think the default if none of the alternatives match is not xs:error, it is
the "declared type" of the element, which in this case is xs:anyType.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 
Received on Wednesday, 22 July 2009 19:02:07 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.