<cRefPattern>

<cRefPattern> (précise comment convertir une référence canonique en une URI) précise une expression et un modèle de remplacement pour convertir une référence canonique en une URI 2.3.5.3 Milestone Method 2.3.5 The Reference System Declaration 2.3.5.2 Search-and-Replace Method
Moduleheader — 2 The TEI Header
Attributs
matchPatternindique une expression régulière avec laquelle les valeurs de l' attribut cRefpeuvent correspondre .
Statut Requis
Type de données

<rng:ref name="data.pattern"/>
data.pattern
Valeurs must be a regular expression according to the W3C XML Schema Language
replacementPatternprécise un‘ modèle de remplacement ’qui, une fois que la substitution du sous-modèle a été exécutée, donne un URI.
Statut Requis
Type de données

<rng:text/>
text
Valeurs Should be the skeleton of a relative or absolute URI, with references to groups in the matchPattern.
Utilisé parrefsDecl
Peut contenir
core: p
linking: ab
Declaration

<rng:element name="cRefPattern">
<rng:ref name="att.global.attributes"/>
<rng:attribute name="matchPattern">
 <rng:ref name="data.pattern"/>
</rng:attribute>
<rng:attribute name="replacementPattern">
 <rng:text/>
</rng:attribute>
<rng:zeroOrMore>
 <rng:ref name="model.pLike"/>
</rng:zeroOrMore>
</rng:element>
element cRefPattern
{
   att.global.attributes,
   attribute matchPattern { data.pattern },
   attribute replacementPattern { text },
   model.pLike*
}
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'])"/>