source: mauRepo/NewmoonJSP/src/main/webapp/WEB-INF/rules/conformance-test/ISO19136-V3.2-AnxE_XMI-V1.1/modules/module-framework-functions.xq @ 7841

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/NewmoonJSP/src/main/webapp/WEB-INF/rules/conformance-test/ISO19136-V3.2-AnxE_XMI-V1.1/modules/module-framework-functions.xq@7841
Revision 7841, 1.4 KB checked in by mnagni, 10 years ago (diff)
Line 
1(: Library module for local xquery processing framework functions :)
2
3module namespace mod-fr = "urn:local-module:ISO19136-V3.2-AnxE_XMI-V1.1:framework";
4
5import module namespace mod-co = "urn:local-module:ISO19136-V3.2-AnxE_XMI-V1.1:constants"
6at "xmldb:exist:///db/modules/conformance-test/ISO19136-V3.2-AnxE_XMI-V1.1/module-constants.xq";
7
8declare namespace cr = "http://ndg.service.newmoon.conftest-result/1.0";
9
10declare function mod-fr:new-result($num as xs:integer, $pass-msg as xs:string, $fail-msg as xs:string, $result as node()?)
11{
12        (: In future FullMoon should support multiple suites. Ref: https://cgsrv1.arrc.csiro.au/jira/browse/SISS-56 :)
13        (: <cr:test number="{ $num }" suiteId="{ $mod-co:suite-id }" /> :)
14        <cr:result>
15                <cr:test number="{ $num }" />
16                {
17                        if ($result//cr:fail) then
18                                <cr:failed>{ $fail-msg }</cr:failed>
19                        else
20                                <cr:passed>{ $pass-msg }</cr:passed>
21                        ,
22                        $result//cr:fail/cr:messages
23                }
24        </cr:result>
25};
26
27declare function mod-fr:new-result($title as xs:string, $description as xs:string, $result as node()?)
28{
29        (: In future FullMoon should support multiple suites. Ref: https://cgsrv1.arrc.csiro.au/jira/browse/SISS-56 :)
30        (: <cr:script title="{ $title }" description="{ $description }" suiteId="{ $mod-co:suite-id }" /> :)
31        <cr:info>
32                <cr:script title="{ $title }" description="{ $description }" />
33                { $result//cr:messages }
34        </cr:info>
35};
Note: See TracBrowser for help on using the repository browser.