Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: enabling/disabling assertions

From: "Michael Kay" <mike@--------.--->
To: "'Andrew Welch'" <andrew.j.welch@-----.--->, <xmlschema-dev@--.--->
Date: 1/16/2008 11:49:00 AM
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@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Andrew Welch
> Sent: 16 January 2008 10:45
> To: xmlschema-dev@w...
> 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/
> 


From andrew.j.welch@g... Wed Jan 16 15:29:15 2008
Received: from maggie.w3.or


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent