<!--
	source of basic patterns specification
-->

<spec w3c-doctype="other" role="edcopy">
   <header>
      <title>Basic XML Schema Patterns for Databinding</title>
      <abstract>
         <p>
This specification  provides a set of basic 
            <bibref ref="XMLSchema"/> patterns known to be interoperable between state of the art databinding implementations. The patterns may be used to describe 
            <bibref ref="XML"/> representations of commonly used data structures. The data structures described are intended to be independent of any particular programming language, database or modelling environment.

         </p>
      </abstract>
      <version>Version 1.0</version>
      <w3c-doctype>Editors' Copy $Date: 2008/07/14 11:28:50 $</w3c-doctype>
      <altlocs>
         <loc xmlns:xlink="http://www.w3.org/1999/xlink" role="xml" href="basic.xml" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">XML</loc>
      </altlocs>
      <pubdate>
         <day>@@</day>
         <month>@@@@</month>
         <year>@@@@</year>
      </pubdate>
      <publoc>
         <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2002/ws/databinding/edcopy/basic/basic.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/2002/ws/databinding/edcopy/basic/basic.html</loc>
      </publoc>
      <latestloc>
         <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/xmlschema-patterns" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/TR/xmlschema-patterns</loc>
      </latestloc>
      <prevlocs>
         <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/2006/WD-xmlschema-patterns-20060512/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">http://www.w3.org/TR/2006/WD-xmlschema-patterns-20060512/</loc>
      </prevlocs>
      <authlist>
         <author>
            <name>Jonathan Calladine</name>
            <affiliation>BT</affiliation>
         </author>
         <author>
            <name>George Cowe</name>
            <affiliation>Origo Services Limited</affiliation>
         </author>
         <author>
            <name>Paul Downey</name>
            <affiliation>BT</affiliation>
         </author>
         <author>
            <name>Yves Lafon</name>
            <affiliation>W3C</affiliation>
         </author>
      </authlist>
      <status>
         <p>
            <emph>This section describes the status of this specification at the time of its publication. Other specification may supersede this specification. A list of current W3C publications and the latest revision of this technical report can be found in the 
               <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/TR/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">W3C technical reports index</loc> at http://www.w3.org/TR/.
            </emph>
         </p>
         <p>This document has been produced by the 
            <a href="http://www.w3.org/2002/ws/databinding/">XML Schema Patterns for Databinding Working Group</a>, which is part of the 
            <a href="http://www.w3.org/2002/ws/Activity">W3C Web Services Activity</a>.
         </p>
         <p>This is a second 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2004/02/Process-20040205/tr.html#last-call" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Last Call Public Working Draft</loc> published to solicit comments from interested parties and incorporates comments received since the first Last Call publication on 
            <a href="http://www.w3.org/TR/2006/WD-xmlschema-patterns-20061122/">2006-11-22</a>. Please submit comments on this document to the public 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="mailto:public-xsd-databinding-comments@w3.org" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">public-xsd-databinding-comments@w3.org</loc>
 mailing list (
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://lists.w3.org/Archives/Public/public-xsd-databinding-comments/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">public
 archive</loc>). The Last Call period ends 
            <b>30th April 2008</b>.
         </p>
         <p>The Working Group plans to submit a subsequent version of this specification, incorporating community comments, to the W3C Director
for consideration as a 
            <a href="http://www.w3.org/2005/10/Process-20051014/tr.html#RecsPR">W3C Proposed Recommendation</a> following a demonstration of the interoperability of a significant number of 
state of the art databinding implementations using the
 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2002/ws/databinding/testsuite/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">test suite</loc>, see the 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2002/ws/databinding/edcopy/report/basic.html" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Basic Patterns Implementation Report</loc> (not a stable snapshot)
and a collection of implementation reports including the 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2002/ws/databinding/edcopy/collection/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">collection</loc> of patterns detected from "the wild".
(also a matter of work in progress)
         </p>
         <p>The Working Group is also producing an accompanying 
		
            <bibref ref="AdvancedPatterns"/> 
document, which will  include 
            <bibref ref="XMLSchema"/> patterns in common use, but which are not well supported by
state of the art databinding implementations.
         </p>
         <p>Since the previous Last Call publication
the 
            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/SequenceElement">SequenceElement</a>
pattern has been 
            <strong>added</strong> to this document,
the following patterns have been 
            <strong>moved</strong> to the 
            <bibref ref="AdvancedPatterns"/> document:

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/AttributeFixed">AttributeFixed</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/AttributeRequired">AttributeRequired</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/Base64BinaryAttribute">Base64BinaryAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/Base64BinaryAttribute">Base64BinaryAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementBlock">GlobalElementBlock</a>,

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementFinal">GlobalElementFinal</a>,

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalComplexTypeBlock">GlobalComplexTypeBlock</a>,

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/FinalDefault">FinalDefault</a>,

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/BlockDefault">BlockDefault</a>,

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/DateAttribute">DateAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/DateElement">DateElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/DecimalAttribute">DecimalAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/DecimalElement">DecimalElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/DecimalSimpleTypeTotalDigits">DecimalSimpleTypeTotalDigits</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMaxOccursFinite">ElementMaxOccursFinite</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ENTITIESAttribute">ENTITIESAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ENTITIESElement">ENTITIESElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ENTITYAttribute">ENTITYAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ENTITYElement">ENTITYElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/FloatAttribute">FloatAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/FloatElement">FloatElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalComplexTypeAbstract">GlobalComplexTypeAbstract</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GMonthDayAttribute">GMonthDayAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GMonthDayElement">GMonthDayElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GYearAttribute">GYearAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GYearElement">GYearElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GYearMonthAttribute">GYearMonthAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GYearMonthElement">GYearMonthElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IDAttribute">IDAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IDElement">IDElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IDREFAttribute">IDREFAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IDREFElement">IDREFElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IDREFSAttribute">IDREFSAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IDREFSElement">IDREFSElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IntegerAttribute">IntegerAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IntegerElement">IntegerElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/LanguageAttribute">LanguageAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/LanguageElement">LanguageElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NegativeIntegerAttribute">NegativeIntegerAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NegativeIntegerElement">NegativeIntegerElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NillableOptionalElement">NillableOptionalElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NMTOKENAttribute">NMTOKENAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NMTOKENElement">NMTOKENElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NMTOKENEnumerationType">NMTOKENEnumerationType</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NMTOKENSAttribute">NMTOKENSAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NMTOKENSElement">NMTOKENSElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NonNegativeIntegerElement">NonNegativeIntegerElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NonPositiveIntegerAttribute">NonPositiveIntegerAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NonPositiveIntegerElement">NonPositiveIntegerElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/SequenceMaxOccursFinite">SequenceMaxOccursFinite</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/SequenceMinOccurs0">SequenceMinOccurs0</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/SequenceMinOccurs0">MaxOccursUnboundedSequenceMinOccurs0MaxOccursUnbounded</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/SequenceMinOccurs1">MaxOccursUnboundedSequenceMinOccurs1MaxOccursUnbounded</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/TimeAttribute">TimeAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/TimeElement">TimeElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnsignedByteAttribute">UnsignedByteAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnsignedByteElement">UnsignedByteElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnsignedIntAttribute">UnsignedIntAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnsignedIntElement">UnsignedIntElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnsignedLongAttribute">UnsignedLongAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnsignedLongElement">UnsignedLongElement</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnsignedShortAttribute">UnsignedShortAttribute</a>,  

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnsignedShortElement">UnsignedShortElement</a>,
the invalid 

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementFinal">ElementFinal</a>
 pattern has been 
            <strong>removed</strong> from this document,
