ubermichael / isetools

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

Feature: required nesting validator #3

Closed telic closed 2 years ago

telic commented 9 years ago

There are a few cases where a lack of nesting should be considered an error. In particular,

In addition, a document should either have all its SCENE tags nested in ACT, or not have any ACTs at all.

ubermichael commented 9 years ago

Interesting.

Are they required to be direct descendants or can there be tags between them? For example, is <S><I><SP>Rom.</SP>And all that Jazz!</I></SP> acceptable?

telic commented 9 years ago

Yes, that's fine.