xsl:for-each-group cannot reliably cut our files into chapters, because chapter markers are set at two different levels. They are either:
the direct child of <div type="collate">
the direct child of a <seg> marking variation.
Also we are trying to cut chapter files from source editions with deep TEI hierachies. We should simplify that.
Proposed Solution
has two parts:
We simplify the edition files in P6-Pt1 by removing TEI headers and bodies and preparing only a single TEI header, text, and body for each edition file.
We then work on planting chapter boundary <anchor/> elements in place as the first preceding::* element before either a <seg> containing a chapter marker, or a milestone child of <div type="collate">. We will set these new <anchor/> elements to be siblings of each other. They must be at the same hierarchical level across each of the five editions files in order for us to reliably produce chapter files.
Problem
xsl:for-each-group cannot reliably cut our files into chapters, because chapter markers are set at two different levels. They are either:
<div type="collate">
<seg>
marking variation.Also we are trying to cut chapter files from source editions with deep TEI hierachies. We should simplify that.
Proposed Solution
has two parts:
We simplify the edition files in P6-Pt1 by removing TEI headers and bodies and preparing only a single TEI header, text, and body for each edition file.
We then work on planting chapter boundary
<anchor/>
elements in place as the first preceding::* element before either a<seg>
containing a chapter marker, or a milestone child of<div type="collate">
. We will set these new<anchor/>
elements to be siblings of each other. They must be at the same hierarchical level across each of the five editions files in order for us to reliably produce chapter files.