changeset 218:358f867712b4

sync
author sergey
date Mon, 20 Aug 2012 17:24:48 +0400
parents bfce101e0a5a
children c477f24f1980
files _test/Resources/resources.xsd _test/Resources/sample.xml
diffstat 2 files changed, 66 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/_test/Resources/resources.xsd	Mon Aug 20 17:24:48 2012 +0400
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema targetNamespace="uri:impl-web-application/resources" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="uri:impl-web-application/resources">
+    <element name="resources">
+    	<complexType>
+    		<sequence>
+    			<element name="root" type="tns:restResource"></element>
+    			<element name="typeMap">
+    				<complexType>
+    					<sequence>
+    						<element name="item">
+    							<complexType>
+    								<complexContent>
+    									<extension
+    										base="tns:restResource">
+    										<sequence></sequence>
+    										<attribute
+    											name="type" type="string">
+    										</attribute>
+    									</extension>
+    								</complexContent>
+    							</complexType></element>
+    					</sequence>
+    				</complexType></element>
+    		</sequence>
+    	</complexType>
+    </element>
+    
+    <complexType name="restResource">
+        <sequence>
+    		<element name="get" type="tns:restOperation" minOccurs="0">
+    		</element>
+    		<element name="post" type="tns:restOperation" minOccurs="0">
+    		</element>
+    		<element name="put" type="tns:restOperation" minOccurs="0">
+    		</element>
+    		<element name="delete" type="tns:restOperation" minOccurs="0">
+    		</element>
+    		<element name="resource" type="string" maxOccurs="unbounded" minOccurs="0"></element>
+    	</sequence>
+    </complexType>
+    
+    <complexType name="restOperation">
+    	<sequence>
+    		<element name="invoke" type="string"></element>
+    		<element name="parameters" type="string"></element>
+    		<element name="result" type="string"></element>
+    	</sequence>
+    </complexType>
+</schema>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/_test/Resources/sample.xml	Mon Aug 20 17:24:48 2012 +0400
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resources xmlns="uri:impl-web-application/resources" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="uri:impl-web-application/resources resources.xsd ">
+    <root>
+        <get>
+            <invoke/>
+            <parameters>
+                <transform class=""/>
+            </parameters>
+            <result></result>
+        </get>
+    </root>
+    <typeMap>
+        <item model="My::App::Model::User">
+            <get></get>            
+        </item>
+    </typeMap>
+</resources>
\ No newline at end of file