<?xml version="1.0" encoding="UTF-16"?>
<?xml-stylesheet type="text/xsl" href="html.xsl"?>
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:annotation><xs:appinfo>inc-annexes_1-02.xsd</xs:appinfo></xs:annotation>
	<xs:annotation>
		<xs:documentation>
			<h1>IPC Annexes Schema as part of compilation file schema, V.1.02</h1>
			<h2>History</h2>
			<dl>
				<dt>
					<b>2012-SEP-25</b>
				</dt>
				<dd>(TA) split from ipcr_scheme_1-02.xsd</dd>
			</dl>
		</xs:documentation>
	</xs:annotation>

	<xs:include schemaLocation="inc-types_1-02.xsd"/>
	<xs:include schemaLocation="inc-scheme_1-02.xsd"/>


	<xs:complexType name="amendment">
		<xs:annotation>
			<xs:documentation>
				<div>latest amendment of the ipcEntry</div>
				<div>The amendments are embedded into compilation entries.</div>
				<div>The documentation is informative, since these elements are mostly for statistical purposes and for tracking the revision work.</div>
			</xs:documentation>
		</xs:annotation>

		<xs:choice minOccurs="0">
			<xs:element name="unchanged" type="unchanged"></xs:element>
			<xs:element name="structure" type="structure"></xs:element>
			<xs:element name="core-advanced" type="core-advanced"></xs:element>
			<xs:element name="entry-type" type="entry-type"></xs:element>
			<xs:element name="delete" type="delete"></xs:element>
			<xs:element name="new" type="new"></xs:element>
			<xs:element name="modify" type="modify"></xs:element>
			<xs:element name="deleteunstructured" type="deleteunstructured"></xs:element>
			<xs:element name="modifyunstructured" type="modifyunstructured"></xs:element>
			<xs:element name="newunstructured" type="newunstructured"></xs:element>
			<xs:element name="moveunstructured" type="moveunstructured"></xs:element>
			<xs:element name="renumber" type="renumber"></xs:element>
			<xs:element name="priority" type="priority"></xs:element>
			<xs:element name="deletenew" type="deletenew"></xs:element>
			<xs:element name="undelete" type="undelete"></xs:element>
			<xs:element name="restore" type="restore"></xs:element>
		</xs:choice>
		<xs:attribute name="sessionDecided"><xs:annotation><xs:documentation><p>The latest session that adopted the annex.</p></xs:documentation></xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKEN">
					<xs:pattern value="[A-Z][A-Z][0-9][0-9]"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="isGenerated" type="yesno" default="N"></xs:attribute>
		<xs:attribute name="decision"><xs:annotation><xs:documentation><p>The latest decision. In compilation files it should be 'adopt'.</p></xs:documentation></xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKEN">
					<xs:enumeration value="withdraw"></xs:enumeration>
					<xs:enumeration value="reject"></xs:enumeration>
					<xs:enumeration value="approve"></xs:enumeration>
					<xs:enumeration value="questionWithApproval"></xs:enumeration>
					<xs:enumeration value="noDecide"></xs:enumeration>
					<xs:enumeration value="question"></xs:enumeration>
					<xs:enumeration value="adopt"></xs:enumeration>
					<xs:enumeration value="sendbackToWG"></xs:enumeration>
					<xs:enumeration value="sendbackToSC"></xs:enumeration>
					<xs:enumeration value="publish"></xs:enumeration>
					<xs:enumeration value="original"></xs:enumeration>
					<xs:enumeration value="submit"></xs:enumeration>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="state"><xs:annotation><xs:documentation><div>status of the annex; in compilation files it should be CEadopted or SCadopted.</div></xs:documentation></xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKEN">
					<xs:enumeration value="WGproposed"></xs:enumeration>
					<xs:enumeration value="WGapproved"></xs:enumeration>
					<xs:enumeration value="WGrejected"></xs:enumeration>
					<xs:enumeration value="WGpending"></xs:enumeration>
					<xs:enumeration value="WGquestions"></xs:enumeration>
					<xs:enumeration value="WGapprovedwithquestions"></xs:enumeration>
					<xs:enumeration value="CEproposed"></xs:enumeration>
					<xs:enumeration value="CEadopted"></xs:enumeration>
					<xs:enumeration value="CErejected"></xs:enumeration>
					<xs:enumeration value="CEpending"></xs:enumeration>
					<xs:enumeration value="CEquestions"></xs:enumeration>
					<xs:enumeration value="CEadoptedwithquestions"></xs:enumeration>
					<xs:enumeration value="SCproposed"></xs:enumeration>
					<xs:enumeration value="SCadopted"></xs:enumeration>
					<xs:enumeration value="SCrejected"></xs:enumeration>
					<xs:enumeration value="SCpending"></xs:enumeration>
					<xs:enumeration value="SCquestions"></xs:enumeration>
					<xs:enumeration value="SCadoptedwithquestions"></xs:enumeration>
					<xs:enumeration value="IBproposed"></xs:enumeration>
					<xs:enumeration value="IBadopted"></xs:enumeration>
					<xs:enumeration value="IBpublished"></xs:enumeration>
					<xs:enumeration value="IBoriginal"></xs:enumeration>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="isCType" type="yesno" default="N">
			<xs:annotation><xs:documentation><div>the amendment is a C-Type (considerable) modification, i.e. subject matter is considerably modified.</div></xs:documentation></xs:annotation>
		</xs:attribute>
		<xs:attribute name="lang" use="required">
			<!-- This isn't the global lang because there is an 'EF' value! -->
			<xs:annotation><xs:documentation><div>single language or language-independent amendment</div>
			</xs:documentation></xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKEN">
					<xs:enumeration value="EN"></xs:enumeration>
					<xs:enumeration value="FR"></xs:enumeration>
					<xs:enumeration value="EF"></xs:enumeration>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="projectType" type="projectType"/>
		<!--<xs:attribute name="projectNumber" type="xs:string"></xs:attribute>-->
		<xs:attribute name="project" type="projectCode"></xs:attribute>
		<!--<xs:attribute name="amendmentState" type="xs:string"></xs:attribute>-->
		<xs:attribute name="ipcLevel" type="annexIpcLevel" use="required"></xs:attribute>
		<!--			<xs:attribute name="errorText" type="xs:string"></xs:attribute>
