Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The current Daffodil implementation extends this behavior to make the dfdldfdlx:choiceBranchKey annotation specify a space delimited list of keys.

This proposal further extends branchKeys by adding a dfdldfdlx:choiceBranchKeyRanges annotation. dfdldfdlx:choiceBranchKeyRanges is a space delimited list of integers, interperated as "min1 max1 min2 max2 ... minN maxN". It will match to any integer contained in any of the specified ranges.

Logically, setting dfdldfdlx:choiceBranchKeyRanges="a b" is equivelent to dfdl:choiceBranchKey="a a+1 a+2 ... b"; although using choiceBranchKeyRanges may allow for a more efficient implementation.

...