ubermichael / isetools

Tools for parsing data for the Internet Shakespeare Editions
GNU General Public License v2.0
2 stars 3 forks source link

don't warn about most nesting #4

Closed telic closed 2 years ago

telic commented 9 years ago

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.

ubermichael commented 9 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>
telic commented 9 years ago

I can't think of any case where it wouldn't be symmetric. A splits B at the same time that B splits A.

ubermichael commented 8 years ago

Add a schema attribute on Tag, noSplit="HW, S, FOO" etc.

telic commented 8 years ago

Missing from the list above: SIG, RT, PN, and CW should never cross one another either.