Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2231

Separator unparsed even when dfdl:occursCount expression is zero

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0
    • Unparsing
    • None

    Description

      See the attached schema, and the following data

      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

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            slawrence Steve Lawrence
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment