[DFDL-WG] Missing OccursCountKind
Tim Kimber
KIMBERT at uk.ibm.com
Tue Aug 11 17:38:02 CDT 2009
We already use lengthKind='implicit' to mean 'parse this structure
normally, and its length will become apparent'.
I think it would be consistent to use occursKind='implicit' to mean 'parse
this array normally, and the number of occurrences will become apparent'.
Similarly, I think it would be consistent to allow dfdl:initiatedContent (
with the new discriminating behaviour ) on an array, because we allow it
on all other points of uncertainty ( or do we? ).
regards,
Tim Kimber, Common Transformation Team,
Hursley, UK
Internet: kimbert at uk.ibm.com
Tel. 01962-816742
Internal tel. 246742
From:
dfdl-wg-request at ogf.org
To:
dfdl-wg at ogf.org
Date:
11/08/2009 18:00
Subject:
dfdl-wg Digest, Vol 36, Issue 6
Send dfdl-wg mailing list submissions to
dfdl-wg at ogf.org
To subscribe or unsubscribe via the World Wide Web, visit
http://www.ogf.org/mailman/listinfo/dfdl-wg
or, via email, send a message with subject or body 'help' to
dfdl-wg-request at ogf.org
You can reach the person managing the list at
dfdl-wg-owner at ogf.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of dfdl-wg digest..."
Today's Topics:
1. Missing OccursCountKind (Alan Powell)
----------------------------------------------------------------------
Message: 1
Date: Tue, 11 Aug 2009 16:18:16 +0100
From: Alan Powell <alan_powell at uk.ibm.com>
Subject: [DFDL-WG] Missing OccursCountKind
To: dfdl-wg at ogf.org
Message-ID:
<OFD7E1715D.30B1C83D-ON8025760F.005278A0-8025760F.005410AB at uk.ibm.com>
Content-Type: text/plain; charset="iso-8859-1"
Tim has pointed out that as currently defined it is not possible to define
an array where the number of occurrences is determined by the initiator.
For example
Scalar1: xxxxx
Array: xxxx
Array: xxxx
Scalar2: xxx
It is inconsistent that dfdl can identify optional elements using
speculative parsing but not a variable number of occurrences.
occursCountKind
Enum
Specifies how the actual number of occurrences is to be established.
Valid values ?stopValue?, ?explicit?, 'implicit'? or ?useAvailableSpace?
?explicit? means use the value of the dfdl:occursCount property.
?implicit? means use the value of the maxOccurs on the declaration. It is
a schema definition error if the value for minOccurs is not equal to
maxOccurs.
?useAvailableSpace? means the occurrences fill the available space which
is limited by a containing construct.
?stopValue? means look for a logical stop value which signifies the end of
the occurrences.
Annotation: dfdl:element
Suggestions for new enumeration:
'parsed' , The number of occurrences is determined by parsing until a
non-matching element is encountered.
change 'implicit' to mean between minOccurs and maxOccurs
As an addition should we allow the dfdl:initiatedContent property on
arrays if we agree to make it discriminating?
initiatedContent
Booloean
When 'true' indicates that all the children of the sequence are initiated.
It is a schema definition error if any children have their dfdl:initiator
property set to the empty string.
When 'false', the children of the sequence may have their dfdl:initiator
property set to the empty string.
Annotation: dfdl:sequence, dfdl:choice, dfdl:group
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.ogf.org/pipermail/dfdl-wg/attachments/20090811/dbec7b11/attachment-0001.html
------------------------------
--
dfdl-wg mailing list
dfdl-wg at ogf.org
http://www.ogf.org/mailman/listinfo/dfdl-wg
End of dfdl-wg Digest, Vol 36, Issue 6
**************************************
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/20090811/31872646/attachment.html
More information about the dfdl-wg
mailing list