<xs:attribute name="errorSeverity" type="xs:string"></xs:attribute>-->
		<xs:attribute name="orderInProposal" type="xs:string"><xs:annotation><xs:documentation><div>order in the original proposal</div>
		<div class="important">used before simplification</div>
		</xs:documentation></xs:annotation></xs:attribute>
		<xs:attribute name="errorText" type="xs:string"><xs:annotation><xs:documentation><div>comment of the administration system</div></xs:documentation></xs:annotation></xs:attribute>
		<xs:attribute name="errorSeverity" type="xs:string"><xs:annotation><xs:documentation><div>severity of the comment in errorText</div></xs:documentation></xs:annotation></xs:attribute>
	</xs:complexType>

			<xs:simpleType name="projectType">
				<xs:annotation><xs:documentation><div>type of project</div>
				<div class="important">This attribute is selected from a configurable list in the administration software.</div>
				<div>Typical values :</div>
				<ol><li>D: definition</li>
				<li>M: maintenance</li>
				<li>R: revision</li>
				<li>H: hybrid</li></ol>
				</xs:documentation></xs:annotation>
				<xs:restriction base="xs:string"/>
			</xs:simpleType>

			<xs:simpleType name="projectCode">
				<xs:annotation><xs:documentation>Project code in for X999</xs:documentation></xs:annotation>
				<xs:restriction base="xs:NMTOKEN">
					<xs:pattern value="[A-Z][0-9]{3}"/>
				</xs:restriction>
			</xs:simpleType>

	<xs:simpleType name="annexIpcLevel">
		<xs:annotation>
			<xs:documentation>
				<div>IPC level subject of modification in annexes</div>
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:NMTOKEN">
			<xs:enumeration value="c">
				<xs:annotation>
					<xs:documentation>core <b>only</b></xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<!--			<xs:enumeration value="b"></xs:enumeration>-->
			<xs:enumeration value="a">
				<xs:annotation>
					<xs:documentation>advanced (only: if core level exist, maybe the core level text is not modified)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="b">
				<xs:annotation>
					<xs:documentation>both IPC levels are modified at the same time</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>

	</xs:simpleType>
	<xs:complexType name="unchanged">
		<xs:annotation>
			<xs:documentation>
				<dl>
					<dt>
						<b>sessionDecided:</b>which session made the decision</dt>
					<dd>
						<b>generated:</b>for tracking sent-back and automatically generated amendments</dd>
					<dd>
						<b>decision:</b>what was the decision of the session?</dd>
					<dd>simplification of the real state stored in the database</dd>
				</dl>
			</xs:documentation>
			<xs:documentation>
				<div>STRUCTURED entry operations</div>
			</xs:documentation>
			<xs:documentation>
				<div>unchanged amendment, for an interval</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="structure">
		<xs:annotation>
			<xs:documentation>
				<div>structure modification</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="relativeDotNo" type="xs:integer" use="required"><xs:annotation><xs:documentation>positive or negative number designating the relative change of the number of dots (=kind of IPC entry for subgroups)</xs:documentation></xs:annotation></xs:attribute>
	</xs:complexType>

	<xs:complexType name="core-advanced">
		<xs:annotation>
			<xs:documentation>
				<div>core-&gt;advanced or advanced-&gt;core  modification</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="ipcLevel" type="ipcLevel" use="required"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="entry-type">
		<xs:annotation>
			<xs:documentation>
				<div>'entry type' modification</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="entryType" type="annexEntryType" use="required"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="delete">
		<xs:annotation>
			<xs:documentation>
				<dl>
					<dt>'delete' amendment</dt>
					<dd>
						<b>pls. note:</b>'deleted' is the IPC entry or interval that has been deleted!</dd>
				</dl>
			</xs:documentation>
		</xs:annotation>

		<xs:sequence>
			<xs:element name="transferredTo" type="transferredTo" minOccurs="0"></xs:element>
			<xs:element name="coveredBy" type="coveredBy" minOccurs="0"></xs:element>
		</xs:sequence>
		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="new">
		<xs:annotation>
			<xs:documentation>
				<div>'new' amendment</div>
			</xs:documentation>
		</xs:annotation>

		<xs:sequence>
			<xs:element name="title" type="annexTitle"></xs:element>
		</xs:sequence>
		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="entryType" type="annexEntryType" default="c"></xs:attribute>
		<xs:attribute name="ipcLevel" type="ipcLevel" default="c"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind" use="required"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="modify">
		<xs:annotation>
			<xs:documentation>
				<div>
					<b>entryType, ipcLevel:</b>see at ipcEntry</div>
			</xs:documentation>
			<xs:documentation>
				<div>
					<b>modify:</b>text or complex modification</div>
			</xs:documentation>
		</xs:annotation>

		<xs:sequence>
			<xs:element name="title" type="annexTitle"></xs:element>
		</xs:sequence>
		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="entryType" type="annexEntryType"></xs:attribute>
		<xs:attribute name="ipcLevel" type="ipcLevel"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind"></xs:attribute>
		<xs:attribute name="priorityOrder" type="priorityOrder"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="deleteunstructured">
		<xs:annotation>
			<xs:documentation>
				<div>
					<b>type, ipcLevel:</b>see at ipcEntry</div>
			</xs:documentation>
			<xs:documentation>
				<div>delete unstructured</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind" use="required"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="newunstructured">
		<xs:annotation><xs:documentation><div>new unstructured element, e.g. new note</div></xs:documentation></xs:annotation>
		<xs:choice>
			<xs:element name="index" type="annexIndex"></xs:element>
			<xs:element name="note" type="annexNote"></xs:element>
			<xs:element name="title" type="annexTitle"></xs:element>
		</xs:choice>
		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind" use="required"></xs:attribute>
		<xs:attribute name="ipcLevel" type="ipcLevel" default="c"></xs:attribute>
	</xs:complexType>
	<xs:complexType name="modifyunstructured">
		<xs:annotation><xs:documentation><div>modify unstructured element, e.g. modify text of a note</div></xs:documentation></xs:annotation>
		<xs:choice>
			<xs:element name="index" type="annexIndex"></xs:element>
			<xs:element name="note" type="annexNote"></xs:element>
			<xs:element name="title" type="annexTitle"></xs:element>
		</xs:choice>
		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind" use="required"></xs:attribute>
		<xs:attribute name="ipcLevel" type="ipcLevel"></xs:attribute>
		<xs:attribute name="toSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="endToSymbol" type="symbol"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="moveunstructured">
		<xs:annotation><xs:documentation><div>move an unstructured entry, i.e. change of scope</div></xs:documentation></xs:annotation>
		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind" use="required"></xs:attribute>
		<xs:attribute name="ipcLevel" type="ipcLevel"></xs:attribute>
		<xs:attribute name="toSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="endToSymbol" type="symbol"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="renumber">
		<xs:annotation>
			<xs:documentation>
				<div>renumber entry</div>
				<div>instruction for renumbering an interval of symbols</div>
				<div class="important">seldomly used, practically only before simplification and maybe in WG decisions</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"><xs:annotation><xs:documentation><div>renumber source interval start</div></xs:documentation></xs:annotation></xs:attribute>
		<xs:attribute name="endSymbol" type="emptyOrSymbol" default=""><xs:annotation><xs:documentation><div>renumber source interval end, optional</div></xs:documentation></xs:annotation></xs:attribute>
		<xs:attribute name="toSymbol" type="symbol" use="required"><xs:annotation><xs:documentation><div>renumber target interval start</div></xs:documentation></xs:annotation></xs:attribute>
		<xs:attribute name="endToSymbol" type="emptyOrSymbol" default=""><xs:annotation><xs:documentation><div>renumber target interval end, optional</div></xs:documentation></xs:annotation></xs:attribute>
	</xs:complexType>

	<xs:complexType name="priority">
		<xs:annotation><xs:documentation>change of priority number</xs:documentation></xs:annotation>
		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="priorityOrder" type="priorityOrder" use="required"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="deletenew">
		<xs:annotation>
			<xs:documentation>
				<div>delete new entry, undo operation</div>
				<div class="important">rarely used, may not appear in compilation files</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind"></xs:attribute>
	</xs:complexType>

	<xs:complexType name="undelete">
		<xs:annotation>
			<xs:documentation>
				<div>undelete entry, undo operation</div>
				<div class="important">rarely used, may not appear in compilation files</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind"></xs:attribute>
	</xs:complexType>
	<xs:complexType name="restore">
		<xs:annotation>
			<xs:documentation>
				<div>restore entry, undo operation</div>
				<div class="important">rarely used, may not appear in compilation files</div>
			</xs:documentation>
		</xs:annotation>

		<xs:attribute name="symbol" type="symbol" use="required"></xs:attribute>
		<xs:attribute name="endSymbol" type="symbol"></xs:attribute>
		<xs:attribute name="kind" type="ipcEntryKind"></xs:attribute>
	</xs:complexType>


	<xs:simpleType name="annexEntryType">
		<xs:annotation>
			<xs:documentation>
				<div>entry type, in reformed IPC: usually double purpose</div>
				<div>In prereform editions all three values were in use.</div>
				<div class="important">Values are different from simpleType entryType in ipcr_scheme</div>
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:NMTOKEN">
			<xs:enumeration value="i">
				<xs:annotation>
					<xs:documentation>indexing</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="c">
				<xs:annotation>
					<xs:documentation>classifying</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="d">
				<xs:annotation>
					<xs:documentation>double purpose</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>



	<xs:complexType name="annexTextBody">
		<xs:annotation>
			<!--
			<xs:documentation>
				<dl>
					<dt>renumberedFrom    CDATA    #IMPLIED</dt>
					<dd>ofEdition    CDATA    #IMPLIED</dd>
					<dd>ofSession    CDATA    #IMPLIED</dd>
					<dd>ofProject    CDATA    #IMPLIED</dd>
					<dd>source        CDATA    #IMPLIED</dd>
					<dd>diffCA        CDATA    #IMPLIED</dd>
					<dd>acceptanceLevel    CDATA    "O"</dd>
				</dl>
			</xs:documentation>
