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

Enable lengthKind 'pattern' for hexBinary type

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Front End
    • Labels:
      None

      Description

      Daffodil doesn't allow lengthKind 'pattern' for hexBinary, but there is no such restriction in the DFDL specification.

      The workaround is to use type xs:string with dfdl:encoding of 'iso-8859-1', but this is less attractive since the strings will be full of non-printing characters typically, in particular lots of zeros, which will get remapped to &E000; Private-Use-Area characters when output as part of the infoset. In general it will be HARD for anyone to consume such an infoset element - they would have to implement the inversion of PUA characters back to the character code bytes that are not allowed in XML.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              dthompson David Thompson
              Reporter:
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks