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

RE: enabling/disabling assertions

From: Michael Kay <mike@saxonica.com>
Date: Wed, 16 Jan 2008 11:49:11 -0000
To: "'Andrew Welch'" <andrew.j.welch@gmail.com>, <xmlschema-dev@w3.org>
Message-ID: <00f101c85835$cf9a0e30$6501a8c0@turtle>
RE: enabling/disabling assertions

There's a conditional inclusion mechanism in XSDL 1.1

http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/#cip

that answers part of the requirement; it's designed to enable facilities to
be ignored based on the version of XSDL supported by the processor. It's
been designed in the (perhaps optimistic) hope that it can be retrofitted to
XSDL 1.0 processors.

There's nothing in the spec however that allows you to switch off assertion
checking if you're using a 1.1 processor that supports the facility. It
could be a product option, however.

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

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Andrew Welch
> Sent: 16 January 2008 10:45
> To: xmlschema-dev@w3.org
> Subject: enabling/disabling assertions
> 
> 
> Is there any way to enable/disable assertions in a 1.1 schema?
> 
> I want to use assertions, but only enforce them if a switch 
> is set (just like assertions in java) or perhaps ignore them 
> if its a 1.0 processor.
> 
> Is that possible now, or something that's planned?
> 
> 
> thanks
> --
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/
> 
Received on Wednesday, 16 January 2008 11:49:22 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.