<cRefPattern>
<cRefPattern> (定義如何將標準參照轉換成統一資源識別符 (URI) 。) 標明將標準參照轉換成統一資源識別符的表示方法與取代模式。 [2.3.6.3 Milestone Method 2.3.6 The Reference System Declaration 2.3.6.2 Search-and-Replace Method] | |||||||||||||||||
組件 | header — 2 The TEI Header | ||||||||||||||||
屬性 | att.global (@xml:id, @n, @xml:lang, @rend, @style, @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))
| ||||||||||||||||
屬於 | |||||||||||||||||
可包含在於 | header: refsDecl | ||||||||||||||||
可包含 | |||||||||||||||||
宣告 |
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* } | ||||||||||||||||
例子 | <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'])"/> |