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 2021/01/26 12:34:00 UTC

[jira] [Closed] (DAFFODIL-1503) Warning needed for length="0" being ignored.

     [ https://issues.apache.org/jira/browse/DAFFODIL-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-1503.
-----------------------------------

Verified the specified commit (commit c2357f55f5bc24ff5ac0a5611ff87c15e0c36939) is included in the latest pull from the incubator-daffodil repository.

Verified the added test passes specified SDW.

> Warning needed for length="0" being ignored.
> --------------------------------------------
>
>                 Key: DAFFODIL-1503
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1503
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Diagnostics, Front End, Usability
>            Reporter: Mike Beckerle
>            Assignee: Steve Lawrence
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> When using dfdl:outputValueCalc, a very common idiom is to create temporary locations that evaluate when unparsing, but which have no representation in the data.
> This is typically done by dfdl:length="0" dfdl:lengthKind="explicit".
> If you leave off the dfdl:lengthKind="explicit" however, and the surrounding format has dfdl:lengthKind of "implicit", then the dfdl:length="0" is just silently ignored.
> Similarly if dfdl:lengthKind="delimited" or "pattern" again the dfdl:length property will be ignored.
> This should either be an SDE, or SDW (schema definition warning)



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