Skip to content

Commit 972db64

Browse files
committed
Bug fix:
Missing namespace prefix in context attribute added, and results to match
1 parent 56a5bb6 commit 972db64

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

P5/Test/detest.odd

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
<elementSpec ident="div" mode="change">
174174
<constraintSpec mode="add" ident="canondiv" scheme="schematron">
175175
<constraint>
176-
<sch:rule context="div">
176+
<sch:rule context="tei:div">
177177
<sch:report test="@type eq 'canon' and parent::tei:div/@type eq 'canon'">
178178
divs of type 'canon' may not be nested
179179
</sch:report>

P5/Test/expected-results/detest_xml_schematron.log

+8-11
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,18 @@ An lg element must contain at least one child l, lg, or gap element. (count(desc
6868
@calendar indicates one or more
6969
systems or calendars to which the date represented by the content of this element belongs,
7070
but this date element has no textual content. (string-length( normalize-space(.) ) gt 0)
71-
You may not nest one s element within another: use seg instead (tei:s)
7271

73-
Only one of the attributes @target and @from may be supplied on span
74-
divs of type 'canon' may contain only one 'canonText'
75-
(@type='canon' and count( tei:div[ @type eq 'canonText'] ) gt 1)
72+
divs of type 'canon' may contain only one 'canonText'
73+
(@type eq 'canon' and count( tei:div[ @type eq 'canonText'] ) gt 1)
7674

77-
divs of type 'canon' may not be nested
78-
(@type='canon' and parent::tei:div/@type='canon')
75+
divs of type 'canon' may not be nested
76+
(@type eq 'canon' and parent::tei:div/@type eq 'canon')
7977

80-
divs of type 'canon' may not be nested within 'register'
81-
(@type='canon' and parent::tei:div/@type='register')
82-
You may not nest one s element within
83-
another: use seg instead (tei:s)
78+
divs of type 'canon' may not be nested within 'register'
79+
(@type eq 'canon' and parent::tei:div/@type eq 'register')
80+
You may not nest one s element within another: use seg instead (tei:s)
8481

85-
Only one of the attributes @target and @from may be supplied on span
82+
Only one of the attributes @target and @from may be supplied on span
8683
(@from and @target)
8784

8885
Only one of the attributes @target and @to may be supplied on span

0 commit comments

Comments
 (0)