Conversion Table rule with optional elements
In our EDD, we have a Section element that consists of a mandatory Heading element. It can then be followed by any of the following optional elements, in any order and they can appear multiple times:
- Navigation (Table element)
- Paragraph (<TEXT> element)
- HowToInstruction (Table element)
- FieldList (Table element)
- Section (Section element, creating a sub-section)
In our Conversion Table (to apply structure to our unstructured documents), I have a rule to wrap the elements. I tried using the | symbol (any one of the items can occur): E:Heading, (Navigation* | E:Paragraph* | HowToInstructions* | FieldList* | Section*), as well as the & symbol (items can occur in any order): E:Heading, (Navigation* & E:Paragraph* & HowToInstructions* & FieldList* & Section*). In both cases, the rule will only work if all the elements appear. If any of the elements are missing, the rule doesn't work.
