[tei-council] Schematron constraint on <app>

Martin Holmes mholmes at uvic.ca
Mon Jun 10 18:21:34 EDT 2013


Even more strange, now I look at it: the constraint is specified for the 
TEI namespace, but the example is in the Examples namespace. Maybe the 
example which is triggering the error is elsewhere...

On 13-06-10 02:54 PM, Martin Holmes wrote:
> Hi there,
>
> The <app> spec contains a constraint which bans the appearance of two
> <lem> elements within the same <app>; but one of the examples in the
> same file does precisely that:
>
> <exemplum xml:lang="en">
>       <egXML xmlns="http://www.tei-c.org/ns/Examples">
>         <app type="substantive">
>           <rdgGrp type="subvariants">
>             <lem wit="#El #Hg">Experience</lem>
>             <rdg wit="#Ha4">Experiens</rdg>
>           </rdgGrp>
>           <rdgGrp type="subvariants">
>             <lem wit="#Cp #Ld1">Experiment</lem>
>             <rdg wit="#La">Ex<g ref="#per"/>iment</rdg>
>           </rdgGrp>
>           <rdgGrp type="subvariants">
>             <lem>Eriment<wit>[unattested]</wit>
>     </lem>
>             <rdg wit="#Ra2">Eryment</rdg>
>           </rdgGrp>
>         </app>
>       </egXML>
>     </exemplum>
>
> Is this example OK? If so, then the Schematron constraint is wrong; if
> not, then how should it be fixed? This is the constraint:
>
> <constraintSpec scheme="isoschematron" ident="only1lem">
>       <constraint xmlns:sch="http://purl.oclc.org/dsdl/schematron">
>         <sch:assert test="count( descendant::tei:lem[ generate-id(
> current() ) = generate-id(    ancestor::tei:app[1] ) ]) &lt;       2">
> Only one &lt;lem&gt; element may appear within a single  apparatus
> entry, whether it appears outside a &lt;rdgGrp&gt;
> element or within it.</sch:assert>
>       </constraint>
>     </constraintSpec>
>
> I'm a bit puzzled as to why this is only throwing an error recently,
> when the app.xml file was last edited back in April.
>
> Cheers,
> Martin
>


More information about the tei-council mailing list