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 2023/01/23 19:46:00 UTC
[jira] [Updated] (DAFFODIL-2231) Separator unparsed even when dfdl:occursCount expression is zero
[ https://issues.apache.org/jira/browse/DAFFODIL-2231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Beckerle updated DAFFODIL-2231:
------------------------------------
Fix Version/s: 3.5.0
> Separator unparsed even when dfdl:occursCount expression is zero
> ----------------------------------------------------------------
>
> Key: DAFFODIL-2231
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2231
> Project: Daffodil
> Issue Type: Bug
> Components: Unparsing
> Reporter: Steve Lawrence
> Priority: Major
> Fix For: 3.5.0
>
>
> See the attached schema, and the following data
> {quote}
> Year,Make,Model,Description,Price
> 1997,Ford,E350,"ac, abs, moon",2999.99
> 1999,Chevy,Venture Extended Edition,,4900.00
> 1999,Chevy,Venture Extended Edition,Very Large,5000.00
> 1996,Jeep,Grand Cherokee,"MUST SELL! air, moon roof, loaded",4799.00
> {quote}
> If the 'header' variable is set to "none" then this schema correctly does not create a <header> element because occursCount evaluates to 0. However, on unparse even though there is no header element, Daffodil still creates a separator, causing an empty newline to be output as the first line.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)