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

Enable lengthKind 'pattern' for hexBinary type

XMLWordPrintableJSON

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.0
    • 2.0.0
    • Front End
    • None

      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.

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

                Created:
                Updated:
                Resolved: