<cRefPattern>

<cRefPattern> (definisce in che modo convertire un riferimento canonico in un URI) specifica un espressione o un pattern di sostituzione per convertire convertire un riferimento canonico in un URI [2.3.5.3 Milestone Method 2.3.5 The Reference System Declaration 2.3.5.2 Search-and-Replace Method]
Moduloheader — 2 The TEI Header
Attributiatt.global (@xml:id, @n, @xml:lang, @rend, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change))
matchPatternspecifica un'esressione regolare alla qaule posso corrispondere i valori degli attributi cRef.
Stato Richiesto
Tipo di dati

<rng:ref name="data.pattern"/>
data.pattern
Valori must be a regular expression according to the W3C XML Schema Language
replacementPatternspecifica un ‘replacement pattern’ che, una volta applicato un sub-pattern di sostituzione, fornisce un URI.
Stato Richiesto
Tipo di dati

<rng:text/>
text
Valori Should be the skeleton of a relative or absolute URI, with references to groups in the matchPattern.
Usato da
Contenuto in
header: refsDecl
Può contenere
core: p
linking: ab
Dichiarazione

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