[tei-council] <postscript>
Sebastian Rahtz
sebastian.rahtz at oucs.ox.ac.uk
Sun May 6 19:16:39 EDT 2012
A gentleman of my acquaintance notes that this is illegal:
<postscript>
<p>some stuff</p>
<lb/>
<closer><signed>MM</signed></closer>
</postscript>
which seems harsh.
Would anyone care to know why we defined the content model of postscript
as
<zeroOrMore>
<choice>
<group>
<zeroOrMore xmlns="http://relaxng.org/ns/structure/1.0">
<ref name="model.divTopPart"/>
</zeroOrMore>
<oneOrMore xmlns="http://relaxng.org/ns/structure/1.0">
<ref name="model.common"/>
</oneOrMore>
<zeroOrMore xmlns="http://relaxng.org/ns/structure/1.0">
<ref name="model.divBottomPart"/>
</zeroOrMore>
</group>
<group>
<ref name="model.global"/>
</group>
</choice>
</zeroOrMore>
? i mean, why did we make model.global a choice all its own? the effect is that once you've met the <lb/>,
you go back to the start of the rule, and so <closer> fails cos there is nothing from model.common.
I know this is head-bending stuff, just vaguely hoping someone can see a rhyme or reason.
Sebastian
More information about the tei-council
mailing list