OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

obix message

[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.




"If something is not worth doing, it`s not worth doing well "    -- Peter Drucker

Toby Considine
TC9, Inc

OASIS TC Chair: oBIX & WS-Calendar

OASIS TC Editor: EMIX, Energy Interoperation

SGIP Smart Grid Architecture Committee


Email: Toby.Considine@gmail.com
Phone: (919)619-2104

blog: http://www.NewDaedalus.com


From: obix@lists.oasis-open.org [mailto:obix@lists.oasis-open.org] On Behalf Of Toby Considine
Sent: Wednesday, June 11, 2014 2:17 PM
To: obix@lists.oasis-open.org
Subject: [obix] Groups - Some XML artifacts generated 2013-11-08-obix.xsd uploaded


Document Name: Some XML artifacts generated 2013-11-08-obix.xsd

The associated XML artifacts were all generated from the XSD using XML Spy.
This means they demonstrate legal

structures as defined in the XML Schema as declared in bool

Minimal: All types, non-mandatory attributes excluded, optional elements
excluded. Note that empty object of

every type are legal.

noOptionalElements: All types, all attributes, optional elements excluded.

abstime optional elements: abstime no attributes with a single instance of
each Optional Element included. Note

that this demonstrates a possible recursion allowed by the current schema.

bool all atributes all elements: much like the abstime example, except this
shows a bool with all attributes

shown on each optional elment, also shows multipliciy as each
moulti-occurring elment is shown twice.
Download Latest Revision
Public Download Link

Submitter: Toby Considine
Group: OASIS Open Building Information Exchange (oBIX) TC
Folder: Contributions
Date submitted: 2014-06-11 11:16:35


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]