W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

Business rules in schema

From: Arvind M Patil <arvind.patil@majoris.com>
Date: Fri, 23 May 2003 14:33:44 +0530
Message-ID: <007001c3210a$36b5a790$980a14ac@arvindpatil>
To: <xmlschema-dev@w3.org>
Hi all,

Can I define a business rules in xml schema definition.

For example: Consider a sample xml definition

<employee>
    <name>xyz</name>
    <age>30</age>
    <maxServiceAllowed>28</maxServiceAllowed>
    <maxAge>58</maxAge>
</employee>

So based on this hypothetical information, I wanted to have validation rule in schema such away that
maxServiceAllowed =  maxAge - age

Can I acheive this in schema? Thanks for attention.

Regards,
Arvind
Received on Friday, 23 May 2003 05:11:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:37 GMT