source: CMIP6dreq/trunk/dreqPy/docs/xml.xsd @ 466

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreq/trunk/dreqPy/docs/xml.xsd@1265
Revision 466, 3.2 KB checked in by mjuckes, 4 years ago (diff)

01.beta.10 .. adjusted for package

Line 
1<?xml version='1.0'?>
2<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >
3<xs:schema
4targetNamespace="http://www.w3.org/XML/1998/namespace"
5xmlns:xs="http://www.w3.org/2001/XMLSchema"
6xml:lang="en"
7  xmlns="http://www.w3.org/XML/1998/namespace_ext">
8
9<!-- default namespace name changed to avoid warning from xmllint -->
10<!-- default namespace added for Xerces -->
11
12 <xs:annotation>
13  <xs:documentation>
14   See http://www.w3.org/XML/1998/namespace.html and
15   http://www.w3.org/TR/REC-xml for information about this namespace.
16  </xs:documentation>
17 </xs:annotation>
18
19 <xs:annotation>
20  <xs:documentation>This schema defines attributes and an attribute group
21        suitable for use by
22        schemas wishing to allow xml:base, xml:lang or xml:space attributes
23        on elements they define.
24
25        To enable this, such a schema must import this schema
26        for the XML namespace, e.g. as follows:
27        &lt;schema . . .>
28         . . .
29         &lt;import namespace="http://www.w3.org/XML/1998/namespace"
30                    schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
31
32        Subsequently, qualified reference to any of the attributes
33        or the group defined below will have the desired effect, e.g.
34
35        &lt;type . . .>
36         . . .
37         &lt;attributeGroup ref="xml:specialAttrs"/>
38 
39         will define a type which will schema-validate an instance
40         element with any of those attributes</xs:documentation>
41 </xs:annotation>
42
43 <xs:annotation>
44  <xs:documentation>In keeping with the XML Schema WG's standard versioning
45   policy, this schema document will persist at
46   http://www.w3.org/2001/03/xml.xsd.
47   At the date of issue it can also be found at
48   http://www.w3.org/2001/xml.xsd.
49   The schema document at that URI may however change in the future,
50   in order to remain compatible with the latest version of XML Schema
51   itself.  In other words, if the XML Schema namespace changes, the version
52   of this document at
53   http://www.w3.org/2001/xml.xsd will change
54   accordingly; the version at
55   http://www.w3.org/2001/03/xml.xsd will not change.
56  </xs:documentation>
57 </xs:annotation>
58
59 <xs:attribute name="lang" type="xs:language">
60  <xs:annotation>
61   <xs:documentation>In due course, we should install the relevant ISO 2- and 3-letter
62         codes as the enumerated possible values . . .</xs:documentation>
63  </xs:annotation>
64 </xs:attribute>
65
66 <xs:attribute name="space" default="preserve">
67  <xs:simpleType>
68   <xs:restriction base="xs:NCName">
69    <xs:enumeration value="default"/>
70    <xs:enumeration value="preserve"/>
71   </xs:restriction>
72  </xs:simpleType>
73 </xs:attribute>
74
75 <xs:attribute name="base" type="xs:anyURI">
76  <xs:annotation>
77   <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
78                     information about this attribute.</xs:documentation>
79  </xs:annotation>
80 </xs:attribute>
81
82 <xs:attributeGroup name="specialAttrs">
83<!--  <xs:attribute ref="xml:base"/>
84  <xs:attribute ref="xml:lang"/>
85  <xs:attribute ref="xml:space"/> -->
86  <xs:attribute ref="xml:base"/>
87  <xs:attribute ref="xml:lang"/>
88  <xs:attribute ref="xml:space"/>
89 </xs:attributeGroup>
90<!-- xml namespace prefixes removed for Xerces -->
91
92</xs:schema>
Note: See TracBrowser for help on using the repository browser.