1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:widgets="http://www.w3.org/ns/widgets">
3 <xs:import namespace="http://www.w3.org/ns/widgets" schemaLocation="widgets.xsd"/>
5 <xs:group name="extension">
7 <xs:group ref="anyElement"/>
11 <xs:attributeGroup name="extension">
12 <xs:attributeGroup ref="anyAttribute"/>
15 <xs:group name="foreignElement">
17 <xs:choice minOccurs="0">
18 <xs:group ref="widgets:local"/>
23 <xs:attributeGroup name="foreignAttribute">
24 <xs:anyAttribute namespace="##other" processContents="skip"/>
27 <xs:group name="anyElement">
29 <xs:any processContents="skip"/>
33 <xs:attributeGroup name="anyAttribute">
34 <xs:anyAttribute processContents="skip"/>
37 <xs:simpleType name="data.positiveNumber">
38 <xs:restriction base="xs:string">
39 <!-- W3C testcase <xs:pattern value="[1-9]\d*"/> -->
40 <xs:pattern value="\s*([1-9]\d*)?.*"/> <!-- accept everything anyway -->
44 <xs:simpleType name="data.boolean">
45 <xs:restriction base="xs:string">
46 <!-- w3c testcases - ignore invalid
47 <xs:enumeration value="true"/>
48 <xs:enumeration value="false"/>
53 <xs:attributeGroup name="global.attrs">
54 <xs:attribute name="dir">
58 <xs:restriction base="xs:token">
59 <xs:enumeration value="ltr"/>
60 <xs:enumeration value="rtl"/>
61 <xs:enumeration value="lro"/>
62 <xs:enumeration value="rlo"/>
70 <xs:attributeGroup name="global.xml">
71 <xs:anyAttribute namespace="##other" processContents="skip"/>
74 <xs:simpleType name="data.versionNumber">
75 <xs:restriction base="xs:string">
76 <xs:pattern value="[0-9]{1,2}.[0-9]{1,2}(.[0-9]{1,4})?"/>