xsl-list
[Top] [All Lists]

RE: [xsl] [XSLT 2.0] Checking that an element's value has the desired datatype?

2006-10-17 05:00:24
"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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>