You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "attila horvath (Jira)" <ji...@apache.org> on 2019/12/31 13:04:00 UTC
[jira] [Commented] (DAFFODIL-2261) Optional first element in
unordered sequence fails to unparse
[ https://issues.apache.org/jira/browse/DAFFODIL-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17006087#comment-17006087 ]
attila horvath commented on DAFFODIL-2261:
------------------------------------------
Am newbie to this forum/jira...
Added Book2.csv (input) and corresponding DFDL schema Book2.dfdl.xsd that exemplifies the error during unparsing.
> Optional first element in unordered sequence fails to unparse
> -------------------------------------------------------------
>
> Key: DAFFODIL-2261
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2261
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Affects Versions: 2.5.0
> Reporter: Josh Adams
> Assignee: Dave Thompson
> Priority: Major
> Fix For: 2.5.0
>
> Attachments: BE.dfdl.xsd, BE.tdml, Book2.csv, Book2.dfdl.xsd
>
>
> A user discovered an issue with optional elements inside unordered sequences. Specifically, when the first element of an unordered sequence has minOccurs="0" and does not have maxOccurs > 1, the unparse attempt will fail with the following error message:
> "Expected element start event for {}x, but received element end event for {}y."
> Attached is a test case demonstrating this behavior.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)