Closed telic closed 2 years ago
If A can't split B, then can B split A?
This is a split warning:
<WORK><A><B></A></B></WORK>
Is this?
<WORK><B><A></B></A></WORK>
I can't think of any case where it wouldn't be symmetric. A splits B at the same time that B splits A.
Add a schema attribute on Tag, noSplit="HW, S, FOO" etc.
Missing from the list above: SIG, RT, PN, and CW should never cross one another either.
The NestingValidator doesn't need to be quite so picky. Most tags should be allowed to cross without warning or error, including self-nested tags.
There are a few exceptions:
All those mentioned above should be errors, not simply warnings.