[tei-council] Two quick questions about Schematron constraints
Sebastian Rahtz
sebastian.rahtz at oucs.ox.ac.uk
Sat Jun 16 02:40:24 EDT 2012
On 15 Jun 2012, at 19:46, Martin Holmes wrote:
>
> In this constraint (from delSpan):
>
> <constraintSpec ident="spanTo" scheme="isoschematron">
> <constraint>
> <assert xmlns="http://purl.oclc.org/dsdl/schematron"
> test="@spanTo">The spanTo= attribute of <name/> is required.</assert>
> </constraint>
> </constraintSpec>
>
> does <name/> automatically get replaced by ancestor::elementSpec/@ident?
<name/> is the name of the element which the constraint matches. so no,
not that @ident, but the name() of the matching element. Similar, but
not the same.
> What happens in the case of constraints on attributes? There appears to
> be only one (on @targetLang in att.pointing), but if <name/> were used
> there, would it be replaced with @targetLang, or with the ancestor's
> @ident (att.pointing)?
@targetLang
the replacement of <name/> is done in Schematron, not in ODD processing
> Secondly, these constraints appear on the root TEI element:
>
> <constraintSpec ident="c1" scheme="isoschematron">
> <constraint>
> <ns xmlns="http://purl.oclc.org/dsdl/schematron" prefix="tei"
> uri="http://www.tei-c.org/ns/1.0"/>
> </constraint>
> </constraintSpec>
> <constraintSpec ident="c2" scheme="isoschematron">
> <constraint>
> <ns xmlns="http://purl.oclc.org/dsdl/schematron" prefix="rng"
> uri="http://relaxng.org/ns/structure/1.0"/>
> </constraint>
> </constraintSpec>
>
> What are they actually doing, if anything?
declaring namespace prefixes. It is a pain having to do this, but its needed.
--
Sebastian Rahtz
Head of Information and Support Group
Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
More information about the tei-council
mailing list