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 2019/11/11 19:24:00 UTC

[jira] [Created] (DAFFODIL-2231) Separator unparsed even when dfdl:occursCount expression is zero

Steve Lawrence created DAFFODIL-2231:
----------------------------------------

             Summary: 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


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.3.4#803005)