You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2020/06/23 12:53:00 UTC
[jira] [Closed] (DAFFODIL-2199) initiatedContent="yes" does not
cause SDE when initiator="%ES;"
[ https://issues.apache.org/jira/browse/DAFFODIL-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Thompson closed DAFFODIL-2199.
-----------------------------------
Verified the specified commit (commit 03a2a5b5e16885cd58812f86a5a8e4aa0e2dbe91) is included in the latest pull from the incubator-daffodil repository.
Verified the incubator-daffodil sbt test suites execute successfully.
Modified a couple of the new test to verify that a Schema Definition Error (SDE) is expected.
> initiatedContent="yes" does not cause SDE when initiator="%ES;"
> ---------------------------------------------------------------
>
> Key: DAFFODIL-2199
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2199
> Project: Daffodil
> Issue Type: Bug
> Affects Versions: 2.4.0
> Reporter: Mike Beckerle
> Assignee: John Interrante
> Priority: Major
> Fix For: 3.0.0
>
>
> This schema fragment does not cause an SDE as required by the DFDL spec:
>
> {code:java}
> <xs:element name="input">
> <xs:complexType>
> <xs:sequence dfdl:initiatedContent="yes">
> <xs:element name="A" type="xs:string" dfdl:initiator="%ES;" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>{code}
> {color:#003296}Note that the DFDL spec says that when initiatedContent is yes, the initiator may not be empty string, but this is ambiguous. Clearly dfdl:initiator="" is not allowed, but a check for dfdl:initiator="%ES;" should also be rejected. {color}
>
> {color:#003296}Actually, dfdl:initiator="%WSP*;" should also be rejected in this case.{color}
>
> {color:#003296}dfdl:initiator="%ES;" should uniformly, always be rejected, because it is meaningless in all cases. {color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)