annotate _test/Resources/sample.xml @ 221:e997e6fbac0b

sync: working on resources schema
author sergey
date Fri, 24 Aug 2012 16:24:14 +0400
parents 5c82c15b25b1
children 84a6382b49c8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
218
sergey
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
2 <resources xmlns="http://implab.org/schemas/resources"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
4 xsi:schemaLocation="http://implab.org/schemas/resources resources.xsd ">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
5 <root>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
6 <get>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
7 <bind text="model" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
8 </get>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
9
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
10 <resource name="projects">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
11 <contract>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
12 <get>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
13 <bind text="parent.model.projects" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
14 </get>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
15 <post>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
16 <bind text="parent.model.CreateProject($form)">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
17 <var name="form" text="request"/>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
18 </bind>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
19 </post>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
20 </contract>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
21 </resource>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
22 </root>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
23 <typeMap>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
24 <item></item>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
25 <item></item>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
26 </typeMap>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
27 <locators>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
28 <locator name="relative">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
29 <var name="id" text="model.id" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
30 <var name="parent" text="parent.location" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
31 <template>$parent/$id</template>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
32 </locator>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
33 <locator name="projects">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
34 <var name="id" text="model.id" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
35 <var name="projects" text="application.locate('projects')" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
36 <template>$projects/$id</template>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
37 </locator>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
38 </locators>
218
sergey
parents:
diff changeset
39 </resources>