It seems obvious they did not run their xml translation
through a verifier, which should have been easy.
Syan, computer people have been using mutually
recursive data types for many years. I'm not sure what
the problem is here? You are correct that if the
mutual type reference elements were compulsory, then it
would be impossible to construct a serialized
instance - but the references are all optional and
hence the recursion stops when we have no more
data to fill in...
attached is an (meaningless) instance that validates against
this xsd using xerces
Andrew
<bt:values xmlns:bt="openEHR/v1/BaseTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="bt:DV_INTERVAL">
<lower xsi:type="bt:DV_COUNT">
<normal_range>
<lower_included>false</lower_included>
<lower_unbounded>false</lower_unbounded>
<upper_unbounded>false</upper_unbounded>
</normal_range>
<magnitude>5</magnitude>
</lower>
<upper xsi:type="bt:DV_COUNT">
<normal_range>
<lower_included>true</lower_included>
<lower_unbounded>false</lower_unbounded>
<upper_unbounded>false</upper_unbounded>
</normal_range>
<magnitude>15</magnitude>
</upper>
<lower_unbounded>false</lower_unbounded>
<upper_unbounded>false</upper_unbounded>
</bt:values>
_______________________________________________
Gpcg_talk mailing list
[email protected]
http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk