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

Add lengthKind 'valuePattern' which uses regex to match allowed data values

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.0
    • None
    • Back End, Front End
    • None

    Description

      Existing dfdl:lengthKind 'pattern' uses the pattern to determine the length. No match means length 0.

      People want to use regular expression (or regex) matches differently from this. They want to specify the allowed data patterns, with no match meaning parse error. 

      This should be added as a dfdlx experimental feature to develop experience with it. 

      A few design issues: we need to decide if this pattern includes nil values in its syntax, or if those get added as allowed value patterns automatically. It is simpler if we define this to require that the regex pattern specify all possible data patterns that are accepted, whether they become nilled elements, or elements with values. That, however, requires one to redundantly express the dfdl:nilValue information.

      There may also be an interaction with properties like dfdl:emptyValueDelimiterPolicy and the empty representation. I.e., does the pattern have to allow for a zero-length successful match in order for the data to be zero-length?

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: