[DFDL-WG] New discriminator examples
Alan Powell
alan_powell at uk.ibm.com
Wed Dec 16 06:51:47 CST 2009
I have done a few optional examples and, with the except of simple types,
the same discriminators apply
The rules
A dfdl:discriminator resolves the presence of its parent group (sequence
or choice). Note this isn't necessarily a point of uncertainty
If the parent group is the content model for a complex types then the
instance of the element of the complex type also exists (that is: if the
group is only defining the content of a complex element then the
discriminator propagates from the group to the element automatically)
Mean that a discriminator does not resolve an optional/unordered/floating
element of simpleType (see first optional example)
Alan Powell
MP 211, IBM UK Labs, Hursley, Winchester, SO21 2JN, England
Notes Id: Alan Powell/UK/IBM email: alan_powell at uk.ibm.com
Tel: +44 (0)1962 815073 Fax: +44 (0)1962 816898
From:
Alan Powell/UK/IBM at IBMGB
To:
dfdl-wg at ogf.org
Date:
11/12/2009 16:43
Subject:
[DFDL-WG] New discriminator examples
I started building examples implementing the new discriminator semantics
for each type of point of uncertainty . I only got as far as simple
choices with simple and complex elements as there seem to be lots of
different cases.
It is worth sharing anyway to see if we are on the right track.
The long form discriminator is very verbose do is it worth inventing a
short form or will it always be done by tools anyway?
Alan Powell
MP 211, IBM UK Labs, Hursley, Winchester, SO21 2JN, England
Notes Id: Alan Powell/UK/IBM email: alan_powell at uk.ibm.com
Tel: +44 (0)1962 815073 Fax: +44 (0)1962 816898
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
[attachment "Discriminato- examples-1.xsd" deleted by Alan Powell/UK/IBM]
--
dfdl-wg mailing list
dfdl-wg at ogf.org
http://www.ogf.org/mailman/listinfo/dfdl-wg
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ogf.org/pipermail/dfdl-wg/attachments/20091216/a4921937/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Discriminator Optional examples-1.xsd
Type: application/octet-stream
Size: 3929 bytes
Desc: not available
Url : http://www.ogf.org/pipermail/dfdl-wg/attachments/20091216/a4921937/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Discriminato- examples-1.xsd
Type: application/octet-stream
Size: 6952 bytes
Desc: not available
Url : http://www.ogf.org/pipermail/dfdl-wg/attachments/20091216/a4921937/attachment-0001.obj
More information about the dfdl-wg
mailing list