xml.wsdl.extensions/src/org/netbeans/modules/xml/wsdl/model/extensions/bpel/validation/schema/resources/xml.xsd
author Milutin Kristofic <mkristofic@netbeans.org>
Mon, 30 Jan 2017 14:30:54 +0100
changeset 1583 fe20f672a61a
parent 117 42b646696240
permissions -rw-r--r--
Added Missing copyright information in source files
     1 <?xml version="1.0"?>
     2 <!--
     3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4 
     5 Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved.
     6 
     7 Oracle and Java are registered trademarks of Oracle and/or its affiliates.
     8 Other names may be trademarks of their respective owners.
     9 
    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]"
    27 
    28 Contributor(s):
    29 
    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.
    33 
    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.
    44 -->
    45 <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
    46 
    47  <xs:annotation>
    48   <xs:documentation>
    49    See http://www.w3.org/XML/1998/namespace.html and
    50    http://www.w3.org/TR/REC-xml for information about this namespace.
    51 
    52     This schema document describes the XML namespace, in a form
    53     suitable for import by other schema documents.  
    54 
    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:
    60 
    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.
    66 
    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.
    73 
    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.
    78   
    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.
    84 
    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:
    89 
    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
    93              xml:Father
    94   </xs:documentation>
    95  </xs:annotation>
    96 
    97  <xs:annotation>
    98   <xs:documentation>This schema defines attributes and an attribute group
    99         suitable for use by
   100         schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
   101         attributes on elements they define.
   102 
   103         To enable this, such a schema must import this schema
   104         for the XML namespace, e.g. as follows:
   105         &lt;schema . . .&gt;
   106          . . .
   107          &lt;import namespace="http://www.w3.org/XML/1998/namespace"
   108                     schemaLocation="http://www.w3.org/2001/xml.xsd"/&gt;
   109 
   110         Subsequently, qualified reference to any of the attributes
   111         or the group defined below will have the desired effect, e.g.
   112 
   113         &lt;type . . .&gt;
   114          . . .
   115          &lt;attributeGroup ref="xml:specialAttrs"/&gt;
   116  
   117          will define a type which will schema-validate an instance
   118          element with any of those attributes</xs:documentation>
   119  </xs:annotation>
   120 
   121  <xs:annotation>
   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.
   134   </xs:documentation>
   135  </xs:annotation>
   136 
   137  <xs:attribute name="lang">
   138   <xs:annotation>
   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
   144          further information.
   145 
   146          The union allows for the 'un-declaration' of xml:lang with
   147          the empty string.</xs:documentation>
   148   </xs:annotation>
   149   <xs:simpleType>
   150    <xs:union memberTypes="xs:language">
   151     <xs:simpleType>    
   152      <xs:restriction base="xs:string">
   153       <xs:enumeration value=""/>
   154      </xs:restriction>
   155     </xs:simpleType>
   156    </xs:union>
   157   </xs:simpleType>
   158  </xs:attribute>
   159 
   160  <xs:attribute name="space">
   161   <xs:simpleType>
   162    <xs:restriction base="xs:NCName">
   163     <xs:enumeration value="default"/>
   164     <xs:enumeration value="preserve"/>
   165    </xs:restriction>
   166   </xs:simpleType>
   167  </xs:attribute>
   168 
   169  <xs:attribute name="base" type="xs:anyURI">
   170   <xs:annotation>
   171    <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
   172                      information about this attribute.</xs:documentation>
   173   </xs:annotation>
   174  </xs:attribute>
   175  
   176  <xs:attribute name="id" type="xs:ID">
   177   <xs:annotation>
   178    <xs:documentation>See http://www.w3.org/TR/xml-id/ for
   179                      information about this attribute.</xs:documentation>
   180   </xs:annotation>
   181  </xs:attribute>
   182 
   183  <xs:attributeGroup name="specialAttrs">
   184   <xs:attribute ref="xml:base"/>
   185   <xs:attribute ref="xml:lang"/>
   186   <xs:attribute ref="xml:space"/>
   187  </xs:attributeGroup>
   188 
   189 </xs:schema>