The current implementations of Data Format Description Language (DFDL) v 1.0 do not support unordered lists. Is there a workaround?
How can I create an unordered list in DFDL?
936 views Asked by james.garriss At
2
The current implementations of Data Format Description Language (DFDL) v 1.0 do not support unordered lists. Is there a workaround?
Yes, there is a workaround. As a simple example, suppose the input text is simply a set of characters (a, b, and c), which can appear in any order. To create an unordered list, create an element for each of the characters. Put them in a containing element, such that the container has an unbounded max number of occurrences and the child elements are all choices.
Conceptually, it looks like this:
Use a discriminator to test for the existence of each character.
The DFDL schema looks like this (in part)
: