Closed
Description
Line 52 of ab.xml has this Schematron constraint:
<constraintSpec ident="abstractModel-structure-l" scheme="schematron">
<constraint>
<report xmlns="http://purl.oclc.org/dsdl/schematron" xmlns:tei="http://www.tei-c.org/ns/1.0" test="ancestor::tei:l or ancestor::tei:lg">
Abstract model violation: Lines may not contain higher-level divisions such as p or ab.
</report>
</constraint>
</constraintSpec>
However, the content models for <lg>
and <l>
both allow a child <figure>
, and <figure>
quite reasonably allows child <ab>
and child <p>
. So I think the constraint might be modified to allow for this:
<constraintSpec ident="abstractModel-structure-l" scheme="schematron">
<constraint>
<report xmlns="http://purl.oclc.org/dsdl/schematron" xmlns:tei="http://www.tei-c.org/ns/1.0" test="(ancestor::tei:l or ancestor::tei:lg) and not(parent::figure)">
Abstract model violation: Lines may not contain higher-level divisions such as p or ab.
</report>
</constraint>
</constraintSpec>
There is a similar but already slightly-qualified constraint in p.xml that would also have to be modified.