source: mauRepo/NewmoonJSP/src/main/webapp/WEB-INF/rules/conformance-test/ISO19136-V3.2-AnxE_XMI-V1.1/pre/toTrash.xquery @ 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/pre/toTrash.xquery@7841
Revision 7841, 1.4 KB checked in by mnagni, 10 years ago (diff)
Line 
1xquery version "1.0";
2(:~~~~~~~~~~~~~~~~~~~~~~~~~~ Pre-processing script ~~~~~~~~~~~~~~~~~~~~~~~~~~~
3Script Number:  001
4Description:    Create collection for mapping tables and load type-mapping
5                                documents.
6Reference:             
7
8#Update:        2009-08-11
9#Author:        Pavel Golodoniuc
10#Note:          Ported to eXist v1.2.x (production release).
11~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:)
12
13declare namespace mod-co = "urn:local-module:ISO19136-V3.2-AnxE_XMI-V1.1:constants";
14declare namespace mod-fr = "urn:local-module:ISO19136-V3.2-AnxE_XMI-V1.1:framework";
15declare namespace UML   = "omg.org/UML1.3";
16declare namespace xmldb = "http://exist-db.org/xquery/xmldb";
17declare namespace tm    = "urn:x-auscope:xmlns:CSIRO:FullMoon:package-class-map:2.0";
18declare namespace pckr  = "urn:x-auscope:xmlns:CSIRO:FullMoon:package-register:2.0";
19declare namespace cr    = "http://ndg.service.newmoon.conftest-result/1.0";
20declare namespace xs    = "http://www.w3.org/2001/XMLSchema";
21
22
23
24(: Declare the local assert function which defines a postive condition for pass :)
25declare function local:main($path as xs:string) as xs:string
26{
27    let $ret :=
28        if (starts-with($path, "http://") or starts-with($path, "https://"))
29        then $path
30        else if (starts-with($path, "file://"))
31            then $path
32            else "ciao"
33        return $ret
34};
35
36
37local:main(local:main("file://www.seegrid.csiro.au/subversion/Ho"))
38(:mod-fr:new-result($title, $description, local:main(/)):)
Note: See TracBrowser for help on using the repository browser.