Mercurial > pub > Impl
view _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 |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <resources xmlns="http://implab.org/schemas/resources" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://implab.org/schemas/resources resources.xsd "> <root> <get> <bind bind="model" /> </get> <resource name="projects"> <contract> <get> <bind bind="parent.model.projects" /> </get> <post> <bind bind="parent.model.CreateProject($form)"> <var name="form" bind="request"/> </bind> <response xsi:type="redirectResponse"> <locatorRef ref="relative-locator"/> </response> </post> </contract> <resource match="(\w+)"> </resource> </resource> </root> <typeMap> </typeMap> <locators> <locator name="relative-locator"> <var name="id" bind="model.id" /> <var name="parent" bind="parent.location" /> <template>$parent/$id</template> </locator> <locator name="projects-locator"> <var name="id" bind="model.id" /> <var name="projects" bind="application.locate('projects')" /> <template>$projects/$id</template> </locator> </locators> </resources>