and the 

            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportTypesNamespace">ImportTypesNamespace</a>
pattern has had its XPath value 
            <strong>modified</strong>. Also, the assertion 
            <a href="http://www.w3.org/TR/2006/WD-xmlschema-patterns-20061122/#assert-AnySchema">AnySchema</a> has been removed.

         </p>
         <p id="ISSUE-61">
All of the 
            <bibref ref="XMLSchema"/> patterns presented in this specification are considered to be
"
            <a href="http://www.w3.org/2005/10/Process-20051014/tr.html#cfi">features at risk</a>". 
The Working Group may elect to move a pattern from the specification into the 
            <bibref ref="AdvancedPatterns"/> document during the Last Call period subject to a demonstable lack of support 
in state of the art databinding implementations. 
         </p>
         <p>Patterns for 
            <bibref ref="XMLSchema"/> attributes which explicitly provide the default value, such as 
            <code>@minOccurs="1"</code> may be added to this specification during Last Call as a result of the resolution to 
            <a href="http://www.w3.org/2002/ws/databinding/issues/92">ISSUE-92</a>, otherwise
the Working Group does not expect to add patterns to this specification which
introduce additional 
            <bibref ref="XMLSchema"/> elements or attributes. 
         </p>
         <p>Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft specification and may be updated, replaced or obsoleted by other specification at any time. It is inappropriate to cite this specification as other than work in progress.</p>
         <p>This document was produced by a Working Group operating under the 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/Consortium/Patent-Policy-20040205/" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">5
  February 2004 W3C Patent Policy</loc>. The W3C maintains a 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/2004/01/pp-impl/36696/status#specs" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">public
  list of any patent disclosures</loc> made in connection with the
  deliverables of the group; that page also includes instructions for
  disclosing a patent. An individual who has actual knowledge of a
  patent which the individual believes contains 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">Essential
  Claim(s)</loc> must disclose the information in accordance with 
            <loc xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure" xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest">section
  6 of the W3C Patent Policy</loc>. 
         </p>
      </status>
      <langusage>
         <language id="en-US">US English</language>
      </langusage>
   </header>
   <body>
      <div1 id="Introduction">
         <head>Introduction</head>
         <p>
A databinding tool generates a mapping between 
            <bibref ref="XML"/> documents which 
conform to an 
            <bibref ref="XMLSchema"/> schema and an internal data representation.
For example, a Web services databinding tool may use 
            <bibref ref="XMLSchema"/> descriptions inside a 
            <bibref ref="WSDL20"/> or 
            <bibref ref="WSDL11"/> document to produce and consume 
            <bibref ref="XML"/>, 
            <bibref ref="SOAP12"/> and 
            <bibref ref="SOAP11"/> messages in terms of data structures in a programming language or data held inside a database.

         </p>
         <p>
            <bibref ref="XMLSchema"/> provides a wide variety of methods for describing the same 
            <bibref ref="XML"/> structure.
Conversely an abstract concept such as "null" may be represented in a wide variety of 
different ways using 
            <bibref ref="XMLSchema"/>.

         </p>
         <p>
A representative collection of databinding implementations in common use has been used 
to provide an indication of the  "state of the art". 
State of the art databinding implementations have displayed uneven and inconsistent
support of the W3C 
            <bibref ref="XMLSchema"/> Recommendation resulting in
impaired interoperability and a poor user experience of databinding tools:

         </p>
         <ulist>
            <item>rejecting valid 
               <bibref ref="XMLSchema"/> documents,
            </item>
            <item>rejecting valid 
               <bibref ref="XML"/> instance documents, and
            </item>
            <item>making the content of valid 
               <bibref ref="XML"/> instance documents unavailable in mapped data structures.
            </item>
         </ulist>
         <p>
This specification provides a basic set of example 
            <bibref ref="XMLSchema"/> constructs and types in the form of concrete 
            <bibref ref="XPath20"/> expressions. These patterns are known to work well with state of the art databinding implementations.
         </p>
         <p>
Authors of 
            <bibref ref="XMLSchema"/> documents may find these patterns useful in providing a better user experience for consumers of their schemata using databinding tools.
Whilst it is not possible to guarantee that schemata produced using these
patterns will give a good user experience with the universal set of databinding 
tools, the patterns contained in this specification have been all been tested with 
a number of different tools covering a variety of different programming languages and environments.

         </p>
         <p>
Implementers of databinding tools may find these patterns useful to represent simple and common place data structures. Ensuring tools recognize at least these simple 
            <bibref ref="XMLSchema"/> patterns and present them in terms most appropriate to the specific language, database or environment will provide an improved user experience when using databinding tools.
It is inappropriate to use this specification to constrain implementation of the 
            <bibref ref="XMLSchema"/> Recommendation. 
         </p><!--
