|
Eddie,
Okay, that's an interesting approach.
If you used XForms you leave the schema alone, but reference it in an XForms model:
<xfm:model id="myModel" schema="mySchema.xsd">
You then define Model Item Properties that add additional constraints:
<xfm:bind nodeset="purchaseOrder/items/item" constraint="number(price) * number(quantity) = number(totalAmount)"/>
In addition to constraint, you can use "calculate", "relevant", "required", "readonly", "type" (apply a WXS type) and "p3ptype"
XForms' instance() function allows you to define MIPs that involve multiple XML instances, if you so wish.
I quite like the fact that the XForms model is non-intrusive, allowing you to build on a schema without needing read access to the schema.
However you do it though, it is undoubtedly useful to be able to express
All the best
Mark
|