ubermichael / isetools

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

Feature: disallow sectioning to cross split-lines #7

Closed telic closed 2 years ago

telic commented 9 years ago

Sectioning elements should not be allowed to "cross" a split line (marked with @part). They may fully contain a run of split lines, but must not have their start or end tag occurring amongst them. The affected elements are:

I'm not sure about QUOTE and LINEGROUP. It might be useful in some cases for these, but it would make our XML serialization much more difficult...

ubermichael commented 9 years ago

This is a big one. I don't think we can express it in a schema alone. Maybe we need a PartLineValidator or something like it? Then it could also check other aspects of part lines (i, m, f in the right order, they have the correct @n attributes, check TLNs, etc).

What do you think?

telic commented 9 years ago

Yes, that sounds like a good approach.

telic commented 9 years ago

I edited the OP; it doesn't really make sense for sectioning to occur inside of split-line structures either.