-->
			<xs:documentation>
				<div>text of a structured or non-structured entry</div>
				<!--
				<dl>
					<dd>one of note, index, deleted or title</dd>
					<dd>
						<b>note:</b> for kind='n'</dd>
					<dd>
						<b>index:</b> for kind='i'</dd>
					<dd>
						<b>deleted:</b> for kind='d'</dd>
					<dd>
						<b>title:</b> for all other cases, including guidance heading and subsection titles</dd>
				</dl>
				-->
			</xs:documentation>
		</xs:annotation>

		<xs:choice>
			<xs:element name="note" type="annexNote">
				<xs:annotation>
					<xs:documentation>
						<div>note: when kind='n'</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="index" type="annexIndex">
				<xs:annotation>
					<xs:documentation>
						<div>index: when kind='i'</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="deleted" type="deleted">
				<xs:annotation>
					<xs:documentation>
						<div>deleted: when kind='d', not used in simplified IPC after 20110101</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="title" type="annexTitle">
				<xs:annotation>
					<xs:documentation>
						<div>title: when structured, kind='g' (guidance heading), kind='t' (subsection title)</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:choice>
	</xs:complexType>



	<!--
	<xs:element name="test">
		<xs:complexType>
			<xs:choice>
				<xs:element name="test1">
					<xs:complexType mixed="true">
						<xs:attributeGroup ref="ipcEntryAttributes"/>
					</xs:complexType>
				</xs:element>
			</xs:choice>
			<xs:attribute name="hello" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	-->

	<xs:complexType name="annexNote">
		<xs:annotation>
			<xs:documentation>
				<div>non-structured element: note</div>
			</xs:documentation>
		</xs:annotation>
		<xs:sequence maxOccurs="unbounded">
			<xs:element name="noteParagraph" type="annexNoteParagraph">
				<xs:annotation>
					<xs:documentation>
						<div>paragraph of a note</div>
						<div>The following rules apply:</div>
						<ol>
							<li>usually numbered or number-less notes are the points of notes</li>
							<li>some notes (usually section notes) may contain Roman numbered notes</li>
							<li>when the noteParagraph is non-numbered, there is no further noteParagraph sibling</li>
						</ol>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="type" type="noteType" default="none">
			<xs:annotation>
				<xs:documentation>
					<div>type of prefix;<br/>
							e.g. Roman is like I,II,IV,<br/>
							Alpha: like A. (seldomly used)</div>
				</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="indent" type="indent">
			<xs:annotation>
				<xs:documentation>
					<div>indentation depth (if not automatic)<br/>
						obsolete in newer editions but appeared in prereform editions</div>
				</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>




	<xs:complexType name="annexNoteParagraph">
		<xs:annotation>
			<xs:documentation>
				<div>text of a single paragraph and its subparagraphs</div>
				<h3>Structure:</h3>
				<div>two independent cases:</div>
				<ul>
					<li>when parent note type is 'table' (during the reform: gradually moved to the definitions):<br/>
						<dl>
							<dt>references</dt>
							<dd>list of references</dd>
							<dt>text</dt>
							<dd>text associated to references</dd>
						</dl>
					</li>
					<li>when parent note type is not 'table': textual paragraph:<br/>
						<dl>
							<dt>text</dt>
							<dd>contains the text itself</dd>
							<dt>subnote</dt>
							<dd>sequence of subparagraphs</dd>
							<dt>orphan:</dt>
							<dd>a subparagraph that falls out of the subparagraph sequence (non-prefixed)</dd>
						</dl>
					</li>
				</ul>
			</xs:documentation>
		</xs:annotation>

		<xs:choice>
			<xs:sequence>
				<xs:element name="text" type="annexText">
					<xs:annotation>
						<xs:documentation>
							<div>text of the primary note paragraph, without prefix</div>
						
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="subnote" type="annexSubNote" minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							<div>subparagraph note</div>
							<ul>
								<li>may contain further subnotes</li>
								<li>subnotes should have a different type than their ancestor note or subnote</li>
							</ul>
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="orphan" type="annexOrphan" minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							<div>closes the sentence starting with the text and embedding the subnote-s</div>
						</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
			<xs:sequence>
				<xs:element name="references" type="annexReferences">
					<xs:annotation>
						<xs:documentation>in note reference tables: list of references in the left column</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="text" type="annexText">
					<xs:annotation>
						<xs:documentation><div>in note reference tables: text in the right column</div>
						
						</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:choice>
		<xs:attribute name="edition" type="annexEditionList">
			<xs:annotation>
				<xs:documentation>
					<div>each single paragraph may have an edition attribute, that may be different from the attribute of the embedding ipcEntry</div>
				</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>





	<xs:complexType name="annexOrphan">
		<xs:annotation>
			<xs:documentation>
				<div>out-of-sequence subparagraph closing a sentence and rarely opening a new subdivision</div>
			</xs:documentation>
		</xs:annotation>

		<xs:sequence>
			<xs:element name="text" type="annexText">
				<xs:annotation>
					<xs:documentation>
						<div>text of the orphan; never contains any prefix</div>
						<div>Usually closes the sentence started in th owning subnote.</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="subnote" type="annexSubNote" minOccurs="0">
				<xs:annotation>
					<xs:documentation>
						<div>subnote within an orphan<br/>
						when a new sequence of subparagraphs starts under the orphan;</div>
						<div class="important">There are very few notes that contain further subdivision of an orphan.</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="orphan" type="annexOrphan" minOccurs="0">
				<xs:annotation>
					<xs:documentation>
						<div>optional orphan, that closes the sentence started in the owning orphan</div>
						<div class="important">There are very few notes that contain orphan of an orphan.</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="indent" type="indent"/>
		<xs:attribute name="edition" type="annexEditionList">
			<xs:annotation>
				<xs:documentation>
					<div>an orphan may have an edition mark</div>
				</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="annexSubNote">
		<xs:annotation>
			<xs:documentation>
				<div>sequence of embedded noteParagraph-s</div>
			</xs:documentation>
		</xs:annotation>

		<xs:sequence maxOccurs="unbounded">
			<xs:element name="noteParagraph" type="annexNoteParagraph">
				<xs:annotation>
					<xs:documentation>
						<div>paragraphs of a subnote</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="type" default="none" type="subnoteType"/>
		<!--
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKEN">
					<xs:enumeration value="none"></xs:enumeration>
					<xs:enumeration value="table"></xs:enumeration>
					<xs:enumeration value="number"></xs:enumeration>
					<xs:enumeration value="Roman"></xs:enumeration>
					<xs:enumeration value="roman"></xs:enumeration>
					<xs:enumeration value="Alpha"></xs:enumeration>
					<xs:enumeration value="alpha"></xs:enumeration>
					<xs:enumeration value="bullet"></xs:enumeration>
				</xs:restriction>
		-->
		<xs:attribute name="indent" type="indent"></xs:attribute>
	</xs:complexType>


	<xs:complexType name="annexIndex">
		<xs:annotation>
			<xs:documentation>
				<div>body of indexes of a subclass, class and subsection</div>
			</xs:documentation>
		</xs:annotation>

		<xs:sequence maxOccurs="unbounded">
			<xs:element name="indexEntry" type="annexIndexEntry">
				<xs:annotation>
					<xs:documentation>
						<div>root index entry</div>
						<h3>Comment</h3>
						<div>root indexEntry-s are presented in the EN,FR languages in full capitals (but not necessarily in all languages)</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>


	<xs:complexType name="annexIndexEntry">
		<xs:annotation>
			<xs:documentation>
				<div>one paragraph of an index, containing a text and list of references</div>
				<h3>Comments</h3>
				<ul>
					<li>References should not be empty on the leaves.</li>
					<li>Embedding means also: deeper indentation level in presentation and subdivision of subject matter.</li>
					<li>List of IPC symbol intervals is not necessarily sequential; inner symbols may appear at a different indexEntry.</li>
				</ul>
			</xs:documentation>
		</xs:annotation>

		<xs:sequence>
			<xs:element name="text" type="annexText">
				<xs:annotation>
					<xs:documentation>
						<div>index entry title</div>
						<div>May contain underlined text or references (mostly in prereform editions).</div>
						<div>May contain references (mostly for residual groups in prereform editions).</div>
						<div>On level 0: capital letters in EN and FR.</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="references" type="annexReferences" minOccurs="0">
				<xs:annotation>
					<xs:documentation>list of references in indexEntry-s; if there are no sibling indexEntry-s, should not be empty</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="indexEntry" type="annexIndexEntry" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>
						<div>embedded indexEntry-s, whose subject matter falls under the containing indexEntry</div>
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>






	<xs:complexType name="annexTitle">
		<xs:annotation>
			<xs:documentation>
				<div>same as schemeTitle, since titles do not contain edition numbers</div>
			</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="schemeTitle"/>
		</xs:complexContent>
	</xs:complexType>



	<xs:complexType name="annexText" mixed="true">
		<xs:annotation>
			<xs:documentation>
				<div>same as schemeText</div>
			</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="schemeText"/>
		</xs:complexContent>
	</xs:complexType>



	<!--

	<xs:group name="annexTextContent">
		<xs:choice>
			<xs:element name="u" type="u"></xs:element>
			<xs:element name="sup" type="sup">
				<xs:annotation>
					<xs:documentation></xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="sub" type="sub">
				<xs:annotation>
					<xs:documentation></xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="img" type="img"></xs:element>
			<xs:element name="sref" type="sref">
				<xs:annotation>
					<xs:documentation></xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="mref" type="mref">
				<xs:annotation>
					<xs:documentation></xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="nbsp" type="nbsp"></xs:element>
			<xs:element name="llinkt" type="llinkt"></xs:element>
			<xs:element name="rlinkt" type="rlinkt"></xs:element>
			<xs:element name="larrow" type="larrow"></xs:element>
			<xs:element name="rarrow" type="rarrow"></xs:element>
			<xs:element name="llinkthree" type="llinkthree"></xs:element>
			<xs:element name="rlinkthree" type="rlinkthree"></xs:element>
			<xs:element name="symbol" type="symbolCharacter">
				<xs:annotation>
					<xs:documentation></xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="alpha" type="alpha"></xs:element>
			<xs:element name="beta" type="beta"></xs:element>
			<xs:element name="omega" type="omega"></xs:element>
			<xs:element name="ge" type="ge"></xs:element>
			<xs:element name="gt" type="gt"></xs:element>
			<xs:element name="le" type="le"></xs:element>
			<xs:element name="lt" type="lt"></xs:element>
			<xs:element name="dbond" type="dbond"></xs:element>
			<xs:element name="tbond" type="tbond"></xs:element>
			<xs:element name="regist" type="regist"></xs:element>
			<xs:element name="degree" type="degree"></xs:element>
			<xs:element name="tm" type="tm"></xs:element>
			<xs:element name="cr" type="cr"></xs:element>
			<xs:element name="oe" type="oe"></xs:element>
			<xs:element name="OE" type="OE"></xs:element>
			<xs:element name="emdash" type="emdash"></xs:element>
			<xs:element name="endash" type="endash"></xs:element>
		</xs:choice>
	</xs:group>
