Copy link to clipboard
Copied
In one of our elements, CELLTEXT, we have the following General Rule (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)*. Another element, SLIDE, can appear only appear once, either as the first element within CELLTEXT before those in the General Rule, or the last element after those in the General Rule.
I can change the General Rule to be Slide?, (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)* so it can appear first, or (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)*, Slide? so it can appears last. Is there a way to combine these into a single General Rule?
I've managed to solve it - I'd forgotten about using &, meaning the elements can appear in any order. By having the General Rule as Slide? & (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)*, the Slide element can either preceed or follow those elements in parenthesis.
Copy link to clipboard
Copied
I've managed to solve it - I'd forgotten about using &, meaning the elements can appear in any order. By having the General Rule as Slide? & (<TEXT> | Emphasis | BulletList | NumList | Action | Highlight)*, the Slide element can either preceed or follow those elements in parenthesis.