Skip to content

Commit

Permalink
Merge pull request #796 from ndw/doc-prop-005
Browse files Browse the repository at this point in the history
Fix broken XPath expression
  • Loading branch information
ndw authored Dec 28, 2024
2 parents f76eb3f + fd65773 commit ceed65c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions test-suite/tests/doc-prop-005.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
<t:info>
<t:title>Document properties 005</t:title>
<t:revision-history>
<t:revision>
<t:date>2024-12-28</t:date>
<t:author>
<t:name>Norm Tovey-Walsh</t:name>
</t:author>
<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Fixed utterly bogus XPath expression.</p>
</t:description>
</t:revision>
<t:revision>
<t:date>2021-11-27</t:date>
<t:author>
Expand Down Expand Up @@ -60,11 +69,11 @@
<s:ns prefix="j"
uri="http://www.w3.org/2005/xpath-functions"/>
<s:pattern>
<s:rule context="/*">
<s:assert test="self::j:map">The pipeline root is not 'j:map'.</s:assert>
<s:assert test="count(/self::j:map/*)=0">Root j:map shouldnt have child elements.</s:assert>
<s:rule context="/">
<s:assert test="j:map">The pipeline root is not 'j:map'.</s:assert>
<s:assert test="count(j:map/*)=0">Root j:map shouldnt have child elements.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
</t:schematron>
</t:test>
</t:test>

0 comments on commit ceed65c

Please sign in to comment.