diff _test/Resources/person.xsd @ 215:77a9934a44af

sync, migrating to XML::Compile
author cin
date Sun, 19 Aug 2012 22:27:43 +0400
parents
children eff7f75a4408
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/_test/Resources/person.xsd	Sun Aug 19 22:27:43 2012 +0400
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
+	targetNamespace="http://implab.org/person/"
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:tns="http://implab.org/person/"
+	elementFormDefault="qualified"
+>
+    <xs:complexType name="personInfo">
+    	<xs:sequence>
+    		<xs:element name="firstName" type="xs:string" />
+    		<xs:element name="lastName" type="xs:string" />
+    		<xs:element name="address" type="tns:addressType" minOccurs="0" maxOccurs="unbounded"/>
+    	</xs:sequence>
+    	<xs:attribute name="code" use="optional" type="xs:string"/>
+    </xs:complexType>
+    
+    <xs:element name="personInfo" type="tns:personInfo"/>
+
+    <xs:complexType name="addressType">
+    	<xs:sequence>
+    		<xs:element name="street" type="xs:string" />
+    		<xs:element name="line" type="xs:string" />
+    	</xs:sequence>
+    </xs:complexType>
+</xs:schema>
\ No newline at end of file