| 1 | <?xml version='1.0'?> |
| 2 | <!-- |
| 3 | Copyright (c) 2000-2015 Ericsson Telecom AB |
| 4 | |
| 5 | All rights reserved. This program and the accompanying materials |
| 6 | are made available under the terms of the Eclipse Public License v1.0 |
| 7 | which accompanies this distribution, and is available at |
| 8 | http://www.eclipse.org/legal/epl-v10.html |
| 9 | --> |
| 10 | <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" > |
| 11 | <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en"> |
| 12 | |
| 13 | <xs:annotation> |
| 14 | <xs:documentation> |
| 15 | See http://www.w3.org/XML/1998/namespace.html and |
| 16 | http://www.w3.org/TR/REC-xml for information about this namespace. |
| 17 | |
| 18 | This schema document describes the XML namespace, in a form |
| 19 | suitable for import by other schema documents. |
| 20 | |
| 21 | Note that local names in this namespace are intended to be defined |
| 22 | only by the World Wide Web Consortium or its subgroups. The |
| 23 | following names are currently defined in this namespace and should |
| 24 | not be used with conflicting semantics by any Working Group, |
| 25 | specification, or document instance: |
| 26 | |
| 27 | base (as an attribute name): denotes an attribute whose value |
| 28 | provides a URI to be used as the base for interpreting any |
| 29 | relative URIs in the scope of the element on which it |
| 30 | appears; its value is inherited. This name is reserved |
| 31 | by virtue of its definition in the XML Base specification. |
| 32 | |
| 33 | lang (as an attribute name): denotes an attribute whose value |
| 34 | is a language code for the natural language of the content of |
| 35 | any element; its value is inherited. This name is reserved |
| 36 | by virtue of its definition in the XML specification. |
| 37 | |
| 38 | space (as an attribute name): denotes an attribute whose |
| 39 | value is a keyword indicating what whitespace processing |
| 40 | discipline is intended for the content of the element; its |
| 41 | value is inherited. This name is reserved by virtue of its |
| 42 | definition in the XML specification. |
| 43 | |
| 44 | Father (in any context at all): denotes Jon Bosak, the chair of |
| 45 | the original XML Working Group. This name is reserved by |
| 46 | the following decision of the W3C XML Plenary and |
| 47 | XML Coordination groups: |
| 48 | |
| 49 | In appreciation for his vision, leadership and dedication |
| 50 | the W3C XML Plenary on this 10th day of February, 2000 |
| 51 | reserves for Jon Bosak in perpetuity the XML name |
| 52 | xml:Father |
| 53 | </xs:documentation> |
| 54 | </xs:annotation> |
| 55 | |
| 56 | <xs:annotation> |
| 57 | <xs:documentation>This schema defines attributes and an attribute group |
| 58 | suitable for use by |
| 59 | schemas wishing to allow xml:base, xml:lang or xml:space attributes |
| 60 | on elements they define. |
| 61 | |
| 62 | To enable this, such a schema must import this schema |
| 63 | for the XML namespace, e.g. as follows: |
| 64 | <schema . . .> |
| 65 | . . . |
| 66 | <import namespace="http://www.w3.org/XML/1998/namespace" |
| 67 | schemaLocation="http://www.w3.org/2001/03/xml.xsd"/> |
| 68 | |
| 69 | Subsequently, qualified reference to any of the attributes |
| 70 | or the group defined below will have the desired effect, e.g. |
| 71 | |
| 72 | <type . . .> |
| 73 | . . . |
| 74 | <attributeGroup ref="xml:specialAttrs"/> |
| 75 | |
| 76 | will define a type which will schema-validate an instance |
| 77 | element with any of those attributes</xs:documentation> |
| 78 | </xs:annotation> |
| 79 | |
| 80 | <xs:annotation> |
| 81 | <xs:documentation>In keeping with the XML Schema WG's standard versioning |
| 82 | policy, this schema document will persist at |
| 83 | http://www.w3.org/2001/03/xml.xsd. |
| 84 | At the date of issue it can also be found at |
| 85 | http://www.w3.org/2001/xml.xsd. |
| 86 | The schema document at that URI may however change in the future, |
| 87 | in order to remain compatible with the latest version of XML Schema |
| 88 | itself. In other words, if the XML Schema namespace changes, the version |
| 89 | of this document at |
| 90 | http://www.w3.org/2001/xml.xsd will change |
| 91 | accordingly; the version at |
| 92 | http://www.w3.org/2001/03/xml.xsd will not change. |
| 93 | </xs:documentation> |
| 94 | </xs:annotation> |
| 95 | |
| 96 | <xs:attribute name="lang" type="xs:language"> |
| 97 | <xs:annotation> |
| 98 | <xs:documentation>In due course, we should install the relevant ISO 2- and 3-letter |
| 99 | codes as the enumerated possible values . . .</xs:documentation> |
| 100 | </xs:annotation> |
| 101 | </xs:attribute> |
| 102 | |
| 103 | <xs:attribute name="space" default="preserve"> |
| 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> |
| 111 | |
| 112 | <xs:attribute name="base" type="xs:anyURI"> |
| 113 | <xs:annotation> |
| 114 | <xs:documentation>See http://www.w3.org/TR/xmlbase/ for |
| 115 | information about this attribute.</xs:documentation> |
| 116 | </xs:annotation> |
| 117 | </xs:attribute> |
| 118 | |
| 119 | <xs:attribute name="id" type="xs:ID" /> |
| 120 | |
| 121 | <xs:attributeGroup name="specialAttrs"> |
| 122 | <xs:attribute ref="xml:base"/> |
| 123 | <xs:attribute ref="xml:lang"/> |
| 124 | <xs:attribute ref="xml:space"/> |
| 125 | <xs:attribute ref="xml:id"/> |
| 126 | </xs:attributeGroup> |
| 127 | |
| 128 | </xs:schema> |