Skip to content

Commit 58096ef

Browse files
committed
properly closing XPath predicates in two exempla for TEIC#2690
1 parent cc26a63 commit 58096ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

P5/Source/Guidelines/en/CO-CoreElements.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3962,7 +3962,7 @@ the <att>n</att> attribute on the <gi>div1</gi>, <gi>div2</gi>,
39623962
<gi>div3</gi>, and <gi>l</gi> tags, but giving the reference string in
39633963
full on each tag. If canonical references are made only to lines, the
39643964
reference system could be declared as follows: <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="CORS6-egXML-ko" xml:lang="und" source="#NONE"><refsDecl>
3965-
<cRefPattern matchPattern="([^ ]+ [0-9]+\.[0-9]+\.[0-9]+)" replacementPattern="#xpath(//l[@n='$1')"/>
3965+
<cRefPattern matchPattern="([^ ]+ [0-9]+\.[0-9]+\.[0-9]+)" replacementPattern="#xpath(//l[@n='$1'])"/>
39663966
</refsDecl></egXML>
39673967
Since the entire regular expression is enclosed as a parenthetical
39683968
subgroup, the entire canonical reference string is sought as the value
@@ -3971,8 +3971,8 @@ of the <att>n</att> attribute on an <gi>l</gi> element.</p>
39713971
lines, the declaration for the reference system must be more
39723972
complicated:
39733973
<egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="CORS6-egXML-cf" xml:lang="und" source="#NONE"><refsDecl>
3974-
<cRefPattern matchPattern="([^ ]+ [0-9]+\.[0-9]+\.[0-9]+)" replacementPattern="#xpath(//l[@n='$1')"/>
3975-
<cRefPattern matchPattern="([^ ]+ [0-9]+\.[0-9]+)" replacementPattern="#xpath(//div2[@n='$1')"/>
3974+
<cRefPattern matchPattern="([^ ]+ [0-9]+\.[0-9]+\.[0-9]+)" replacementPattern="#xpath(//l[@n='$1'])"/>
3975+
<cRefPattern matchPattern="([^ ]+ [0-9]+\.[0-9]+)" replacementPattern="#xpath(//div2[@n='$1'])"/>
39763976
</refsDecl></egXML>
39773977
This declaration indicates that the entire reference string must be
39783978
sought as the value of the <att>n</att> attribute on a <gi>div1</gi>,

0 commit comments

Comments
 (0)