summaryrefslogtreecommitdiff
path: root/test/testcases/tests/level3/core/files/typeinfo.xsd
blob: ff72aef170df997b3932dd78b3dc533d7af9f2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!--

Copyright (c) 2001-2004 World Wide Web Consortium, 
(Massachusetts Institute of Technology, Institut National de
Recherche en Informatique et en Automatique, Keio University).  All 
Rights Reserved.  This program is distributed under the W3C's Software
Intellectual Property License.  This program is distributed in the 
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.  

See W3C License http://www.w3.org/Consortium/Legal/ for more details.

-->

<!--

This schema provides supports misc_typeinfo.xml
-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	targetNamespace="http://www.w3.org/1999/xhtml"
	xmlns="http://www.w3.org/1999/xhtml">

  <xsd:element name="html">
  	 <xsd:complexType>
  	 	<xsd:sequence>
  	 		<xsd:element ref="head"/>
  	 		<xsd:element ref="body"/>
  	 	</xsd:sequence>
  	 </xsd:complexType>
  </xsd:element>
  
  <xsd:element name="head">
  	<xsd:complexType>
  		<xsd:sequence>
  			<xsd:element ref="meta"/>
  			<xsd:element ref="title"/>
  		</xsd:sequence>
  	</xsd:complexType>
  </xsd:element>
  
  <xsd:element name="title" type="xsd:string"/>
  <xsd:element name="meta">
  	<xsd:complexType>
  		<xsd:attribute name="http-equiv" type="xsd:string" use="required"/>
  		<xsd:attribute name="content" type="xsd:string" use="required"/>
  	</xsd:complexType>
  </xsd:element>
  
  
  <xsd:element name="body">
  	<xsd:complexType>
  		<xsd:sequence minOccurs="0" maxOccurs="unbounded">
  			<xsd:element ref="p"/>
  		</xsd:sequence>
  		<xsd:attribute name="onload" type="xsd:string" use="optional"/>  		
  	</xsd:complexType>
  </xsd:element>
  
  <xsd:element name="p">
  	  <xsd:complexType>
  	  	  <xsd:choice minOccurs="0" maxOccurs="unbounded">
  	  	  	<xsd:element ref="em"/>
  	  	  	<xsd:element ref="strong"/>
  	  	  	<xsd:element ref="code"/>
  	  	  	<xsd:element ref="acronym"/>
  	  	  </xsd:choice>
  	  	  <xsd:attribute name="id" type="xsd:ID" use="optional"/>
  	  </xsd:complexType>
  </xsd:element>
  
  <xsd:element name="strong" type="xsd:IDREFS"/>
  <xsd:element name="em" type="xsd:byte"/>
  <xsd:simpleType name="unbounded">
  	  <xsd:restriction base="xsd:string">
  	  	  <xsd:enumeration value="unbounded"/>
  	  </xsd:restriction>
  </xsd:simpleType>
  <xsd:simpleType name="unsignedIntOrUnbounded">
  	  <xsd:union memberTypes="xsd:unsignedInt unbounded"/>
  </xsd:simpleType>
  
  <xsd:simpleType name="doubleList">
  	  <xsd:list itemType="xsd:double"/>
  </xsd:simpleType>
  
  <xsd:element name="acronym">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  		<xsd:extension base="doubleList">
  	  	  			<xsd:attribute name="id" use="optional" type="xsd:ID"/>
  	  	  		</xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>
  
  <xsd:element name="code">
  	  <xsd:complexType>
  	  	  <xsd:simpleContent>
  	  	  	 <xsd:extension base="unsignedIntOrUnbounded">
  	  	  		<xsd:attribute name="id" type="xsd:ID" use="optional"/>
  	  	  	 </xsd:extension>
  	  	  </xsd:simpleContent>
  	  </xsd:complexType>
  </xsd:element>
</xsd:schema>