<?xml version="1.0" encoding="utf-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://www.tei-c.org/ns/1.0">
  <!--
Schema generated from ODD source 2010-11-05T15:38:46Z. 
Edition: 1.8.0. Last updated on November 5th 2010.
Edition Location: http://www.tei-c.org/Vault/P5/1.8.0/

-->
  <!--
	       
This template file is freely available and you are
	       hereby authorised to copy, modify, and redistribute it in
	       any way without further reference or permissions.
	       
When making such modifications, you are strongly
	       recommended to change the present text to include an
	       accurate statement of the licencing conditions applicable
	       to your modified text.
	     -->
  <define name="macro.limitedContent">
    <zeroOrMore xmlns:rng="http://relaxng.org/ns/structure/1.0">
      <choice>
        <text/>
        <ref name="model.limitedPhrase"/>
        <ref name="model.inter"/>
      </choice>
    </zeroOrMore>
  </define>
  <define name="macro.xtext">
    <zeroOrMore xmlns:rng="http://relaxng.org/ns/structure/1.0">
      <choice>
        <text/>
        <ref name="model.gLike"/>
      </choice>
    </zeroOrMore>
  </define>
  <define name="macro.anyXML">
    <element>
      <anyName>
        <except>
          <nsName ns="http://www.tei-c.org/ns/1.0"/>
          <name ns="http://www.tei-c.org/ns/Examples">egXML</name>
        </except>
      </anyName>
      <zeroOrMore xmlns:s="http://www.ascc.net/xml/schematron" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <attribute>
          <anyName/>
        </attribute>
      </zeroOrMore>
      <zeroOrMore xmlns:s="http://www.ascc.net/xml/schematron" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <choice>
          <text/>
          <ref name="macro.anyXML"/>
        </choice>
      </zeroOrMore>
    </element>
  </define>
  <define name="model.global.meta">
    <choice>
      <ref name="fs"/>
      <ref name="fLib"/>
      <ref name="fvLib"/>
    </choice>
  </define>
  <define name="model.global.meta_alternation">
    <choice>
      <ref name="fs"/>
      <ref name="fLib"/>
      <ref name="fvLib"/>
    </choice>
  </define>
  <define name="model.global.meta_sequence">
    <ref name="fs"/>
    <ref name="fLib"/>
    <ref name="fvLib"/>
  </define>
  <define name="model.global.meta_sequenceOptional">
    <optional>
      <ref name="fs"/>
    </optional>
    <optional>
      <ref name="fLib"/>
    </optional>
    <optional>
      <ref name="fvLib"/>
    </optional>
  </define>
  <define name="model.global.meta_sequenceOptionalRepeatable">
    <zeroOrMore>
      <ref name="fs"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="fLib"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="fvLib"/>
    </zeroOrMore>
  </define>
  <define name="model.global.meta_sequenceRepeatable">
    <oneOrMore>
      <ref name="fs"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="fLib"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="fvLib"/>
    </oneOrMore>
  </define>
  <define name="model.gLike">
    <notAllowed/>
  </define>
  <define name="model.featureVal.complex">
    <choice>
      <ref name="fs"/>
      <ref name="vColl"/>
      <ref name="vNot"/>
      <ref name="vMerge"/>
    </choice>
  </define>
  <define name="model.featureVal.complex_alternation">
    <choice>
      <ref name="fs"/>
      <ref name="vColl"/>
      <ref name="vNot"/>
      <ref name="vMerge"/>
    </choice>
  </define>
  <define name="model.featureVal.complex_sequence">
    <ref name="fs"/>
    <ref name="vColl"/>
    <ref name="vNot"/>
    <ref name="vMerge"/>
  </define>
  <define name="model.featureVal.complex_sequenceOptional">
    <optional>
      <ref name="fs"/>
    </optional>
    <optional>
      <ref name="vColl"/>
    </optional>
    <optional>
      <ref name="vNot"/>
    </optional>
    <optional>
      <ref name="vMerge"/>
    </optional>
  </define>
  <define name="model.featureVal.complex_sequenceOptionalRepeatable">
    <zeroOrMore>
      <ref name="fs"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="vColl"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="vNot"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="vMerge"/>
    </zeroOrMore>
  </define>
  <define name="model.featureVal.complex_sequenceRepeatable">
    <oneOrMore>
      <ref name="fs"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="vColl"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="vNot"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="vMerge"/>
    </oneOrMore>
  </define>
  <define name="model.featureVal.single">
    <choice>
      <ref name="binary"/>
      <ref name="symbol"/>
      <ref name="numeric"/>
      <ref name="string"/>
      <ref name="vLabel"/>
      <ref name="default"/>
      <ref name="vAlt"/>
    </choice>
  </define>
  <define name="model.featureVal.single_alternation">
    <choice>
      <ref name="binary"/>
      <ref name="symbol"/>
      <ref name="numeric"/>
      <ref name="string"/>
      <ref name="vLabel"/>
      <ref name="default"/>
      <ref name="vAlt"/>
    </choice>
  </define>
  <define name="model.featureVal.single_sequence">
    <ref name="binary"/>
    <ref name="symbol"/>
    <ref name="numeric"/>
    <ref name="string"/>
    <ref name="vLabel"/>
    <ref name="default"/>
    <ref name="vAlt"/>
  </define>
  <define name="model.featureVal.single_sequenceOptional">
    <optional>
      <ref name="binary"/>
    </optional>
    <optional>
      <ref name="symbol"/>
    </optional>
    <optional>
      <ref name="numeric"/>
    </optional>
    <optional>
      <ref name="string"/>
    </optional>
    <optional>
      <ref name="vLabel"/>
    </optional>
    <optional>
      <ref name="default"/>
    </optional>
    <optional>
      <ref name="vAlt"/>
    </optional>
  </define>
  <define name="model.featureVal.single_sequenceOptionalRepeatable">
    <zeroOrMore>
      <ref name="binary"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="symbol"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="numeric"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="string"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="vLabel"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="default"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="vAlt"/>
    </zeroOrMore>
  </define>
  <define name="model.featureVal.single_sequenceRepeatable">
    <oneOrMore>
      <ref name="binary"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="symbol"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="numeric"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="string"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="vLabel"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="default"/>
    </oneOrMore>
    <oneOrMore>
      <ref name="vAlt"/>
    </oneOrMore>
  </define>
  <define name="model.divPart">
    <notAllowed/>
  </define>
  <define name="model.divPart_alternation">
    <notAllowed/>
  </define>
  <define name="model.divPart_sequence">
    <empty/>
  </define>
  <define name="model.divPart_sequenceOptional">
    <empty/>
  </define>
  <define name="model.divPart_sequenceOptionalRepeatable">
    <empty/>
  </define>
  <define name="model.divPart_sequenceRepeatable">
    <notAllowed/>
  </define>
  <define name="model.featureVal">
    <choice>
      <ref name="model.featureVal.complex"/>
      <ref name="model.featureVal.single"/>
    </choice>
  </define>
  <define name="model.inter">
    <notAllowed/>
  </define>
  <define name="model.inter_alternation">
    <notAllowed/>
  </define>
  <define name="model.inter_sequence">
    <empty/>
  </define>
  <define name="model.inter_sequenceOptional">
    <empty/>
  </define>
  <define name="model.inter_sequenceOptionalRepeatable">
    <empty/>
  </define>
  <define name="model.inter_sequenceRepeatable">
    <notAllowed/>
  </define>
  <define name="model.limitedPhrase">
    <notAllowed/>
  </define>
  <define name="fsdDecl">
    <element name="fsdDecl">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature system declaration) provides a feature system declaration comprising one or more
  feature structure declarations or feature structure declaration links.</a:documentation>
      <oneOrMore>
        <choice xmlns:rng="http://relaxng.org/ns/structure/1.0">
          <ref name="fsDecl"/>
          <ref name="fsdLink"/>
        </choice>
      </oneOrMore>
      <empty/>
    </element>
  </define>
  <define name="fsDecl">
    <element name="fsDecl">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature structure declaration) declares one type of feature structure.</a:documentation>
      <group xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <optional>
          <ref name="fsDescr"/>
        </optional>
        <oneOrMore>
          <ref name="fDecl"/>
        </oneOrMore>
        <optional>
          <ref name="fsConstraints"/>
        </optional>
      </group>
      <attribute name="type">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">gives a name for the type of feature structure being declared.</a:documentation>
        <data type="Name"/>
      </attribute>
      <optional>
        <attribute name="baseTypes">
          <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">gives the name of one or more typed feature structures
	from which this type inherits feature specifications and
	constraints; 	
	if this type includes a feature specification
	with the same name as that of any of those specified by this
	attribute, or if more than one specification of the same name
	is inherited, then the set of possible values is defined by
	unification. Similarly, the set of constraints applicable is
	derived by combining those specified explicitly within this
	element with those implied by the baseTypes
	attribute. When no baseTypes attribute is specified, no
	feature specification or constraint is inherited.
 
      </a:documentation>
          <list>
            <data type="Name"/>
            <zeroOrMore>
              <data type="Name"/>
            </zeroOrMore>
          </list>
        </attribute>
      </optional>
      <empty/>
    </element>
  </define>
  <define name="fsDescr">
    <element name="fsDescr">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature system description (in FSD)) describes in prose what is represented by the type of feature
