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

RE: [XSLT 2.0] Checking that an element's value has th

Subject: RE: [XSLT 2.0] Checking that an element's value has the desired datatype?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 17 Oct 2006 13:00:05 +0100
RE:  [XSLT 2.0] Checking that an element's value has th
> > "Check that the aircraft's altitude is at least 500 feet 
> above all the 
> > vertical obstructions"
> 
> If you are using XML and a validation tool to work out if 
> there is an obstruction in the way of an aircraft then you 
> might find the aircraft has hit it before the result has been 
> returned...

That observation might appear flippant, but actually it's a good
illustration that this is not the right way to use validity constraints.
Schemas should be used to impose conditions that imply "this document is
meaningless, it doesn't make sense, it should be thrown in the bin and not
processed". They should not be used for conditions that say "if this
condition is true [or false], then special action is needed" - that's much
better done through a query language.

The same applies to a large number of integrity constraints you find in
database textbooks, such as "employees must be aged between 16 and 65".

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

Current Thread

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
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.