annotate _test/Resources/sample.xml @ 222:84a6382b49c8

resources schema in progress
author sergey
date Mon, 27 Aug 2012 17:28:32 +0400
parents e997e6fbac0b
children edf011437be8
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>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
7 <bind bind="model" />
221
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>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
13 <bind bind="parent.model.projects" />
221
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>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
16 <bind bind="parent.model.CreateProject($form)">
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
17 <var name="form" bind="request"/>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
18 </bind>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
19 <response xsi:type="redirectResponse">
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
20 <locatorRef ref="relative-locator"/>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
21 </response>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
22 </post>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
23 </contract>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
24
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
25 <resource match="(\w+)">
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
26
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
27 </resource>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
28 </resource>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
29 </root>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
30 <typeMap>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
31 </typeMap>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
32 <locators>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
33 <locator name="relative-locator">
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
34 <var name="id" bind="model.id" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
35 <var name="parent" bind="parent.location" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
36 <template>$parent/$id</template>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
37 </locator>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
38 <locator name="projects-locator">
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
39 <var name="id" bind="model.id" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
40 <var name="projects" bind="application.locate('projects')" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
41 <template>$projects/$id</template>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
42 </locator>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
43 </locators>
218
sergey
parents:
diff changeset
44 </resources>