structure declared in the enclosing fsDecl.</a:documentation>
      <ref name="macro.limitedContent"/>
      <empty/>
    </element>
  </define>
  <define name="fsdLink">
    <element name="fsdLink">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature structure declaration link) associates the name of a typed feature structure with a feature
structure declaration for it.</a:documentation>
      <empty/>
      <attribute name="type">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">identifies the type of feature structure to be documented;
      this will be the value of the type attribute on at least one
feature structure.</a:documentation>
        <data type="Name"/>
      </attribute>
      <attribute name="target">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">supplies a pointer to a feature structure declaration
      (fsDecl) element within the current document or elsewhere. </a:documentation>
        <data type="anyURI"/>
      </attribute>
      <empty/>
    </element>
  </define>
  <define name="fDecl">
    <element name="fDecl">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature declaration) declares a single feature, specifying its name, organization,
range of allowed values, and optionally its default value.</a:documentation>
      <group xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <optional>
          <ref name="fDescr"/>
        </optional>
        <ref name="vRange"/>
        <optional>
          <ref name="vDefault"/>
        </optional>
      </group>
      <attribute name="name">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates the name of the feature being declared; matches the
name attribute of f elements in the text.</a:documentation>
        <data type="Name"/>
      </attribute>
      <optional>
        <attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" name="optional" a:defaultValue="true">
          <a:documentation>indicates whether or not the value of this feature may
	be present.</a:documentation>
          <data type="boolean"/>
        </attribute>
      </optional>
      <empty/>
    </element>
  </define>
  <define name="fDescr">
    <element name="fDescr">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature description (in FSD)) describes in prose what is represented by the feature being
