You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2021/01/07 20:35:00 UTC

[jira] [Updated] (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 ]

Mike Beckerle updated DAFFODIL-1503:
------------------------------------
    Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>
> 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)