att.predicate

att.predicate provides attributes for filtering by an XPath predicate expression. [22.4 Common Elements 22.5.4.1 The TEI processing model 22.5.4.9 Implementation of Processing Models]
Moduletagdocs — Documentation Elements
Membersequiv model
AttributesAttributes
predicatethe condition under which the element bearing this attribute applies, given as an XPath predicate expression.
Status Optional
Datatype teidata.xpath
Note

The XPath predicate expression given as the value of the predicate attribute has to be provided without wrapping square brackets.

Example
<model predicate="parent::person"
 behaviour="inline">

 <desc versionDate="2015-08-21"
  xml:lang="en">
If it is a child of a person element, treat as
   inline</desc>
</model>
Example

The following example declares that the name element can be mapped to, or is equivalent to, the external concepts of ‘PERSON’ and ‘PLACE’ depending on the ‘XPath’ expression given in predicate

<elementSpec ident="namemode="change">
 <equiv name="PERSON"
  predicate="@type eq 'person'"
  uri="http://www.example.com/entities/person"/>

 <equiv name="PLACE"
  predicate="@type eq 'place'"
  uri="http://www.example.com/entities/place"/>

</elementSpec>