declared and its values.</a:documentation>
      <ref name="macro.limitedContent"/>
      <empty/>
    </element>
  </define>
  <define name="vRange">
    <element name="vRange">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(value range) defines the range of allowed values for a feature, in the form of
an fs, vAlt, or primitive value;
for the value of an f to be valid, it must be
subsumed by the specified range; if the f
contains multiple values (as sanctioned by the org attribute),
then each value must be subsumed by the vRange.</a:documentation>
      <ref name="model.featureVal"/>
      <empty/>
    </element>
  </define>
  <define name="vDefault">
    <element name="vDefault">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(value default) declares the default value to be supplied when a feature structure
does not contain an instance of f for this name; if
unconditional, it is specified as one (or, depending on the value of
the org attribute of the enclosing fDecl) more
fs elements or primitive values;
if conditional, it is specified as
one or more if elements; if no default is specified, or no
condition matches, the value none is assumed.</a:documentation>
      <choice xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <oneOrMore>
          <ref name="model.featureVal"/>
        </oneOrMore>
        <oneOrMore>
          <ref name="if"/>
        </oneOrMore>
      </choice>
      <empty/>
    </element>
  </define>
  <define name="if">
    <element name="if">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">defines a conditional default value for a feature; the condition
is specified as a feature structure, and is met if it
subsumes the feature structure in the text for which a
default value is sought.</a:documentation>
      <group xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <choice>
          <ref name="fs"/>
          <ref name="f"/>
        </choice>
        <ref name="then"/>
        <group>
          <ref name="model.featureVal"/>
        </group>
      </group>
      <empty/>
    </element>
  </define>
  <define name="then">
    <element name="then">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">separates the condition from the default in an if, or
the antecedent and the consequent in a cond element.</a:documentation>
      <empty/>
      <empty/>
    </element>
  </define>
  <define name="fsConstraints">
    <element name="fsConstraints">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature-structure constraints) specifies constraints on the content of valid feature
structures.</a:documentation>
      <zeroOrMore xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <choice>
          <ref name="cond"/>
          <ref name="bicond"/>
        </choice>
      </zeroOrMore>
      <empty/>
    </element>
  </define>
  <define name="cond">
    <element name="cond">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(conditional feature-structure constraint) defines a conditional feature-structure constraint; the consequent