-->
	<xs:complexType name="annexReferences" mixed="true">
		<xs:annotation>
			<xs:documentation>same as schemeReferences</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="schemeReferences"/>
		</xs:complexContent>
	</xs:complexType>

	<xs:simpleType name="annexEditionList">
		<xs:annotation>
			<xs:documentation>
				<div>list of edition dates, 6 digit form (can be empty), may contain "new" as well</div>
				<div class="obsolete">Editions on and before 20070101 contain version indicators in different forms: list of prereform indicators with dates</div>
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="new"><xs:annotation><xs:documentation>new entry or note paragraph</xs:documentation></xs:annotation></xs:pattern>
			<xs:pattern value="c-mod"><xs:annotation><xs:documentation>considerably modified entry or note paragraph</xs:documentation></xs:annotation></xs:pattern>
			<xs:pattern value="m-mod"><xs:annotation><xs:documentation>modified note paragraph</xs:documentation></xs:annotation></xs:pattern>
			<xs:pattern value="chg"><xs:annotation><xs:documentation>modified note paragraph (legacy value in former compilation files)</xs:documentation></xs:annotation></xs:pattern>
			<xs:pattern value=""/>

			<xs:pattern value="(19|20)[0-9]{6}(,(19|20)[0-9]{6})?(,(19|20)[0-9]{6})?(,(19|20)[0-9]{6})?"/>
			<!-- <xs:pattern value="[0-9,moddelchg]+"/> -->
		</xs:restriction>
	</xs:simpleType>


	<xs:simpleType name="amendmentType">
		<xs:annotation><xs:documentation>
			<div>Type of the amendment.</div>
		</xs:documentation></xs:annotation>

		<xs:restriction base="xs:NMTOKEN">
			<xs:enumeration value="D">
				<xs:annotation>
					<xs:documentation>delete unstructured (note, index, etc.)</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="E">
				<xs:annotation>
					<xs:documentation>modify unstructured</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="N">
				<xs:annotation>
					<xs:documentation>new unstructured</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="M">
				<xs:annotation>
					<xs:documentation>move unstructured</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="m">
				<xs:annotation>
					<xs:documentation>modify structured entry</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="n">
				<xs:annotation>
					<xs:documentation>new structured entry</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="d">
				<xs:annotation>
					<xs:documentation>delete structured entry</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="u">
				<xs:annotation>
					<xs:documentation>unchanged entry<br/>used when text is changed only in one of the authentic languages</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="c">
				<xs:annotation>
					<xs:documentation>core-to-advanced,advanced-to-core<br/>used in reformed IPC before the simplification</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="e">
				<xs:annotation>
					<xs:documentation>entry type modification, e.g. entry becomes classifying</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="s">
				<xs:annotation>
					<xs:documentation>structure modification: adding or removal of 'dots', i.e. subdivision or merge of subject matter</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="p">
				<xs:annotation>
					<xs:documentation>change of priority</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="0">
				<xs:annotation>
					<xs:documentation>undo operation: restore, revoke modification<br/>used in annexes only</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="1">
				<xs:annotation>
					<xs:documentation>undo operation: undelete, revoke deletion<br/>used in annexes only to return to previous text</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="2">
				<xs:annotation>
					<xs:documentation>undo operation: delete new, revoke new entry<br/>used in annexes only</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>