You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2021/01/21 18:08:01 UTC

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

Steve Lawrence resolved DAFFODIL-1503.
--------------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Fixed in a previous release, but confirmed with a new test in commit c2357f55f5bc24ff5ac0a5611ff87c15e0c36939

> 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
>              Labels: dev-verify
>             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)