[tei-council] tei: prefix in @match attribute

Martin Holmes mholmes at uvic.ca
Wed Oct 15 19:13:43 EDT 2014


Hi all,

This example:

<certainty match="parent::tei:gap/@reason"
 locus="value" cert="low"/>

which appears in this spec:

<http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-certainty.html>

uses a tei: prefix in the @match attribute, to point to the parent element. Why does it do that? Do we assume that the default element namespace in the XML document is not inherited by the XPath context for the match expression? Even if that's the case, doesn't it require that a tei: prefix be defined somewhere before it can be used?

Cheers,
Martin


More information about the tei-council mailing list