1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <module version="2.0"> |
---|
3 | <meta> |
---|
4 | <identity> |
---|
5 | <uri>urn:org:isocat:schemacat:site</uri> |
---|
6 | <version>1.0.0</version> |
---|
7 | </identity> |
---|
8 | <info> |
---|
9 | <name>SCHEMAcat - site</name> |
---|
10 | <description>Web site for SCHEMAcat</description> |
---|
11 | <icon>res:/schemacat/pub/icon.png</icon> |
---|
12 | </info> |
---|
13 | </meta> |
---|
14 | <system> |
---|
15 | <dynamic/> |
---|
16 | </system> |
---|
17 | <rootspace name="SCHEMAcat - site - Development Space" uri="urn:org:isocat:schemacat:site"> |
---|
18 | <!--<fileset> |
---|
19 | <regex>res:/etc/system/SimpleDynamicImportHook.xml</regex> |
---|
20 | </fileset>--> |
---|
21 | <fileset> |
---|
22 | <!--Icon--> |
---|
23 | <regex>res:/schemacat/pub/(.*)</regex> |
---|
24 | <rewrite>res:/pub/$1</rewrite> |
---|
25 | </fileset> |
---|
26 | <mapper> |
---|
27 | <config> |
---|
28 | <endpoint> |
---|
29 | <!-- run the index file through XRL so we can use some info on the scratch pad or call NK URIs --> |
---|
30 | <grammar> |
---|
31 | <active> |
---|
32 | <identifier>active:org.schemacat.site.index</identifier> |
---|
33 | </active> |
---|
34 | </grammar> |
---|
35 | <request> |
---|
36 | <identifier>meta:XRL2Runtime</identifier> |
---|
37 | <argument name="template">res:/site/index.html</argument> |
---|
38 | <argument name="mimetype">text/html</argument> |
---|
39 | </request> |
---|
40 | </endpoint> |
---|
41 | <endpoint> |
---|
42 | <grammar> |
---|
43 | <active> |
---|
44 | <identifier>active:org.schemacat.site.completeuserdetails</identifier> |
---|
45 | </active> |
---|
46 | </grammar> |
---|
47 | <request> |
---|
48 | <identifier>meta:XRL2Runtime</identifier> |
---|
49 | <argument name="template">res:/site/completeuserdetails.html</argument> |
---|
50 | <argument name="mimetype">text/html</argument> |
---|
51 | </request> |
---|
52 | </endpoint> |
---|
53 | <endpoint> |
---|
54 | <!-- fetch all other files from the filesystem --> |
---|
55 | <grammar>res:/schemacat/site/ |
---|
56 | <group name="file"> |
---|
57 | <regex type="anything" /> |
---|
58 | </group> |
---|
59 | </grammar> |
---|
60 | <request> |
---|
61 | <identifier>res:/site/[[arg:file]]</identifier> |
---|
62 | </request> |
---|
63 | </endpoint> |
---|
64 | </config> |
---|
65 | <space> |
---|
66 | <import> |
---|
67 | <uri>urn:org:netkernel:lang:dpml</uri> |
---|
68 | </import> |
---|
69 | <import> |
---|
70 | <uri>urn:org:netkernel:lang:xrl</uri> |
---|
71 | </import> |
---|
72 | <fileset> |
---|
73 | <!--site--> |
---|
74 | <regex>res:/site/(.*)</regex> |
---|
75 | </fileset> |
---|
76 | </space> |
---|
77 | </mapper> |
---|
78 | </rootspace> |
---|
79 | <rootspace name="SCHEMAcat - site - Documentation Space" public="true" |
---|
80 | uri="urn:org:isocat:schemacat:site:doc"> |
---|
81 | <fileset> |
---|
82 | <regex>res:/etc/system/(Books|Docs).xml</regex> |
---|
83 | </fileset> |
---|
84 | <fileset> |
---|
85 | <regex>res:/doc/.*</regex> |
---|
86 | </fileset> |
---|
87 | </rootspace> |
---|
88 | <rootspace name="SCHEMAcat - site - Unit Test Space" public="true" |
---|
89 | uri="urn:org:isocat:schemacat:site:test"> |
---|
90 | <fileset> |
---|
91 | <regex>res:/etc/system/Tests.xml</regex> |
---|
92 | </fileset> |
---|
93 | <fileset> |
---|
94 | <regex>res:/test/.*</regex> |
---|
95 | </fileset> |
---|
96 | <endpoint> |
---|
97 | <!-- stop any configuration from module under test from polluting address space --> |
---|
98 | <prototype>Limiter</prototype> |
---|
99 | <grammar>res:/etc/ |
---|
100 | <regex type="anything"/> |
---|
101 | </grammar> |
---|
102 | </endpoint> |
---|
103 | <import> |
---|
104 | <!-- import the main space which we are testing --> |
---|
105 | <uri>urn:org:isocat:schemacat:site</uri> |
---|
106 | </import> |
---|
107 | <import> |
---|
108 | <uri>urn:org:netkernel:ext:layer1</uri> |
---|
109 | <private/> |
---|
110 | </import> |
---|
111 | </rootspace> |
---|
112 | </module> |
---|