[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [obix] Groups - Some XML artifacts generated 2013-11-08-obix.xsd uploaded
We have not spent any time on the XSD for some months. As the specification is developing, we rely heavily on an XDM (XML Data Model) for normative specification of all artifacts. In the OASIS process, if we say one thing in the prose, and another thing in the XSD, then the XSD is normative. I fed the schema in the common tool XML Spy, and then used XML Spy to generate artifacts with a variety of options. I actually generated many more, but I combined some of them into groups in a single file for easier comparison. When doing so, those documents were no longer necessarily legal XML (no longer a single root), but that’s not what I was looking at here. This results in multiple name-space declarations. I let XML generate string data to match what it thought were the constraints as defined in the XSD. In minimal, you can see that as we have it defined now, every single element can exist with no attributes at all. (Minimal) I next generated a set of artifacts in which every single legal attribute was included for each type, but no optional elements. This lets you see, for example, what a single real with all attributes looks like. Not surprisingly the date and the date off-sets are the least like the others, I then generated an artifact with no attributes but with all legal elements included. This illustrates that as every type can contain an obj, and as every type is an obj, one could potentially recurs indefinitely. We should consider this “feature” of the current XSD very carefully. The last artifact is a simple bool expressing every atrtribute in each element. It also shows up to 2 instances of every element that might multiply occur. It also demonstrates the recursion described above. tc "If something is not worth doing, it`s not worth doing well " -- Peter Drucker
From: obix@lists.oasis-open.org [mailto:obix@lists.oasis-open.org] On Behalf Of Toby Considine
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]