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

Incorrect Behavior when escapeCharacter == escapeEscapeCharacter

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s6
    • None
    • Back End
    • None

      When creating tests for Escape Scheme Use Cases (DFDL-301) I came across the following issue:

      <dfdl:defineEscapeScheme name="table1">
      <dfdl:escapeScheme escapeCharacter='/' escapeKind="escapeCharacter" escapeEscapeCharacter="/" extraEscapedCharacters="?" />
      </dfdl:defineEscapeScheme>

      <tdml:document><tdml:documentPart type="text">....//....</tdml:documentPart></tdml:document>

      According to the table, I should expect the following output:

      <tdml:dfdlInfoset>
      <element1>..../....</element1>
      </tdml:dfdlInfoset>

      Where the escapeEscapeCharacter prevents the escapeCharacter from being removed.

      However, this is the actual result:

      Actual <element1 xmlns:ex="http://example.com">........</element1>

      I've created more tests that test this same principle and none are providing the expected result

              jchab Jessie Chab
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: