[ 
https://issues.apache.org/jira/browse/DAFFODIL-822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269380#comment-17269380
 ] 

Steve Lawrence commented on DAFFODIL-822:
-----------------------------------------

Confirmed that this is still an issue as of 3.0.0. A very simple schema that 
shows this is:

{code:xml}
<xs:element name="ivc" type="xs:int" dfdl:inputValueCalc="{ 1 }" 
dfdl:initiator="X" />
{code}

When using this schema with 3.0.0, no SDW or SDE is created, the initiator is 
still silently ignored.

Note that the spec says the following regarding inputValueCalc:
{quote}
If this property appears on an element declaration or element reference schema 
component, the appearance of any other DFDL properties on that component is a 
Schema Definition Error.

If this property appears on an element reference, then DFDL properties 
expressed on the referenced global element declaration or its type are ignored.

If this property appears on an element declaration, then DFDL properties 
expressed on its type are ignored.
{quote}

So in addition to terminator, we also need to check for and error if there are 
any DFDL properities.

> Should SDE when initiator is present on InputValueCalc element.
> ---------------------------------------------------------------
>
>                 Key: DAFFODIL-822
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-822
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Diagnostics
>            Reporter: Taylor Wise
>            Priority: Minor
>              Labels: beginner, dev-verify
>
> Daffodil currently does not SDE when the initiator property appears on an 
> element that also has an inputValueCalc property.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to