<cRefPattern>

<cRefPattern> (Modèle de référence canonique) spécifie un modèle d’expression et des règles de remplacement pour transformer une référence canonique en URI. [2.3.6.3 Milestone Method 2.3.6 The Reference System Declaration 2.3.6.2 Search-and-Replace Method]
Module header — The TEI Header
Attributs
Contenu dans
header: refsDecl
Peut contenir
core: p
linking: ab
Note

Le résultat de la substitution peut être la référence à une URI relative ou absolue. Dans ce dernier cas, il est combiné avec la valeur de l'attribut xml:base en vigueur à la place où apparaît l'attribut cRef pour former une URI absolue selon l'usage habituel indiqué par XML Base.

Exemple
<cRefPattern matchPattern="([1-9A-Za-z]+)\s+([0-9]+):([0-9]+)"
 replacementPattern="#xpath(//div[@type='book'][@n='$1']/div[@type='chap'][@n='$2']/div[@type='verse'][@n='$3'])"/>
Modèle de contenu
<content>
 <classRef key="model.pLikeminOccurs="0"
  maxOccurs="unbounded"/>

</content>
Schéma Declaration
<rng:element name="cRefPattern">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.patternReplacement.attributes"/>
 <rng:zeroOrMore>
  <rng:ref name="model.pLike"/>
 </rng:zeroOrMore>
</rng:element>
element cRefPattern
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   att.patternReplacement.attributes,
   model.pLike*
}