<cRefPattern>
<cRefPattern> (canonical reference pattern) specifies an expression and replacement pattern for transforming a canonical reference into a URI. 2.3.5.3 Milestone Method 2.3.5 The Reference System Declaration 2.3.5.2 Search-and-Replace Method | |||||||||||||||||||||
Module | header — 2 The TEI Header | ||||||||||||||||||||
In addition to global attributes | In addition to global attributes
|
||||||||||||||||||||
Used by | |||||||||||||||||||||
May contain | |||||||||||||||||||||
Declaration |
element cRefPattern { att.global.attributes, attribute matchPattern { data.pattern }, attribute replacementPattern { text }, model.pLike* } |
||||||||||||||||||||
Example |
<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'])"/> |
||||||||||||||||||||
Note |
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.
|