MDL-62388 tool_dataprivacy: Default value if no sensitive data provided
[moodle.git] / backup / cc / schemas / xml.xsd
blobff94e1812178737c1878580a4a75fb70febf4163
1 <?xml version='1.0'?>
2 <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
3 xmlns:xs="http://www.w3.org/2001/XMLSchema"
4 xmlns ="http://www.w3.org/1999/xhtml"
5 xml:lang="en">
7 <xs:annotation>
8 <xs:documentation>
9 <div>
10 <h1>About the XML namespace</h1>
12 <div class="bodytext">
13 <p>
14 This schema document describes the XML namespace, in a form
15 suitable for import by other schema documents.
16 </p>
17 <p>
18 See <a href="http://www.w3.org/XML/1998/namespace.html">
19 http://www.w3.org/XML/1998/namespace.html</a> and
20 <a href="http://www.w3.org/TR/REC-xml">
21 http://www.w3.org/TR/REC-xml</a> for information
22 about this namespace.
23 </p>
24 <p>
25 Note that local names in this namespace are intended to be
26 defined only by the World Wide Web Consortium or its subgroups.
27 The names currently defined in this namespace are listed below.
28 They should not be used with conflicting semantics by any Working
29 Group, specification, or document instance.
30 </p>
31 <p>
32 See further below in this document for more information about <a
33 href="#usage">how to refer to this schema document from your own
34 XSD schema documents</a> and about <a href="#nsversioning">the
35 namespace-versioning policy governing this schema document</a>.
36 </p>
37 </div>
38 </div>
39 </xs:documentation>
40 </xs:annotation>
42 <xs:attribute name="lang">
43 <xs:annotation>
44 <xs:documentation>
45 <div>
47 <h3>lang (as an attribute name)</h3>
48 <p>
49 denotes an attribute whose value
50 is a language code for the natural language of the content of
51 any element; its value is inherited. This name is reserved
52 by virtue of its definition in the XML specification.</p>
54 </div>
55 <div>
56 <h4>Notes</h4>
57 <p>
58 Attempting to install the relevant ISO 2- and 3-letter
59 codes as the enumerated possible values is probably never
60 going to be a realistic possibility.
61 </p>
62 <p>
63 See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
64 http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a>
65 and the IANA language subtag registry at
66 <a href="http://www.iana.org/assignments/language-subtag-registry">
67 http://www.iana.org/assignments/language-subtag-registry</a>
68 for further information.
69 </p>
70 <p>
71 The union allows for the 'un-declaration' of xml:lang with
72 the empty string.
73 </p>
74 </div>
75 </xs:documentation>
76 </xs:annotation>
77 <xs:simpleType>
78 <xs:union memberTypes="xs:token">
79 <xs:simpleType>
80 <xs:restriction base="xs:string">
81 <xs:enumeration value=""/>
82 </xs:restriction>
83 </xs:simpleType>
84 </xs:union>
85 </xs:simpleType>
86 </xs:attribute>
88 <xs:attribute name="space">
89 <xs:annotation>
90 <xs:documentation>
91 <div>
93 <h3>space (as an attribute name)</h3>
94 <p>
95 denotes an attribute whose
96 value is a keyword indicating what whitespace processing
97 discipline is intended for the content of the element; its
98 value is inherited. This name is reserved by virtue of its
99 definition in the XML specification.</p>
101 </div>
102 </xs:documentation>
103 </xs:annotation>
104 <xs:simpleType>
105 <xs:restriction base="xs:NCName">
106 <xs:enumeration value="default"/>
107 <xs:enumeration value="preserve"/>
108 </xs:restriction>
109 </xs:simpleType>
110 </xs:attribute>
112 <xs:attribute name="base" type="xs:anyURI"> <xs:annotation>
113 <xs:documentation>
114 <div>
116 <h3>base (as an attribute name)</h3>
118 denotes an attribute whose value
119 provides a URI to be used as the base for interpreting any
120 relative URIs in the scope of the element on which it
121 appears; its value is inherited. This name is reserved
122 by virtue of its definition in the XML Base specification.</p>
125 See <a
126 href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a>
127 for information about this attribute.
128 </p>
129 </div>
130 </xs:documentation>
131 </xs:annotation>
132 </xs:attribute>
134 <xs:attribute name="id" type="xs:ID">
135 <xs:annotation>
136 <xs:documentation>
137 <div>
139 <h3>id (as an attribute name)</h3>
141 denotes an attribute whose value
142 should be interpreted as if declared to be of type ID.
143 This name is reserved by virtue of its definition in the
144 xml:id specification.</p>
147 See <a
148 href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
149 for information about this attribute.
150 </p>
151 </div>
152 </xs:documentation>
153 </xs:annotation>
154 </xs:attribute>
156 <xs:attributeGroup name="specialAttrs">
157 <xs:attribute ref="xml:base"/>
158 <xs:attribute ref="xml:lang"/>
159 <xs:attribute ref="xml:space"/>
160 <xs:attribute ref="xml:id"/>
161 </xs:attributeGroup>
163 <xs:annotation>
164 <xs:documentation>
165 <div>
167 <h3>Father (in any context at all)</h3>
169 <div class="bodytext">
171 denotes Jon Bosak, the chair of
172 the original XML Working Group. This name is reserved by
173 the following decision of the W3C XML Plenary and
174 XML Coordination groups:
175 </p>
176 <blockquote>
178 In appreciation for his vision, leadership and
179 dedication the W3C XML Plenary on this 10th day of
180 February, 2000, reserves for Jon Bosak in perpetuity
181 the XML name "xml:Father".
182 </p>
183 </blockquote>
184 </div>
185 </div>
186 </xs:documentation>
187 </xs:annotation>
189 <xs:annotation>
190 <xs:documentation>
191 <div xml:id="usage" id="usage">
192 <h2><a name="usage">About this schema document</a></h2>
194 <div class="bodytext">
196 This schema defines attributes and an attribute group suitable
197 for use by schemas wishing to allow <code>xml:base</code>,
198 <code>xml:lang</code>, <code>xml:space</code> or
199 <code>xml:id</code> attributes on elements they define.
200 </p>
202 To enable this, such a schema must import this schema for
203 the XML namespace, e.g. as follows:
204 </p>
205 <pre>
206 &lt;schema . . .>
207 . . .
208 &lt;import namespace="http://www.w3.org/XML/1998/namespace"
209 schemaLocation="http://www.w3.org/2001/xml.xsd"/>
210 </pre>
213 </p>
214 <pre>
215 &lt;import namespace="http://www.w3.org/XML/1998/namespace"
216 schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
217 </pre>
219 Subsequently, qualified reference to any of the attributes or the
220 group defined below will have the desired effect, e.g.
221 </p>
222 <pre>
223 &lt;type . . .>
224 . . .
225 &lt;attributeGroup ref="xml:specialAttrs"/>
226 </pre>
228 will define a type which will schema-validate an instance element
229 with any of those attributes.
230 </p>
231 </div>
232 </div>
233 </xs:documentation>
234 </xs:annotation>
236 <xs:annotation>
237 <xs:documentation>
238 <div id="nsversioning" xml:id="nsversioning">
239 <h2><a name="nsversioning">Versioning policy for this schema document</a></h2>
240 <div class="bodytext">
242 In keeping with the XML Schema WG's standard versioning
243 policy, this schema document will persist at
244 <a href="http://www.w3.org/2009/01/xml.xsd">
245 http://www.w3.org/2009/01/xml.xsd</a>.
246 </p>
248 At the date of issue it can also be found at
249 <a href="http://www.w3.org/2001/xml.xsd">
250 http://www.w3.org/2001/xml.xsd</a>.
251 </p>
253 The schema document at that URI may however change in the future,
254 in order to remain compatible with the latest version of XML
255 Schema itself, or with the XML namespace itself. In other words,
256 if the XML Schema or XML namespaces change, the version of this
257 document at <a href="http://www.w3.org/2001/xml.xsd">
258 http://www.w3.org/2001/xml.xsd
259 </a>
260 will change accordingly; the version at
261 <a href="http://www.w3.org/2009/01/xml.xsd">
262 http://www.w3.org/2009/01/xml.xsd
263 </a>
264 will not change.
265 </p>
267 Previous dated (and unchanging) versions of this schema
268 document are at:
269 </p>
270 <ul>
271 <li><a href="http://www.w3.org/2009/01/xml.xsd">
272 http://www.w3.org/2009/01/xml.xsd</a></li>
273 <li><a href="http://www.w3.org/2007/08/xml.xsd">
274 http://www.w3.org/2007/08/xml.xsd</a></li>
275 <li><a href="http://www.w3.org/2004/10/xml.xsd">
276 http://www.w3.org/2004/10/xml.xsd</a></li>
277 <li><a href="http://www.w3.org/2001/03/xml.xsd">
278 http://www.w3.org/2001/03/xml.xsd</a></li>
279 </ul>
280 </div>
281 </div>
282 </xs:documentation>
283 </xs:annotation>
285 </xs:schema>