xml.wsdl.extensions/src/org/netbeans/modules/xml/wsdl/model/extensions/bpel/validation/schema/resources/xml.xsd
3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5 Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved.
7 Oracle and Java are registered trademarks of Oracle and/or its affiliates.
8 Other names may be trademarks of their respective owners.
10 The contents of this file are subject to the terms of either the GNU
11 General Public License Version 2 only ("GPL") or the Common
12 Development and Distribution License("CDDL") (collectively, the
13 "License"). You may not use this file except in compliance with the
14 License. You can obtain a copy of the License at
15 http://www.netbeans.org/cddl-gplv2.html
16 or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
17 specific language governing permissions and limitations under the
18 License. When distributing the software, include this License Header
19 Notice in each file and include the License file at
20 nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
21 particular file as subject to the "Classpath" exception as provided
22 by Oracle in the GPL Version 2 section of the License file that
23 accompanied this code. If applicable, add the following below the
24 License Header, with the fields enclosed by brackets [] replaced by
25 your own identifying information:
26 "Portions Copyrighted [year] [name of copyright owner]"
30 The Original Software is NetBeans. The Initial Developer of the Original
31 Software is Sun Microsystems, Inc. Portions Copyright 2009-2010 Sun
32 Microsystems, Inc. All Rights Reserved.
34 If you wish your version of this file to be governed by only the CDDL
35 or only the GPL Version 2, indicate your decision by adding
36 "[Contributor] elects to include this software in this distribution
37 under the [CDDL or GPL Version 2] license." If you do not indicate a
38 single choice of license, a recipient has the option to distribute
39 your version of this file under either the CDDL, the GPL Version 2 or
40 to extend the choice of license to its licensees as provided above.
41 However, if you add GPL Version 2 code and therefore, elected the GPL
42 Version 2 license, then the option applies only if the new code is
43 made subject to such option by the copyright holder.
45 <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
49 See http://www.w3.org/XML/1998/namespace.html and
50 http://www.w3.org/TR/REC-xml for information about this namespace.
52 This schema document describes the XML namespace, in a form
53 suitable for import by other schema documents.
55 Note that local names in this namespace are intended to be defined
56 only by the World Wide Web Consortium or its subgroups. The
57 following names are currently defined in this namespace and should
58 not be used with conflicting semantics by any Working Group,
59 specification, or document instance:
61 base (as an attribute name): denotes an attribute whose value
62 provides a URI to be used as the base for interpreting any
63 relative URIs in the scope of the element on which it
64 appears; its value is inherited. This name is reserved
65 by virtue of its definition in the XML Base specification.
67 id (as an attribute name): denotes an attribute whose value
68 should be interpreted as if declared to be of type ID.
69 The xml:id specification is not yet a W3C Recommendation,
70 but this attribute is included here to facilitate experimentation
71 with the mechanisms it proposes. Note that it is _not_ included
72 in the specialAttrs attribute group.
74 lang (as an attribute name): denotes an attribute whose value
75 is a language code for the natural language of the content of
76 any element; its value is inherited. This name is reserved
77 by virtue of its definition in the XML specification.
79 space (as an attribute name): denotes an attribute whose
80 value is a keyword indicating what whitespace processing
81 discipline is intended for the content of the element; its
82 value is inherited. This name is reserved by virtue of its
83 definition in the XML specification.
85 Father (in any context at all): denotes Jon Bosak, the chair of
86 the original XML Working Group. This name is reserved by
87 the following decision of the W3C XML Plenary and
88 XML Coordination groups:
90 In appreciation for his vision, leadership and dedication
91 the W3C XML Plenary on this 10th day of February, 2000
92 reserves for Jon Bosak in perpetuity the XML name
98 <xs:documentation>This schema defines attributes and an attribute group
100 schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
101 attributes on elements they define.
103 To enable this, such a schema must import this schema
104 for the XML namespace, e.g. as follows:
107 <import namespace="http://www.w3.org/XML/1998/namespace"
108 schemaLocation="http://www.w3.org/2001/xml.xsd"/>
110 Subsequently, qualified reference to any of the attributes
111 or the group defined below will have the desired effect, e.g.
115 <attributeGroup ref="xml:specialAttrs"/>
117 will define a type which will schema-validate an instance
118 element with any of those attributes</xs:documentation>
122 <xs:documentation>In keeping with the XML Schema WG's standard versioning
123 policy, this schema document will persist at
124 http://www.w3.org/2005/08/xml.xsd.
125 At the date of issue it can also be found at
126 http://www.w3.org/2001/xml.xsd.
127 The schema document at that URI may however change in the future,
128 in order to remain compatible with the latest version of XML Schema
129 itself, or with the XML namespace itself. In other words, if the XML
130 Schema or XML namespaces change, the version of this document at
131 http://www.w3.org/2001/xml.xsd will change
132 accordingly; the version at
133 http://www.w3.org/2005/08/xml.xsd will not change.
137 <xs:attribute name="lang">
139 <xs:documentation>Attempting to install the relevant ISO 2- and 3-letter
140 codes as the enumerated possible values is probably never
141 going to be a realistic possibility. See
142 RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
143 at http://www.iana.org/assignments/lang-tag-apps.htm for
146 The union allows for the 'un-declaration' of xml:lang with
147 the empty string.</xs:documentation>
150 <xs:union memberTypes="xs:language">
152 <xs:restriction base="xs:string">
153 <xs:enumeration value=""/>
160 <xs:attribute name="space">
162 <xs:restriction base="xs:NCName">
163 <xs:enumeration value="default"/>
164 <xs:enumeration value="preserve"/>
169 <xs:attribute name="base" type="xs:anyURI">
171 <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
172 information about this attribute.</xs:documentation>
176 <xs:attribute name="id" type="xs:ID">
178 <xs:documentation>See http://www.w3.org/TR/xml-id/ for
179 information about this attribute.</xs:documentation>
183 <xs:attributeGroup name="specialAttrs">
184 <xs:attribute ref="xml:base"/>
185 <xs:attribute ref="xml:lang"/>
186 <xs:attribute ref="xml:space"/>