and the antecedent are specified as feature structures or
feature-structure collections; the constraint is satisfied if both the
antecedent and the consequent subsume a given feature
structure, or if the antecedent does not.</a:documentation>
      <group xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <choice>
          <ref name="fs"/>
          <ref name="f"/>
        </choice>
        <ref name="then"/>
        <choice>
          <ref name="fs"/>
          <ref name="f"/>
        </choice>
      </group>
      <empty/>
    </element>
  </define>
  <define name="bicond">
    <element name="bicond">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(bi-conditional feature-structure constraint) defines a biconditional feature-structure constraint; both
consequent and antecedent are specified as feature structures or groups
of feature structures; the constraint is satisfied if both
subsume a given feature structure, or if both do not.</a:documentation>
      <group xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <choice>
          <ref name="fs"/>
          <ref name="f"/>
        </choice>
        <ref name="iff"/>
        <choice>
          <ref name="fs"/>
          <ref name="f"/>
        </choice>
      </group>
      <empty/>
    </element>
  </define>
  <define name="iff">
    <element name="iff">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(if and only if) separates the condition from the consequence in a bicond
element.</a:documentation>
      <empty/>
      <empty/>
    </element>
  </define>
  <define name="fs">
    <element name="fs">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature structure) represents a feature structure, that is, a
  collection of feature-value pairs organized as a
structural unit.</a:documentation>
      <zeroOrMore xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <ref name="f"/>
      </zeroOrMore>
      <optional>
        <attribute name="type">
          <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies the type of the feature structure.</a:documentation>
          <data type="Name"/>
        </attribute>
      </optional>
      <optional>
        <attribute name="feats">
          <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(features) references the feature-value specifications making up this feature structure.</a:documentation>
          <list>
            <data type="anyURI"/>
            <zeroOrMore>
              <data type="anyURI"/>
            </zeroOrMore>
          </list>
        </attribute>
      </optional>
      <empty/>
    </element>
  </define>
  <define name="f">
    <element name="f">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature) represents a feature value specification, that
  is, the association of a name with a value of any of several different types.</a:documentation>
      <zeroOrMore xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <choice>
          <text/>
          <ref name="model.gLike"/>
          <ref name="model.featureVal"/>
        </choice>
      </zeroOrMore>
      <pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="f-constraint-fValConstraints">
        <rule xmlns:rng="http://relaxng.org/ns/structure/1.0" context="tei:fVal">
          <assert test="not(tei:* and text)"> A feature value cannot
    contain both text and element content</assert>
        </rule>
      </pattern>
      <pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="f-constraint-fValConstraints">
        <rule xmlns:rng="http://relaxng.org/ns/structure/1.0" context="tei:fVal">
          <report test="count(tei:*)&gt;1"> A feature value can contain
    only one child element</report>
        </rule>
      </pattern>
      <attribute name="name">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">provides a name for the feature.</a:documentation>
        <data type="Name"/>
      </attribute>
      <optional>
        <attribute name="fVal">
          <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature value) references any element which can be used to represent the
  value of a feature.</a:documentation>
          <data type="anyURI"/>
        </attribute>
      </optional>
      <empty/>
    </element>
  </define>
  <define name="binary">
    <element name="binary">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(binary value) represents the value part of a feature-value specification which can contain either
  of exactly two possible values.</a:documentation>
      <empty/>
      <attribute name="value">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">supplies a binary value.</a:documentation>
        <data type="boolean"/>
      </attribute>
      <empty/>
    </element>
  </define>
  <define name="symbol">
    <element name="symbol">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(symbolic value) represents the value part of a feature-value specification
  which contains one of a finite list of symbols.</a:documentation>
      <empty/>
      <attribute name="value">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">supplies the symbolic value for the feature, one of a finite list that
