<cRefPattern>

<cRefPattern> (legt fest, wie eine Standardreferenz in eine URI umgewandelt werden kann.) legt einen Ausdruck und ein Ersetzungsmuster für die Umwandlung einer Standardreferenz in eine URI fest. 2.3.5.3 Milestone Method 2.3.5 The Reference System Declaration 2.3.5.2 Search-and-Replace Method
Modulheader — 2 The TEI Header
Attribute
matchPatternlegt einen regulären Ausdruck fest, gegen den die Werte eines cRef-Attributs abgeglichen werden können.
Zustand Obligatorisch
Datentyp
data.pattern
Werte must be a regular expression according to the W3C XML Schema Language
Anmerkung
Parenthesised groups are used not only for establishing order of precedence and atoms for quantification, but also for creating subpatterns to be referenced by the replacementPattern attribute.
replacementPatternbeschreibt ein ‘replacement pattern (Ersetzungsmuster)’, das eine URI erstellt, sobald der Austausch der untergeordneten Ersetzungsmuster durchgeführt wurde.
Zustand Obligatorisch
Datentyp
text
Werte Should be the skeleton of a relative or absolute URI, with references to groups in the matchPattern.
Anmerkung
The strings ‘$1’ through ‘$9’ are references to the corresponding group in the regular expression specified by matchPattern (counting open parenthesis, left to right). Processors are expected to replace them with whatever matched the corresponding group in the regular expression.
If a digit preceded by a dollar sign is needed in the actual replacement pattern (as opposed to being used as a back reference), the dollar sign must be written as %24.
Verwendet vonrefsDecl
Kann enthalten
core: p
linking: ab
Deklaration
element cRefPattern
{
   att.global.attributes,
   attribute matchPattern { data.pattern },
   attribute replacementPattern { text },
   model.pLike*
}
Beispiel
<cRefPattern
  matchPattern="([1-9A-Za-z]+)\s+([0-9]+):([0-9]+)"
  replacementPattern=" "/>
Anmerkung
The result of the substitution may be either an absolute or a relative URI reference. In the latter case it is combined with the value of xml:base in force at the place where the cRef attribute occurs to form an absolute URI in the usual manner as prescribed by XML Base.