Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: [XML Schema] Value of a field depending to other fields? [Thread Next] Re: Value of a field depending to other fields?To: NULL Date: 5/1/2006 11:27:00 AM Martin Honnen wrote: > xan2@o... wrote: > > > > So, we need (in pseudocode) that: > > > > 1) salarypermonth = hoursofwork * salaryperhour > > 2) percentofwork = hoursofwork/(TOTAL WORK), where TOTAL WORK = Sum of > > all hoursofwork of all intances of xml file > > > > Is it possible to do it with XML Schemas. > > You can't express such constraints with a W3C XML schema. Schematron > might be able to express the constraints. Can you put the code here? Thanks. And with OWL + XML Schema is it possible to express such constraints? > On the other hand it looks a bit as you are trying to store data in XML > which should not be stored at all but rather computed when it is needed. Why it should not be stored _at all_. Can you explain me? Thanks, Xan. > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