may be specified in a feature declaration.</a:documentation>
        <data type="token">
          <param name="pattern">(\p{L}|\p{N}|\p{P}|\p{S})+</param>
        </data>
      </attribute>
      <empty/>
    </element>
  </define>
  <define name="numeric">
    <element name="numeric">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(numeric value) represents the value part of a feature-value specification
  which contains a numeric value or range.</a:documentation>
      <empty/>
      <attribute name="value">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">supplies a lower bound for the numeric value represented,
      and also (if max is not supplied) its upper bound.</a:documentation>
        <choice xmlns:rng="http://relaxng.org/ns/structure/1.0">
          <data type="double"/>
          <data type="token">
            <param name="pattern">(\-?[\d]+/\-?[\d]+)</param>
          </data>
          <data type="decimal"/>
        </choice>
      </attribute>
      <optional>
        <attribute name="max">
          <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">supplies an upper bound for the numeric value represented.</a:documentation>
          <choice xmlns:rng="http://relaxng.org/ns/structure/1.0">
            <data type="double"/>
            <data type="token">
              <param name="pattern">(\-?[\d]+/\-?[\d]+)</param>
            </data>
            <data type="decimal"/>
          </choice>
        </attribute>
      </optional>
      <optional>
        <attribute name="trunc">
          <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies whether the value represented should be
	  truncated to give an integer value.</a:documentation>
          <data type="boolean"/>
        </attribute>
      </optional>
      <empty/>
    </element>
  </define>
  <define name="string">
    <element name="string">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(string value) represents the value part of a feature-value specification
  which contains a string.</a:documentation>
      <ref name="macro.xtext"/>
      <empty/>
    </element>
  </define>
  <define name="vLabel">
    <element name="vLabel">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(value label) represents the value part of a feature-value specification
  which appears at more than one point in a feature structure.</a:documentation>
      <optional>
        <ref name="model.featureVal"/>
      </optional>
      <attribute name="name">
        <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">supplies a name for the sharing point.</a:documentation>
        <data type="token">
          <param name="pattern">(\p{L}|\p{N}|\p{P}|\p{S})+</param>
        </data>
      </attribute>
      <empty/>
    </element>
  </define>
  <define name="vColl">
    <element name="vColl">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(collection of values) represents the value part of a feature-value specification
  which contains multiple values organized as a set, bag, or list.</a:documentation>
      <group xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <zeroOrMore>
          <choice>
            <ref name="fs"/>
            <ref name="model.featureVal.single"/>
          </choice>
        </zeroOrMore>
      </group>
      <optional>
        <attribute name="org">
          <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(organization) indicates organization of given value or values as  set, bag or list.</a:documentation>
          <choice>
            <value>set</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates that the given values are organized as a set.
   </a:documentation>
            <value>bag</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates that the given values are organized as a
bag (multiset).
   </a:documentation>
            <value>list</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates that the given values are organized as a
list.</a:documentation>
          </choice>
        </attribute>
      </optional>
      <empty/>
    </element>
  </define>
  <define name="default">
    <element name="default">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(default feature value) represents the value part of a feature-value specification
  which contains a defaulted value.</a:documentation>
      <empty/>
      <empty/>
    </element>
  </define>
  <define name="vAlt">
    <element name="vAlt">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(value alternation) represents the value part of a feature-value specification
  which contains a set of values, only one of which can be valid.</a:documentation>
      <group xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <group>
          <ref name="model.featureVal"/>
        </group>
        <oneOrMore>
          <ref name="model.featureVal"/>
        </oneOrMore>
      </group>
      <empty/>
    </element>
  </define>
  <define name="vNot">
    <element name="vNot">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(value negation) represents a feature value which is the negation of its content.</a:documentation>
      <group xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <ref name="model.featureVal"/>
      </group>
      <empty/>
    </element>
  </define>
  <define name="vMerge">
    <element name="vMerge">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(merged collection of values) represents a feature value which is the result of merging
  together the feature values contained by its children, using the organization
  specified by the org attribute.</a:documentation>
      <oneOrMore>
        <ref name="model.featureVal"/>
      </oneOrMore>
      <optional>
        <attribute name="org">
          <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates the organization of the resulting merged values as  set, bag or list.</a:documentation>
          <choice>
            <value>set</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates that the resulting values are organized as a set.</a:documentation>
            <value>bag</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates that the resulting values are organized as a bag (multiset).
   </a:documentation>
            <value>list</value>
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates that the resulting values are organized as a list.</a:documentation>
          </choice>
        </attribute>
      </optional>
      <empty/>
    </element>
  </define>
  <define name="fLib">
    <element name="fLib">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature library) assembles a library of feature elements.</a:documentation>
      <oneOrMore>
        <ref name="f"/>
      </oneOrMore>
      <empty/>
    </element>
  </define>
  <define name="fvLib">
    <element name="fvLib">
      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(feature-value library) assembles a library of reusable feature value elements
  (including complete feature structures).</a:documentation>
      <zeroOrMore xmlns:rng="http://relaxng.org/ns/structure/1.0">
        <ref name="model.featureVal"/>
      </zeroOrMore>
      <empty/>
    </element>
  </define>
  <start>
    <choice>
      <ref name="fs"/>
      <ref name="fvLib"/>
      <ref name="fLib"/>
    </choice>
  </start>
</grammar>
