This is a static archive of the previous Open Grid Forum Redmine content management system saved from host redmine.ogf.org file /issues/229 at Thu, 03 Nov 2022 15:29:44 GMT document #229: dfdl:occursIndex() function - DFDL WG - Open Grid Forum

document #229

dfdl:occursIndex() function

Added by Steve Hanson about 8 years ago. Updated about 8 years ago.

Status:closed Start date:09/09/2014
Priority:Normal Due date:
Assignee:Michael Beckerle % Done:

100%

Category:-
Target version:-
Document Type:Proposed Recommendation

Description

29/7: Clarify behaviour and decide whether an argument is needed to make it context independent. Noted that fn:position() also does not take an argument, but it returns position in current sequence and not position in array.
4/8: With Steve but consensus is that an argument is needed.
26/8: Mike to review. If an argument is needed, we should make sure this is in next published spec as the function is used in MIL-STD-2045 schemas.
2/9: After discussion, settled on an xs:long argument being a 1 based count up the parent axis. It is a processing error if the argument reaches beyond the root. It is a schema definition error if the argument is <= 0. Erratum 2.167 created. To be included in draft r23. However post-meeting Mike thinks that path argument is better as it allows better type checking against the schema.
9/9: Closed. Mike not happy with above conclusion so re-opened discussion. Reverted back to having no argument, clarified that the function can only be used on an element that either is an array or is enclosed within an array (glossary definition), schema definition error otherwise. Acknowledged there are other scenarios where the function might apply (such as optional element, occursCountKind 'parsed' returns multiple occurrences) but these are not supported.

History

Updated by Steve Hanson about 8 years ago

  • Status changed from submitted to closed
  • % Done changed from 0 to 100

Erratum 2.167 created. GWD.207 updated.

http://redmine.ogf.org/dmsf_files/13332?download=

(Other formats not available in this archive.

This is a static archive of the previous Open Grid Forum Redmine content management system saved from host redmine.ogf.org file /issues/229 at Thu, 03 Nov 2022 15:29:47 GMT