RE: [xml-dev] Separate data from rules ... is the XML Schema 1.1 <assert> element a step backwards?

From
Michael Kay <>
To
"'Costello, Roger L.'" <>,
Date
2009-06-17T12:42:05Z
ID
<B26FC55951F9410FBDA175F891F610A6@Sealion>
Thread
RE: [xml-dev] Separate data from rules ... is the XML Schema 1.1 <assert> element a step backwards?
> I shall try.
> 
> First an example of a business rule: 
> 
>     A Level 1 manager has a maximum signature
>     authority of $10K.
> 
> 
>     An auto loan applicant, living in Ohio, is
>     underage if he/she is under 18 years of age.
> 
>     If a customer has no outstanding invoices, 
>     then the customer is of preferred status.
> 

I agree those are business rules and are best kept out of a schema.

What's more difficult are rules like "Every branch of the bank has a branch
manager" - that's on the borderline between structural rules and business
rules.

Regards,

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