<ednote><name>pdowney</name><date>2006-10-11</date><edtext id="ISSUE-XX">ISSUE-XX</edtext></ednote>
-->
         <div2 id="notation">
            <head>Notational Conventions</head>
            <p>All parts of this specification are normative, with the EXCEPTION of notes, examples, and sections explicitly marked as Non-Normative.</p>
            <p>The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
	    "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this specification are to be
	    interpreted as described in 
               <bibref ref="RFC2119"/>.
            </p>
            <p>Each 
               <bibref ref="XMLSchema"/>  pattern
	     is defined using a single 
               <bibref ref="XPath20"/> expression 
	    constraining one or more 
               <bibref ref="XMLSchema"/> items. 
            </p>
            <p id="ISSUE-52">Each 
               <bibref ref="XMLSchema"/> pattern is identified using a unique and stable URI 
               <bibref ref="RFC3986"/>.
            </p>
            <p>
		    Assertions about documents and implementations that are
                        not enforced by the normative patterns are
                        marked by a dagger symbol (†) at the end of a sentence. 
			Each assertion has been assigned a unique and stable identifier.
                        The assertion identifiers may be used
                        by implementations of this specification for any purpose,
                        such as error reporting.
                        The assertions and their identifiers are
                        summarized in section 
               <specref ref="assertionsummary"/>.
                
            </p>
         </div2>
         <div2 id="namespaces">
            <head>Namespaces</head>
            <p> This specification uses a number of namespace prefixes throughout; they are
	    listed in 
               <specref ref="nsprefix"/>. Note that the choice of any namespace
	    prefix is arbitrary and not semantically significant (see 
               <bibref ref="XMLNS"/>).
            </p>
            <table summary="Namespace prefixes usage in this specification" id="nsprefix" border="1">
               <caption>Prefixes and Namespaces used in this specification</caption>
               <tbody>
                  <tr>
                     <th align="left" rowspan="1" colspan="1">Prefix</th>
                     <th align="left" rowspan="1" colspan="1">Namespace</th>
                  </tr>
                  <tr>
                     <td class="label" rowspan="1" colspan="1">xs</td>
                     <td rowspan="1" colspan="1">http://www.w3.org/2001/XMLSchema</td>
                  </tr>
                  <tr>
                     <td class="label" rowspan="1" colspan="1">xsi</td>
                     <td rowspan="1" colspan="1">http://www.w3.org/2001/XMLSchema-instance</td>
                  </tr>
                  <tr>
                     <td class="label" rowspan="1" colspan="1">soap11</td>
                     <td rowspan="1" colspan="1">http://schemas.xmlsoap.org/soap/envelope/</td>
                  </tr>
                  <tr>
                     <td class="label" rowspan="1" colspan="1">soap12</td>
                     <td rowspan="1" colspan="1">http://www.w3.org/2003/05/soap-envelope</td>
                  </tr>
                  <tr>
                     <td class="label" rowspan="1" colspan="1">wsdl11</td>
                     <td rowspan="1" colspan="1">http://schemas.xmlsoap.org/wsdl/</td>
                  </tr>
                  <tr>
                     <td class="label" rowspan="1" colspan="1">wsdl20</td>
                     <td rowspan="1" colspan="1">http://www.w3.org/2005/08/wsdl</td>
                  </tr>
                  <tr>
                     <td class="label" rowspan="1" colspan="1">pat</td>
                     <td rowspan="1" colspan="1">http://www.w3.org/2002/ws/databinding/patterns/6/09/</td>
                  </tr>
                  <tr>
                     <td class="label" rowspan="1" colspan="1">ex</td>
                     <td rowspan="1" colspan="1">http://www.w3.org/2002/ws/databinding/examples/6/09/</td>
                  </tr>
               </tbody>
            </table>
         </div2>
         <div2 id="document-conformance">
            <head>Document Conformance</head>
            <p id="ISSUE-40">
		A document claiming conformance to this specification:</p>
            <ulist>
               <item>
                  <assert class="document" id="assert-Unicode">MUST use either the UTF-8 or UTF-16 
                     <bibref ref="Unicode"/> encoding.
                  </assert>
               </item>
               <item>
                  <assert class="document" id="assert-BOM">MAY include the 
                     <bibref ref="Unicode"/> Byte Order Mark (
                     <bibref ref="BOM"/>).
                  </assert>
               </item>
               <item>
                  <assert class="document" id="assert-XML10">MUST be a well-formed 
                     <bibref ref="XML"/> document
                  </assert>
               </item>
               <item>
                  <assert class="document" id="assert-XMLSchema10">MUST be a 'schema
			document', as defined in 
                     <bibref ref="XMLSchema"/>, and MUST
			therefore meet the "
                     <a id="lc-xsd-1" href="http://www.w3.org/TR/xmlschema-1/#gloss-src">Constraints on the representation of schema components	in XML</a>" provided therein.
                  </assert>
               </item>
               <item id="ISSUE-16">
                  <assert class="document" id="assert-BasicPatterns">MUST only contain 
                     <bibref ref="XML"/> element nodes and attribute nodes which form a part of one or more complete patterns contained in this specification.
                  </assert>
               </item>
               <item>
                  <assert class="document" id="assert-CommentsAndPIs">MAY contain additional 
                     <bibref ref="XML"/> comment nodes and processing instruction nodes.
                  </assert>
               </item>
            </ulist>
         </div2>
         <div2 id="implementation-conformance">
            <head>Implementation Conformance</head>
            <p>An implementation that claims conformance to this specification:</p>
            <ulist>
               <item>
                  <assert class="implementation" id="assert-SchemaValid">MUST be able to process any 
                     <bibref ref="XMLSchema"/> document conforming to this specification
                  </assert>
               </item>
               <item>
                  <assert class="implementation" id="assert-DataModel">MUST produce a data model exposing all of the 
                     <bibref ref="XML"/> element node and attribute node content constrained by the originating 
                     <bibref ref="XMLSchema"/> document.
                  </assert>
               </item>
               <item>
                  <assert class="implementation" id="assert-ConsumeXML">MUST be able to consume any well-formed 
                     <bibref ref="XML"/> document which satisfies local-schema validity against the originating 
                     <bibref ref="XMLSchema"/> document exposing all of the 
                     <bibref ref="XML"/> element node and attribute node content in the data model.
                  </assert>
               </item>
               <item>
                  <assert class="implementation" id="assert-ProduceXML">MUST be able to produce well-formed 
                     <bibref ref="XML"/> instance documents which satisfy local-schema validity against the originating 
                     <bibref ref="XMLSchema"/> document containing values exposed in the data model.
                  </assert>
               </item>
               <item>
                  <assert class="implementation" id="assert-ConsumeInvalidAllowed">MAY consume well-formed 
                     <bibref ref="XML"/> instance documents which do not satisfy local-schema validity against the originating 
                     <bibref ref="XMLSchema"/> document.
                  </assert>
               </item>
               <item>
                  <assert class="implementation" id="assert-ProduceInvalidAllowed">MAY allow the production of well-formed 
                     <bibref ref="XML"/> instance documents containing values exposed in the data model which do not satisfy local-schema validity against the originating 
                     <bibref ref="XMLSchema"/> document.
                  </assert>
               </item>
            </ulist>
            <p id="ISSUE-3">Describing the form of the data model provided by a databinding implementation is 
beyond the scope of this specification.  For example, the unconstrained built-in numeric 
primitive types, 

               <code>xs:decimal</code>, 

               <code>xs:integer</code>, 

               <code>xs:negativeInteger</code>, 

               <code>xs:positiveInteger</code>, 

               <code>xs:nonNegativeInteger</code> and 

               <code>xs:nonPositiveInteger</code>, 
do not map directly to native types 
in many programming languages and are likely to be presented as a toolkit specific construct 
or more generalised ways, such as a 'string'.
            </p>
            <p id="ISSUE-72">Note that although the patterns contained in this document are defined using 
               <bibref ref="XPath20"/>, there is no requirement for a conformant implementation to support 
               <bibref ref="XPath20"/>.
            </p>
         </div2>
      </div1>
      <div1 id="patterns">
         <head>Schema Patterns</head>
         <p>
This section defines the set of concrete 
            <bibref ref="XMLSchema"/> patterns
