Skip to content

Commit

Permalink
[ADD] schema test case re #21
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSales committed Aug 5, 2023
1 parent 904e8f5 commit 44fb3f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions test/global-variable-syntax-error.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<sch:schema xmlns:sch='http://purl.oclc.org/dsdl/schematron'>
<sch:let name='x' value='?'/>
<sch:pattern>
<sch:rule context="/">
<sch:report test="true()"/>
</sch:rule>
</sch:pattern>
</sch:schema>
3 changes: 2 additions & 1 deletion utils.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ declare function utils:check-duplicate-variable-names($decls as element(sch:let)
) else()
};

(:~ Wrapper around xquery:eval()
(:~ Wrapper around xquery:eval(). In "dry-run" mode, the query passed in is
: parsed only, and any errors caught reported as svrl:failed-assert.
: @param $query string of the query to evaluate
: @param bindings map of bindings
: @param options map of options
Expand Down

0 comments on commit 44fb3f8

Please sign in to comment.