Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-676

Daffodil throws error when using double new line as terminator

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocking
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: s10
    • Component/s: None
    • Labels:
      None
    • Environment:
      Win 7, Daffodil 0.9

      Description

      Set a terminator as a double new line (%NL;%NL. This causes Daffodil to throw an error on the CLI (and JAPI) that I don’t understand:

      Parse Error: Term('%NL;%NL;') - element.MessageHeaders: Remote delimiter found instead of local!

      Part of the DFDL:

      <xsd:element name="TopLevel">
      <xsd:complexType>
      <xsd:sequence>
      <xsd:element name="MessageHeaders" dfdl:lengthKind="delimited"
      dfdl:terminator="%NL;%NL;" type="xsd:string"/>
      <xsd:element name="Body" type="xsd:string"/>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>

      Input:

      Date: Sat, 15 Feb 2013 08:54:52 -0500

      This is the body

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              jchab Jessie Chab
              Reporter:
              james.garriss James Garriss
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks