- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Aug 2009 16:17:14 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/schemas In directory hutz:/tmp/cvs-serv736/WebContent/WEB-INF/schemas Modified Files: Tag: dev2 route.xsd Added Files: Tag: dev2 test.dtd Log Message: route.xml modified --- NEW FILE: test.dtd --- <?xml version="1.0" encoding="UTF-8"?> Index: route.xsd =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/schemas/Attic/route.xsd,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -d -r1.1.2.1 -r1.1.2.2 --- route.xsd 5 Aug 2009 13:32:35 -0000 1.1.2.1 +++ route.xsd 5 Aug 2009 16:17:12 -0000 1.1.2.2 @@ -1,28 +1,45 @@ -<xs:schema targetNamespace="http://openuri.org/easypo" - xmlns:po="http://openuri.org/easypo" +<?xml version="1.0" encoding="UTF-8" ?> +<xs:schema targetNamespace="http://www.w3.org/unicorn/route" + xmlns:ucn="http://www.w3.org/unicorn/route" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="routes"> <xs:complexType> <xs:sequence> - <xs:element name="route" type="po:route"/> - <xs:element name="default" type="po:default"/> + <xs:element name="route" type="ucn:route" minOccurs="0" maxOccurs="unbounded"/> + <xs:element name="index" type="ucn:index"/> + <xs:element name="error404" type="ucn:error404"/> </xs:sequence> </xs:complexType> </xs:element> + <xs:complexType name="route"> <xs:sequence> - <xs:element name="action-type" type="xs:string"/> - <xs:element name="address" type="xs:string"/> + <xs:element name="pattern" type="xs:token" minOccurs="1" maxOccurs="unbounded"/> + <xs:choice> + <xs:element name="action" type="ucn:classString"/> + <xs:element name="url" type="xs:anyURI"/> + </xs:choice> </xs:sequence> </xs:complexType> - <xs:complexType name="default"> + + <xs:complexType name="index"> <xs:sequence> - <xs:element name="description" type="xs:string"/> - <xs:element name="per-unit-ounces" type="xs:decimal"/> - <xs:element name="price" type="xs:double"/> - <xs:element name="quantity" type="xs:int"/> + <xs:element name="action" type="ucn:classString"/> </xs:sequence> </xs:complexType> + + <xs:complexType name="error404"> + <xs:sequence> + <xs:element name="action" type="ucn:classString"/> + </xs:sequence> + </xs:complexType> + + <xs:simpleType name="classString"> + <xs:restriction base="xs:token"> + <xs:pattern value="(\w+\.)*[A-Z]\w+"/> + </xs:restriction> + </xs:simpleType> + </xs:schema> \ No newline at end of file
Received on Wednesday, 5 August 2009 16:17:24 UTC