which may appear inside a conformant document.
A pattern definition includes the following information:

         </p>
         <glist>
            <label id="patterns-URI">URI</label>
            <def>
               <p>
		A URI 
                  <bibref ref="RFC3986"/> is provided to identify the pattern. 
		The URI can be dereferenced to return 
		informal documentation for the pattern including
		a list of examples and public schemas which exhibit the pattern.
	    
               </p>
            </def>
            <label id="patterns-xpath">XPath</label>
            <def>
               <p>
		A normative 
                  <bibref ref="XPath20"/> expression, used to detect a pattern in 
		an 
                  <bibref ref="XMLSchema"/> document, returning a set of one or more XML element and attribute nodes. 
		The 
                  <bibref ref="XPath20"/> expression having a context node of an 
                  <code>&lt;xs:schema&gt;</code> 
  		element node which may be an 
                  <bibref ref="XMLSchema"/> document element, or an 
                  <code>&lt;xs:schema&gt;</code> element contained inside
		an 
                  <bibref ref="XML"/> document such as 
                  <bibref ref="WSDL20"/> description.
               </p>
               <p>Note, the 
                  <bibref ref="XPath20"/> expressions used to identify individual patterns may be wrapped inside an 
                  <bibref ref="XSLT20"/> stylesheet or 
                  <bibref ref="Schematron"/> schema and used to detect 
                  <bibref ref="XMLSchema"/> patterns contained in a 
                  <bibref ref="WSDL20"/> or other document, see 
                  <specref ref="detection"/> and 
                  <specref ref="document-conformance"/>. 
		Readers unfamiliar with 
                  <bibref ref="XPath20"/> may find the list of 
                  <specref ref="xpath-idioms"/> used within this specification useful.
               </p>
            </def>
            <label id="patterns-examples">Examples</label>
            <def>
               <p>
          Optionally one or more non-normative 
                  <bibref ref="XMLSchema"/> documents or fragments, 
	    followed by one or more valid instance document fragments.
	
               </p>
            </def>
         </glist>
         <p>
	A collection of patterns, including patterns beyond the scope of this
            specification, are available from 
	    
            <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/">http://www.w3.org/2002/ws/databinding/patterns/6/09/</a>.
	    This document offers no additional semantics for the schema patterns presented
	    beyond those specified by the 
            <bibref ref="XMLSchema"/> Recommendation.
	
         </p>
         <explanation xml:id="SchemaElement">
            <p>
               <assert id="assert-SchemaElement" class="document">The 
                  <code>xs:schema</code>
	 element MAY be the document element, 
	but MAY also appear within other descriptions such as a 
                  <bibref ref="WSDL20"/> or 
	
                  <bibref ref="WSDL11"/> document.
	
               </assert>
            </p>
         </explanation>
         <explanation xml:id="IdentifierName">
            <p id="ISSUE-10">
	Note, this pattern represents a subset of the native identifier formats 
	supported by many, but not all, implementations and is therefore most likely to be 
        supported by a databinding tools which directly maps an 
               <bibref ref="XML"/>
               <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a> 
	to an native identifier.
	
            </p>
            <p>
               <assert id="assert-AttributeElementNameClash" class="document">
	The 
                  <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a> used 
	to declare an 
                  <bibref ref="XML"/> attribute MUST NOT be used as the declared 
	 
                  <a href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a> 
	of a child element.
	
               </assert>
            </p>
         </explanation>
         <explanation xml:id="StringEnumerationType">
            <p id="ISSUE-6">
	Note, this pattern may be further constrained by the regular expression used by the 
	 
               <specref ref="pattern-IdentifierName"/> pattern
        to support databinding tools which directly map an 
               <code>xs:enumeration</code>
	value to an native identifier.
	
            </p>
         </explanation>
         <explanation xml:id="TargetNamespace">
            <p id="ISSUE-26-1">
               <assert id="assert-TargetNamespace" class="document">
	    An 
                  <bibref ref="XMLSchema"/> document conforming to this specification MUST 
	    define a 
                  <code>targetNamespace</code> whose value is an absolute URI.
	    
               </assert>
            </p>
         </explanation>
         <explanation xml:id="ImportTypesNamespace">
            <p>
		This pattern is designed to capture a reference to a namespace
		defined within a WSDL document types section.
	    </p>
         </explanation>
         <explanation xml:id="QualifiedLocalElements">
            <p id="ISSUE-27">
               <assert id="assert-QualifiedLocalElements" class="document">
	    An 
                  <bibref ref="XMLSchema"/> document conforming to this specification MUST namespace
	    qualify all locally declared elements using a schema element 
	    
                  <code>elementFormDefault</code> attribute value of 
                  <code>qualified</code>.
	    
               </assert>
            </p>
         </explanation>
         <div2 id="group-SchemaElement">
            <head>Schema Element</head>
            <p>
               <include-explanation ref="SchemaElement"/>
            </p>
            <div3 id="pattern-TargetNamespace" class="pattern">
               <head>TargetNamespace</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/TargetNamespace">TargetNamespace</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/TargetNamespace">http://www.w3.org/2002/ws/databinding/patterns/6/09/TargetNamespace</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-TargetNamespace">.[@targetNamespace]/
		(., @targetNamespace)</xpath>
               <p>
                  <include-explanation ref="TargetNamespace"/>
               </p>
               <p>The following example 
                  <bibref ref="XMLSchema"/> document
	    [
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/TargetNamespace">TargetNamespace</a>] 
	    illustrates the use of the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/TargetNamespace">TargetNamespace</a> 
	    pattern:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/TargetNamespace">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:schema</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> targetNamespace</b>="http://www.w3.org/2002/ws/databinding/examples/6/09/" elementFormDefault="qualified"&gt;
  &lt;xs:element name="targetNamespace" type="xs:string" /&gt;
&lt;/
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:schema</b>&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-TargetNamespace01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/TargetNamespace#TargetNamespace01">TargetNamespace01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/TargetNamespace01">
                  <eg xml:space="preserve">  &lt;ex:targetNamespace&gt;foo&lt;/ex:targetNamespace&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-QualifiedLocalElements" class="pattern">
               <head>QualifiedLocalElements</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/QualifiedLocalElements">QualifiedLocalElements</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/QualifiedLocalElements">http://www.w3.org/2002/ws/databinding/patterns/6/09/QualifiedLocalElements</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-QualifiedLocalElements">.[@elementFormDefault = 'qualified']/
		(@elementFormDefault)</xpath>
               <p>
                  <include-explanation ref="QualifiedLocalElements"/>
               </p>
               <p>The following example 
                  <bibref ref="XMLSchema"/> document
	    [
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/QualifiedLocalElements">QualifiedLocalElements</a>] 
	    illustrates the use of the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/QualifiedLocalElements">QualifiedLocalElements</a> 
	    pattern:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/QualifiedLocalElements">
                  <eg xml:space="preserve">
&lt;xs:schema targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/09/" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> elementFormDefault</b>="qualified"&gt;
  &lt;xs:element name="qualifiedLocalElements"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="element1" type="xs:string" /&gt;
        &lt;xs:element name="element2" type="xs:string" /&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
&lt;/xs:schema&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-QualifiedLocalElements01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/QualifiedLocalElements#QualifiedLocalElements01">QualifiedLocalElements01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/QualifiedLocalElements01">
                  <eg xml:space="preserve">  &lt;ex:qualifiedLocalElements&gt;
      &lt;ex:element1&gt;some data&lt;/ex:element1&gt;
      &lt;ex:element2&gt;some more data&lt;/ex:element2&gt;
   &lt;/ex:qualifiedLocalElements&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-UnqualifiedLocalAttributes" class="pattern">
               <head>UnqualifiedLocalAttributes</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnqualifiedLocalAttributes">UnqualifiedLocalAttributes</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnqualifiedLocalAttributes">http://www.w3.org/2002/ws/databinding/patterns/6/09/UnqualifiedLocalAttributes</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-UnqualifiedLocalAttributes">.[not(@attributeFormDefault) or @attributeFormDefault = 'unqualified']/
		(., @attributeFormDefault)</xpath>
               <p>
                  <include-explanation ref="UnqualifiedLocalAttributes"/>
               </p>
               <p>The following example 
                  <bibref ref="XMLSchema"/> document
	    [
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/UnqualifiedLocalAttributes">UnqualifiedLocalAttributes</a>] 
	    illustrates the use of the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/UnqualifiedLocalAttributes">UnqualifiedLocalAttributes</a> 
	    pattern:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/UnqualifiedLocalAttributes">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:schema</b> targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/09/" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> attributeFormDefault</b>="unqualified" elementFormDefault="qualified"&gt;
  &lt;xs:element name="unqualifiedLocalAttributes" type="xs:string" /&gt;
&lt;/
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:schema</b>&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-UnqualifiedLocalAttributes01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/UnqualifiedLocalAttributes#UnqualifiedLocalAttributes01">UnqualifiedLocalAttributes01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/UnqualifiedLocalAttributes01">
                  <eg xml:space="preserve">  &lt;ex:unqualifiedLocalAttributes&gt;foo&lt;/ex:unqualifiedLocalAttributes&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-SchemaVersion" class="pattern">
               <head>SchemaVersion</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/SchemaVersion">SchemaVersion</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/SchemaVersion">http://www.w3.org/2002/ws/databinding/patterns/6/09/SchemaVersion</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-SchemaVersion">./@version</xpath>
               <p>
                  <include-explanation ref="SchemaVersion"/>
               </p>
               <p>The following example 
                  <bibref ref="XMLSchema"/> document
	    [
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/SchemaVersion">SchemaVersion</a>] 
	    illustrates the use of the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/SchemaVersion">SchemaVersion</a> 
	    pattern:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/SchemaVersion">
                  <eg xml:space="preserve">
&lt;xs:schema targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/09/" elementFormDefault="qualified" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> version</b>="this is version 42"&gt;
  &lt;xs:element name="schemaVersion" type="xs:string" /&gt;
&lt;/xs:schema&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-SchemaVersion01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/SchemaVersion#SchemaVersion01">SchemaVersion01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/SchemaVersion01">
                  <eg xml:space="preserve">  &lt;ex:schemaVersion&gt;foo&lt;/ex:schemaVersion&gt;
</eg>
               </exampleInner>
            </div3>
         </div2>
         <div2 id="group-Annotations">
            <head>Annotations</head>
            <p>
               <include-explanation ref="Annotations"/>
            </p>
            <div3 id="pattern-DocumentationElement" class="pattern">
               <head>DocumentationElement</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/DocumentationElement">DocumentationElement</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/DocumentationElement">http://www.w3.org/2002/ws/databinding/patterns/6/09/DocumentationElement</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-DocumentationElement">.//xs:annotation/xs:documentation/
		(.., ., .//*, .//@*)</xpath>
               <p>
                  <include-explanation ref="DocumentationElement"/>
               </p>
               <p id="example-DocumentationElement">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/DocumentationElement">DocumentationElement</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/DocumentationElement">DocumentationElement</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/DocumentationElement">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:annotation</b>&gt;
  &lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:documentation</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xml:lang</b>="en" /&gt;
&lt;/
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:annotation</b>&gt;
&lt;xs:element name="documentationElement" type="xs:string"&gt;
  &lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:annotation</b>&gt;
    &lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:documentation</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xml:lang</b>="en" /&gt;
  &lt;/
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:annotation</b>&gt;
&lt;/xs:element&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-DocumentationElement01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/DocumentationElement#DocumentationElement01">DocumentationElement01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/DocumentationElement01">
                  <eg xml:space="preserve">  &lt;ex:documentationElement&gt;hello world&lt;/ex:documentationElement&gt;
</eg>
               </exampleInner>
            </div3>
         </div2>
         <div2 id="group-Properties">
            <head>Properties</head>
            <p>
               <include-explanation ref="Properties"/>
            </p>
            <div3 id="pattern-IdentifierName" class="pattern">
               <head>IdentifierName</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IdentifierName">IdentifierName</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IdentifierName">http://www.w3.org/2002/ws/databinding/patterns/6/09/IdentifierName</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-IdentifierName">.//.[matches(@name, "^[A-Za-z_]([A-Za-z0-9_]{0,31})$")]/
		(@name)</xpath>
               <p>
                  <include-explanation ref="IdentifierName"/>
               </p>
               <p id="example-IdentifierName">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/IdentifierName">IdentifierName</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/IdentifierName">IdentifierName</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/IdentifierName">
                  <eg xml:space="preserve">
&lt;xs:element 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> name</b>="identifierName" type="xs:string" /&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-IdentifierName02">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/IdentifierName#IdentifierName02">IdentifierName02</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/IdentifierName02">
                  <eg xml:space="preserve">  &lt;ex:identifierName&gt;Hello&lt;/ex:identifierName&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-NonIdentifierName" class="pattern">
               <head>NonIdentifierName</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NonIdentifierName">NonIdentifierName</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NonIdentifierName">http://www.w3.org/2002/ws/databinding/patterns/6/09/NonIdentifierName</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-NonIdentifierName">.//.[@name and not(matches(@name, "^[A-Za-z_]([A-Za-z0-9_]{0,31})$"))]/
		(@name)</xpath>
               <p>
                  <include-explanation ref="NonIdentifierName"/>
               </p>
               <p id="example-NonIdentifierName">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NonIdentifierName">NonIdentifierName</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/NonIdentifierName">NonIdentifierName</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/NonIdentifierName">
                  <eg xml:space="preserve">
&lt;xs:element 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> name</b>="non-Identifier-Name" type="xs:string" /&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-NonIdentifierName02">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/NonIdentifierName#NonIdentifierName02">NonIdentifierName02</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/NonIdentifierName02">
                  <eg xml:space="preserve">  &lt;ex:non-Identifier-Name&gt;Hello&lt;/ex:non-Identifier-Name&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-NotMixed" class="pattern">
               <head>NotMixed</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NotMixed">NotMixed</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NotMixed">http://www.w3.org/2002/ws/databinding/patterns/6/09/NotMixed</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-NotMixed">.//.[@mixed = 'false']/
		(@mixed)</xpath>
               <p>
                  <include-explanation ref="NotMixed"/>
               </p>
               <p id="example-NotMixed">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/NotMixed">NotMixed</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/NotMixed">NotMixed</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/NotMixed">
                  <eg xml:space="preserve">
&lt;xs:element name="notMixed" type="ex:NotMixed" /&gt;
&lt;xs:complexType name="NotMixed" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> mixed</b>="false"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="notMixedElement" type="xs:string" /&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-NotMixedExample01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/NotMixed#NotMixedExample01">NotMixedExample01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/NotMixedExample01">
                  <eg xml:space="preserve">  &lt;ex:notMixed&gt;
      &lt;ex:notMixedElement&gt;Stuff&lt;/ex:notMixedElement&gt;
   &lt;/ex:notMixed&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-MinOccurs1" class="pattern">
               <head>MinOccurs1</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/MinOccurs1">MinOccurs1</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/MinOccurs1">http://www.w3.org/2002/ws/databinding/patterns/6/09/MinOccurs1</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-MinOccurs1">.//.[@minOccurs = '1']/
		(@minOccurs)</xpath>
               <p>
                  <include-explanation ref="MinOccurs1"/>
               </p>
               <p id="example-MinOccurs1">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/MinOccurs1">MinOccurs1</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/MinOccurs1">MinOccurs1</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/MinOccurs1">
                  <eg xml:space="preserve">
&lt;xs:element name="minOccurs1" type="ex:MinOccurs1" /&gt;
&lt;xs:complexType name="MinOccurs1"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="value" type="xs:string" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> minOccurs</b>="1" /&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-MinOccurs01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/MinOccurs1#MinOccurs01">MinOccurs01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/MinOccurs01">
                  <eg xml:space="preserve">  &lt;ex:minOccurs1&gt;
      &lt;ex:value&gt;44&lt;/ex:value&gt;
   &lt;/ex:minOccurs1&gt;
</eg>
               </exampleInner>
               <p id="instance-MinOccurs02">
		as is the following element when included in 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/MinOccurs1#MinOccurs02">MinOccurs02</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/MinOccurs02">
                  <eg xml:space="preserve">  &lt;ex:minOccurs1&gt;
      &lt;ex:value&gt;4&lt;/ex:value&gt;
      &lt;ex:value&gt;8&lt;/ex:value&gt;
   &lt;/ex:minOccurs1&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-MaxOccurs1" class="pattern">
               <head>MaxOccurs1</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/MaxOccurs1">MaxOccurs1</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/MaxOccurs1">http://www.w3.org/2002/ws/databinding/patterns/6/09/MaxOccurs1</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-MaxOccurs1">.//.[@maxOccurs = '1']/
		(@maxOccurs)</xpath>
               <p>
                  <include-explanation ref="MaxOccurs1"/>
               </p>
               <p id="example-MaxOccurs1">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/MaxOccurs1">MaxOccurs1</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/MaxOccurs1">MaxOccurs1</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/MaxOccurs1">
                  <eg xml:space="preserve">
&lt;xs:element name="maxOccurs1" type="ex:MaxOccurs1" /&gt;
&lt;xs:complexType name="MaxOccurs1"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="value" type="xs:string" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> maxOccurs</b>="1" /&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-MaxOccurs01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/MaxOccurs1#MaxOccurs01">MaxOccurs01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/MaxOccurs01">
                  <eg xml:space="preserve">  &lt;ex:maxOccurs1&gt;
      &lt;ex:value&gt;44&lt;/ex:value&gt;
   &lt;/ex:maxOccurs1&gt;
</eg>
               </exampleInner>
               <p id="instance-MaxOccurs02">
		as is the following element when included in 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/MaxOccurs1#MaxOccurs02">MaxOccurs02</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/MaxOccurs02">
                  <eg xml:space="preserve">  &lt;ex:maxOccurs1&gt;
      &lt;ex:value&gt;4&lt;/ex:value&gt;
   &lt;/ex:maxOccurs1&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-Id" class="pattern">
               <head>Id</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/Id">Id</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/Id">http://www.w3.org/2002/ws/databinding/patterns/6/09/Id</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-Id">.//@id</xpath>
               <p>
                  <include-explanation ref="Id"/>
               </p>
               <p id="example-Id">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/Id">Id</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/Id">Id</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/Id">
                  <eg xml:space="preserve">
&lt;xs:element name="idExample" type="ex:IdExample" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> id</b>="node1" /&gt;
&lt;xs:complexType name="IdExample" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> id</b>="node2"&gt;
  &lt;xs:sequence 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> id</b>="node3"&gt;
    &lt;xs:element name="text" type="xs:string" minOccurs="0" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> id</b>="node4" /&gt;
  &lt;/xs:sequence&gt;
  &lt;xs:attribute name="string" type="xs:string" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> id</b>="node5" /&gt;
&lt;/xs:complexType&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-IdExample01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/Id#IdExample01">IdExample01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/IdExample01">
                  <eg xml:space="preserve">  &lt;ex:idExample string="hello"/&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-ComplexTypeConcrete" class="pattern">
               <head>ComplexTypeConcrete</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ComplexTypeConcrete">ComplexTypeConcrete</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ComplexTypeConcrete">http://www.w3.org/2002/ws/databinding/patterns/6/09/ComplexTypeConcrete</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-ComplexTypeConcrete">.//xs:complexType[@abstract='false']/
		(@abstract)</xpath>
               <p>
                  <include-explanation ref="ComplexTypeConcrete"/>
               </p>
               <p id="example-ComplexTypeConcrete">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ComplexTypeConcrete">ComplexTypeConcrete</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ComplexTypeConcrete">ComplexTypeConcrete</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ComplexTypeConcrete">
                  <eg xml:space="preserve">
&lt;xs:element name="complexTypeConcrete" type="ex:ComplexTypeConcrete" /&gt;
&lt;xs:complexType name="ComplexTypeConcrete" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> abstract</b>="false"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="premium" type="xs:string" /&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-ComplexTypeConcreteExample01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ComplexTypeConcrete#ComplexTypeConcreteExample01">ComplexTypeConcreteExample01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ComplexTypeConcreteExample01">
                  <eg xml:space="preserve">  &lt;ex:complexTypeConcrete&gt;
      &lt;ex:premium&gt;1175&lt;/ex:premium&gt;
   &lt;/ex:complexTypeConcrete&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-GlobalElementConcrete" class="pattern">
               <head>GlobalElementConcrete</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementConcrete">GlobalElementConcrete</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementConcrete">http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementConcrete</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-GlobalElementConcrete">./xs:element[@abstract='false']/
		(@abstract)</xpath>
               <p>
                  <include-explanation ref="GlobalElementConcrete"/>
               </p>
               <p id="example-GlobalElementConcrete">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementConcrete">GlobalElementConcrete</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElementConcrete">GlobalElementConcrete</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElementConcrete">
                  <eg xml:space="preserve">
&lt;xs:element name="globalElementConcrete" type="xs:string" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> abstract</b>="false" /&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-GlobalElementConcreteExample01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElementConcrete#GlobalElementConcreteExample01">GlobalElementConcreteExample01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElementConcreteExample01">
                  <eg xml:space="preserve">  &lt;ex:globalElementConcrete&gt;Stuff&lt;/ex:globalElementConcrete&gt;
</eg>
               </exampleInner>
            </div3>
         </div2>
         <div2 id="group-Import">
            <head>Import and Include</head>
            <p>
               <include-explanation ref="Import"/>
            </p>
            <div3 id="pattern-ImportTypesNamespace" class="pattern">
               <head>ImportTypesNamespace</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportTypesNamespace">ImportTypesNamespace</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportTypesNamespace">http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportTypesNamespace</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-ImportTypesNamespace">.//xs:import[@namespace
		and not(@schemaLocation) 
		and (@namespace = ../../xs:schema/@targetNamespace)]/ 
		(., @namespace)</xpath>
               <p>
                  <include-explanation ref="ImportTypesNamespace"/>
               </p>
               <p id="example-ImportTypesNamespace">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportTypesNamespace">ImportTypesNamespace</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ImportTypesNamespace">ImportTypesNamespace</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ImportTypesNamespace">
                  <eg xml:space="preserve">
&lt;wsdl&gt;
  &lt;xs:schema targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/09/static/1" elementFormDefault="qualified"&gt;
    &lt;xs:element name="importTypesNamespace" type="xs:string" /&gt;
  &lt;/xs:schema&gt;
  &lt;xs:schema targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/09/static/2" elementFormDefault="qualified"&gt;
    &lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:import</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> namespace</b>="http://www.w3.org/2002/ws/databinding/examples/6/09/static/1" /&gt;
  &lt;/xs:schema&gt;
&lt;/wsdl&gt;
    
                  </eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-ImportNamespace" class="pattern">
               <head>ImportNamespace</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportNamespace">ImportNamespace</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportNamespace">http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportNamespace</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-ImportNamespace">./xs:import[@namespace and not(@schemaLocation)
		and not(@namespace = 'http://www.w3.org/2001/XMLSchema')]/
		(., @namespace)</xpath>
               <p>
                  <include-explanation ref="ImportNamespace"/>
               </p>
               <p id="example-ImportNamespace">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportNamespace">ImportNamespace</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ImportNamespace">ImportNamespace</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ImportNamespace">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:import</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> namespace</b>="http://example.com/a/namespace" /&gt;
    
                  </eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-ImportSchema" class="pattern">
               <head>ImportSchema</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportSchema">ImportSchema</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportSchema">http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportSchema</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-ImportSchema">./xs:import[@namespace and @schemaLocation]/
		(., @namespace, @schemaLocation)</xpath>
               <p>
                  <include-explanation ref="ImportSchema"/>
               </p>
               <p id="example-ImportSchema">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ImportSchema">ImportSchema</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ImportSchema">ImportSchema</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ImportSchema">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:import</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> namespace</b>="http://example.com/a/namespace" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> schemaLocation</b>="http://www.w3.org/2002/ws/databinding/examples/6/09/static/Imported.xsd" /&gt;
    
                  </eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-Include" class="pattern">
               <head>Include</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/Include">Include</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/Include">http://www.w3.org/2002/ws/databinding/patterns/6/09/Include</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-Include">./xs:include[@schemaLocation]/
		(., @schemaLocation)</xpath>
               <p>
                  <include-explanation ref="Include"/>
               </p>
               <p id="example-Include">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/Include">Include</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/Include">Include</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/Include">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:include</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> schemaLocation</b>="http://www.w3.org/2002/ws/databinding/examples/6/09/static/Included.xsd" /&gt;
    
                  </eg>
               </exampleInner>
            </div3>
         </div2>
         <div2 id="group-GlobalElement">
            <head>Global Element Declarations</head>
            <p>
               <include-explanation ref="GlobalElement"/>
            </p>
            <div3 id="pattern-GlobalElement" class="pattern">
               <head>GlobalElement</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElement">GlobalElement</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElement">http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElement</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-GlobalElement">./xs:element[@name 
		and @type and contains(@type, ':')]/
		(., @name, @type)</xpath>
               <p>
                  <include-explanation ref="GlobalElement"/>
               </p>
               <p id="example-GlobalElement">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElement">GlobalElement</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElement">GlobalElement</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElement">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:element</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> name</b>="globalElement" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> type</b>="xs:string" /&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-GlobalElement01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElement#GlobalElement01">GlobalElement01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElement01">
                  <eg xml:space="preserve">  &lt;ex:globalElement/&gt;
</eg>
               </exampleInner>
               <p id="instance-GlobalElement02">
		as is the following element when included in 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElement#GlobalElement02">GlobalElement02</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElement02">
                  <eg xml:space="preserve">  &lt;ex:globalElement&gt;a value&lt;/ex:globalElement&gt;
</eg>
               </exampleInner>
               <p id="instance-GlobalElement03"> 
		and the following element when included in 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElement#GlobalElement03">GlobalElement03</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElement03">
                  <eg xml:space="preserve">  &lt;ex:globalElement&gt;another Value&lt;/ex:globalElement&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-GlobalElementSequence" class="pattern">
               <head>GlobalElementSequence</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementSequence">GlobalElementSequence</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementSequence">http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementSequence</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-GlobalElementSequence">./xs:element[@name]/xs:complexType/xs:sequence[xs:element]/
		(../../(., @name), .., ., xs:element/(., @name))</xpath>
               <p>
                  <include-explanation ref="GlobalElementSequence"/>
               </p>
               <p id="example-GlobalElementSequence">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalElementSequence">GlobalElementSequence</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElementSequence">GlobalElementSequence</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElementSequence">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:element</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> name</b>="globalElementSequence"&gt;
  &lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:complexType</b>&gt;
    &lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:sequence</b>&gt;
      &lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:element</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> name</b>="foo" type="xs:string" /&gt;
      &lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:element</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> name</b>="bar" type="xs:string" /&gt;
    &lt;/
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:sequence</b>&gt;
  &lt;/
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:complexType</b>&gt;
&lt;/
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:element</b>&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-GlobalElementSequence01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElementSequence#GlobalElementSequence01">GlobalElementSequence01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalElementSequence01">
                  <eg xml:space="preserve">  &lt;ex:globalElementSequence&gt;
      &lt;ex:foo&gt;one&lt;/ex:foo&gt;
      &lt;ex:bar&gt;two&lt;/ex:bar&gt;
   &lt;/ex:globalElementSequence&gt;
</eg>
               </exampleInner>
            </div3>
         </div2>
         <div2 id="group-GlobalAttribute">
            <head>Global Attribute Declarations</head>
            <p>
               <include-explanation ref="GlobalAttribute"/>
            </p>
            <div3 id="pattern-GlobalAttribute" class="pattern">
               <head>GlobalAttribute</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalAttribute">GlobalAttribute</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalAttribute">http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalAttribute</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-GlobalAttribute">./xs:attribute[@name and @type and contains(@type, ":")]/
		(., @name, @type)</xpath>
               <p>
                  <include-explanation ref="GlobalAttribute"/>
               </p>
               <p id="example-GlobalAttribute">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/GlobalAttribute">GlobalAttribute</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalAttribute">GlobalAttribute</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalAttribute">
                  <eg xml:space="preserve">
&lt;
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">xs:attribute</b>
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> name</b>="globalAttributeAttr" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> type</b>="xs:string" /&gt;
&lt;xs:complexType name="GlobalAttribute"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="globalAttributeElement" type="xs:string" /&gt;
  &lt;/xs:sequence&gt;
  &lt;xs:attribute ref="ex:globalAttributeAttr" /&gt;
&lt;/xs:complexType&gt;
&lt;xs:element name="globalAttribute" type="ex:GlobalAttribute" /&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-GlobalAttribute01">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalAttribute#GlobalAttribute01">GlobalAttribute01</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/GlobalAttribute01">
                  <eg xml:space="preserve">  &lt;ex:globalAttribute globalAttributeAttr="string"&gt;
      &lt;ex:globalAttributeElement&gt;another string&lt;/ex:globalAttributeElement&gt;
   &lt;/ex:globalAttribute&gt;
</eg>
               </exampleInner>
            </div3>
         </div2>
         <div2 id="group-Element">
            <head>Element Declarations</head>
            <p>
               <include-explanation ref="Element"/>
            </p>
            <div3 id="pattern-ElementMinOccurs0" class="pattern">
               <head>ElementMinOccurs0</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs0">ElementMinOccurs0</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs0">http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs0</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-ElementMinOccurs0">.//xs:element[@minOccurs = '0' and (not(@maxOccurs) or @maxOccurs = '1')]/
		(@minOccurs, @maxOccurs)</xpath>
               <p>
                  <include-explanation ref="ElementMinOccurs0"/>
               </p>
               <p id="example-ElementMinOccurs0">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs0">ElementMinOccurs0</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs0">ElementMinOccurs0</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs0">
                  <eg xml:space="preserve">
&lt;xs:element name="elementMinOccurs0" type="ex:ElementMinOccurs0" /&gt;
&lt;xs:complexType name="ElementMinOccurs0"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="firstName" type="xs:string" /&gt;
    &lt;xs:element name="middleName" type="xs:string" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> minOccurs</b>="0" /&gt;
    &lt;xs:element name="lastName" type="xs:string" /&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-ElementMinOccurs001">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs0#ElementMinOccurs001">ElementMinOccurs001</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs001">
                  <eg xml:space="preserve">  &lt;ex:elementMinOccurs0&gt;
      &lt;ex:firstName&gt;Paul&lt;/ex:firstName&gt;
      &lt;ex:lastName&gt;Downey&lt;/ex:lastName&gt;
   &lt;/ex:elementMinOccurs0&gt;
</eg>
               </exampleInner>
               <p id="instance-ElementMinOccurs002">
		as is the following element when included in 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs0#ElementMinOccurs002">ElementMinOccurs002</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs002">
                  <eg xml:space="preserve">  &lt;ex:elementMinOccurs0&gt;
      &lt;ex:firstName&gt;Paul&lt;/ex:firstName&gt;
      &lt;ex:middleName&gt;Sumner&lt;/ex:middleName&gt;
      &lt;ex:lastName&gt;Downey&lt;/ex:lastName&gt;
   &lt;/ex:elementMinOccurs0&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-ElementMinOccurs1" class="pattern">
               <head>ElementMinOccurs1</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs1">ElementMinOccurs1</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs1">http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs1</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-ElementMinOccurs1">.//xs:element[@minOccurs = '1' and (not(@maxOccurs) or @maxOccurs = '1')]/
		(@minOccurs, @maxOccurs)</xpath>
               <p>
                  <include-explanation ref="ElementMinOccurs1"/>
               </p>
               <p id="example-ElementMinOccurs1">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs1">ElementMinOccurs1</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs1">ElementMinOccurs1</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs1">
                  <eg xml:space="preserve">
&lt;xs:element name="elementMinOccurs1" type="ex:ElementMinOccurs1" /&gt;
&lt;xs:complexType name="ElementMinOccurs1"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="elementMinOccurs1item" type="xs:string" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> minOccurs</b>="1" /&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-ElementMinOccurs101">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs1#ElementMinOccurs101">ElementMinOccurs101</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMinOccurs101">
                  <eg xml:space="preserve">  &lt;ex:elementMinOccurs1&gt;
      &lt;ex:elementMinOccurs1item&gt;item1&lt;/ex:elementMinOccurs1item&gt;
   &lt;/ex:elementMinOccurs1&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-ElementMaxOccurs1" class="pattern">
               <head>ElementMaxOccurs1</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMaxOccurs1">ElementMaxOccurs1</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMaxOccurs1">http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMaxOccurs1</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-ElementMaxOccurs1">.//xs:element[(not(@minOccurs) or @minOccurs = '1') and @maxOccurs = '1']/
		(@minOccurs, @maxOccurs)</xpath>
               <p>
                  <include-explanation ref="ElementMaxOccurs1"/>
               </p>
               <p id="example-ElementMaxOccurs1">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMaxOccurs1">ElementMaxOccurs1</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMaxOccurs1">ElementMaxOccurs1</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMaxOccurs1">
                  <eg xml:space="preserve">
&lt;xs:element name="elementMaxOccurs1" type="ex:ElementMaxOccurs1" /&gt;
&lt;xs:complexType name="ElementMaxOccurs1"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="value" type="xs:string" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> minOccurs</b>="1" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> maxOccurs</b>="1" /&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;
    
                  </eg>
               </exampleInner>
               <p id="instance-ElementMaxOccurs101">
	The following example 
                  <bibref ref="XML"/> element is 
	valid against the above example 
                  <bibref ref="XMLSchema"/> when included 
	inside 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMaxOccurs1#ElementMaxOccurs101">ElementMaxOccurs101</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMaxOccurs101">
                  <eg xml:space="preserve">  &lt;ex:elementMaxOccurs1&gt;
      &lt;ex:value&gt;44&lt;/ex:value&gt;
   &lt;/ex:elementMaxOccurs1&gt;
</eg>
               </exampleInner>
               <p id="instance-ElementMaxOccurs102">
		as is the following element when included in 
	
	an instance document 
	[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMaxOccurs1#ElementMaxOccurs102">ElementMaxOccurs102</a>]:
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/ElementMaxOccurs102">
                  <eg xml:space="preserve">  &lt;ex:elementMaxOccurs1&gt;
      &lt;ex:value&gt;4&lt;/ex:value&gt;
   &lt;/ex:elementMaxOccurs1&gt;
</eg>
               </exampleInner>
            </div3>
            <div3 id="pattern-ElementMinOccurs0MaxOccursUnbounded" class="pattern">
               <head>ElementMinOccurs0MaxOccursUnbounded</head>
               <p>
	   An 
                  <bibref ref="XMLSchema"/>, or other 
                  <bibref ref="XML"/> document containing an 
                  <bibref ref="XMLSchema"/> element
	    
                  <code>&lt;xs:schema&gt;</code>, exhibits the 
	    
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs0MaxOccursUnbounded">ElementMinOccurs0MaxOccursUnbounded</a>
	    pattern identified using the URI 
                  <bibref ref="RFC3986"/>
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs0MaxOccursUnbounded">http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs0MaxOccursUnbounded</a>
	    when the following 
                  <bibref ref="XPath20"/> expression
	    applied to a document or element node with a context node of 
                  <code>//xs:schema</code> 
	    results in an 
                  <bibref ref="XPath20"/> node-set containing at least one node:
        
               </p>
               <xpath id="xpath-ElementMinOccurs0MaxOccursUnbounded">.//xs:element[@minOccurs = '0' and @maxOccurs = 'unbounded']/
		(@minOccurs, @maxOccurs)</xpath>
               <p>
                  <include-explanation ref="ElementMinOccurs0MaxOccursUnbounded"/>
               </p>
               <p id="example-NestedSequenceElementList">The following example 
                  <bibref ref="XMLSchema"/> extract illustrates the use of the 
		
                  <a href="http://www.w3.org/2002/ws/databinding/patterns/6/09/ElementMinOccurs0MaxOccursUnbounded">ElementMinOccurs0MaxOccursUnbounded</a> 
		pattern within an 
                  <bibref ref="XMLSchema"/> document
		[
                  <a href="http://www.w3.org/2002/ws/databinding/examples/6/09/NestedSequenceElementList">NestedSequenceElementList</a>]: 
               </p>
               <exampleInner id="example-" href="http://www.w3.org/2002/ws/databinding/examples/6/09/NestedSequenceElementList">
                  <eg xml:space="preserve">
&lt;xs:element name="nestedSequenceElementList" type="ex:NestedSequenceElementList" /&gt;
&lt;xs:complexType name="NestedItem"&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name="item" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> minOccurs</b>="0" 
                     <b xmlns:pat="http://www.w3.org/2002/ws/databinding/patterns/6/09/" xmlns:ex="http://www.w3.org/2002/ws/databinding/examples/6/09/" xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> maxOccurs</b>="unbounded" type=