Schema MARC21DOC.xsd


schema location:  MARC21DOC.xsd
 
Elements 
APPLYIF 
DESCRIPTION 
EX 
EXAMPLES 
FIELD 
IND1 
IND2 
ITEM 
MARCDOC 
NOTES 
OPTION 
P 
PSUBFIELD 
RELATED 
SEEEX 
SUBFIELD 
TABLE 
TD 
TR 
VOCABULARY 


element APPLYIF
diagram
children PSUBFIELD SUBFIELD
used by
element FIELD
attributes
Name  Type  Use  Default  Fixed  Annotation
condition  xs:string  required      
documentation 
A boolean expression. The contained elements will apply only when the condition is true (for instance, if record leader 7th character is s). It may refer the $content and $leader variables. These variables must be created by the stylesheet that is using this manual. The $content variable holds the content of the current field and the $leader variable holds the content of the record leader.
name  xs:string  required      
documentation 
The name of this conditional set of elements.
annotation
documentation 
A set of elements that will be considered only when a specified condition is met. The condition attribute may contain the variables $content and $leader. These variables must be created by the stylesheet using this manual. The $content variable contains the content of the current field and the $leader variable contains the content of the record leader. 
source
<xs:element name="APPLYIF">
  <xs:annotation>
    <xs:documentation>A set of elements that will be considered only when a specified condition is met. The condition attribute may contain the variables $content and $leader. These variables must be created by the stylesheet using this manual. The $content variable contains the content of the current field and the $leader variable contains the content of the record leader. </xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="PSUBFIELD" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="SUBFIELD" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="condition" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>A boolean expression. The contained elements will apply only when the condition is true (for instance, if record leader 7th character is s). It may refer the $content and $leader variables. These variables must be created by the stylesheet that is using this manual. The $content variable holds the content of the current field and the $leader variable holds the content of the record leader.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The name of this conditional set of elements.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element DESCRIPTION
diagram
children P
used by
elements FIELD IND1 IND2 ITEM OPTION PSUBFIELD RELATED SUBFIELD
annotation
documentation 
An element description.
source
<xs:element name="DESCRIPTION">
  <xs:annotation>
    <xs:documentation>An element description.</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="P"/>
    </xs:choice>
  </xs:complexType>
</xs:element>

element EX
diagram
children P
used by
element EXAMPLES
attributes
Name  Type  Use  Default  Fixed  Annotation
n  xs:string  required      
documentation 
Example reference number.
annotation
documentation 
An example.
source
<xs:element name="EX">
  <xs:annotation>
    <xs:documentation>An example.</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="P"/>
    </xs:choice>
    <xs:attribute name="n" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>Example reference number.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element EXAMPLES
diagram
children EX
used by
elements FIELD PSUBFIELD
annotation
documentation 
A set of examples.
source
<xs:element name="EXAMPLES">
  <xs:annotation>
    <xs:documentation>A set of examples.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="EX" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element FIELD
diagram
children DESCRIPTION IND1 IND2 APPLYIF SUBFIELD PSUBFIELD VOCABULARY EXAMPLES RELATED NOTES
used by
element MARCDOC
attributes
Name  Type  Use  Default  Fixed  Annotation
tag  xs:string  required      
documentation 
The field tag.
name  xs:string  required      
documentation 
The field name.
display-name  xs:string        
mandatory  xs:NMTOKEN  required      
documentation 
Is this field mandatory?
repeatable  xs:NMTOKEN  required      
documentation 
Is this field repeatable?
annotation
documentation 
A MARC field.
source
<xs:element name="FIELD">
  <xs:annotation>
    <xs:documentation>A MARC field.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="DESCRIPTION"/>
      <xs:element ref="IND1" minOccurs="0"/>
      <xs:element ref="IND2" minOccurs="0"/>
      <xs:element ref="APPLYIF" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="SUBFIELD" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="PSUBFIELD" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="VOCABULARY" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="EXAMPLES" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="RELATED" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="NOTES" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="tag" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The field tag.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The field name.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="display-name" type="xs:string"/>
    <xs:attribute name="mandatory" use="required">
      <xs:annotation>
        <xs:documentation>Is this field mandatory?</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="y"/>
          <xs:enumeration value="n"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="repeatable" use="required">
      <xs:annotation>
        <xs:documentation>Is this field repeatable?</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="y"/>
          <xs:enumeration value="n"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element IND1
diagram
children DESCRIPTION OPTION SEEEX
used by
element FIELD
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string        
documentation 
The indicator name.
annotation
documentation 
The first indicator of a field.
source
<xs:element name="IND1">
  <xs:annotation>
    <xs:documentation>The first indicator of a field.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="DESCRIPTION" minOccurs="0"/>
      <xs:element ref="OPTION" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="SEEEX" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string">
      <xs:annotation>
        <xs:documentation>The indicator name.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element IND2
diagram
children DESCRIPTION OPTION SEEEX
used by
element FIELD
attributes
Name  Type  Use  Default  Fixed  Annotation
name  xs:string        
documentation 
The indicator name.
annotation
documentation 
The second indicator of a field.
source
<xs:element name="IND2">
  <xs:annotation>
    <xs:documentation>The second indicator of a field.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="DESCRIPTION" minOccurs="0"/>
      <xs:element ref="OPTION" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="SEEEX" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="name" type="xs:string">
      <xs:annotation>
        <xs:documentation>The indicator name.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element ITEM
diagram
children DESCRIPTION SEEEX
used by
element VOCABULARY
attributes
Name  Type  Use  Default  Fixed  Annotation
code  xs:string  required      
documentation 
The coded value.
name  xs:string  required      
documentation 
The item name.
type  xs:NMTOKEN        
documentation 
The item type. It can have three types: normal, range and separator. Normal type applies to standard discreet codes (a, b, c, ...); range type is used to describe intervals (1-9, 000-999, ...); separator items can be used to add clarity to code lists, such as popups (and most probably will be discarded).
annotation
documentation 
A valid value to be used in a MARC record (in fields or subfields).
source
<xs:element name="ITEM">
  <xs:annotation>
    <xs:documentation>A valid value to be used in a MARC record (in fields or subfields).</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="DESCRIPTION"/>
      <xs:element ref="SEEEX" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="code" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The coded value.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The item name.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="type">
      <xs:annotation>
        <xs:documentation>The item type. It can have three types: normal, range and separator. Normal type applies to standard discreet codes (a, b, c, ...); range type is used to describe intervals (1-9, 000-999, ...); separator items can be used to add clarity to code lists, such as popups (and most probably will be discarded).</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="separator"/>
          <xs:enumeration value="normal"/>
          <xs:enumeration value="range"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element MARCDOC
diagram
children FIELD
annotation
documentation 
The manual document.
source
<xs:element name="MARCDOC">
  <xs:annotation>
    <xs:documentation>The manual document.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="FIELD" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element NOTES
diagram
children P SEEEX TABLE
used by
element FIELD
annotation
documentation 
Used to add aditional information about an element.
source
<xs:element name="NOTES">
  <xs:annotation>
    <xs:documentation>Used to add aditional information about an element.</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="P"/>
      <xs:element ref="SEEEX"/>
      <xs:element ref="TABLE"/>
    </xs:choice>
  </xs:complexType>
</xs:element>

element OPTION
diagram
children DESCRIPTION SEEEX
used by
elements IND1 IND2
attributes
Name  Type  Use  Default  Fixed  Annotation
value  xs:string        
documentation 
The option value.
name  xs:string        
documentation 
The option name.
type  xs:NMTOKEN        
documentation 
See ITEM type documentation.
annotation
documentation 
An acceptable indicator value.
source
<xs:element name="OPTION">
  <xs:annotation>
    <xs:documentation>An acceptable indicator value.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="DESCRIPTION" minOccurs="0"/>
      <xs:element ref="SEEEX" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="value" type="xs:string">
      <xs:annotation>
        <xs:documentation>The option value.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string">
      <xs:annotation>
        <xs:documentation>The option name.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="type">
      <xs:annotation>
        <xs:documentation>See ITEM type documentation.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="normal"/>
          <xs:enumeration value="range"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element P
diagram
type xs:string
used by
elements DESCRIPTION EX NOTES TD
annotation
documentation 
Documentation text.
source
<xs:element name="P" type="xs:string">
  <xs:annotation>
    <xs:documentation>Documentation text.</xs:documentation>
  </xs:annotation>
</xs:element>

element PSUBFIELD
diagram
children DESCRIPTION VOCABULARY EXAMPLES RELATED SEEEX
used by
elements APPLYIF FIELD SUBFIELD
attributes
Name  Type  Use  Default  Fixed  Annotation
n  xs:string  required      
documentation 
The sequence number.
name  xs:string  required      
documentation 
The subfield name, for display purposes.
display-name  xs:string        
start  xs:string  required      
documentation 
The start position (zero-based).
mandatory  xs:NMTOKEN  required      
documentation 
Is it mandatory?
repetitions  xs:string        
documentation 
Number of times it will be repeated.
end  xs:string  required      
documentation 
The end position (zero-based).
annotation
documentation 
A positional subfield or sub-subfield.
source
<xs:element name="PSUBFIELD">
  <xs:annotation>
    <xs:documentation>A positional subfield or sub-subfield.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="DESCRIPTION"/>
      <xs:element ref="VOCABULARY" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="EXAMPLES" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="RELATED" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="SEEEX" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="n" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The sequence number.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The subfield name, for display purposes.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="display-name" type="xs:string"/>
    <xs:attribute name="start" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The start position (zero-based).</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="mandatory" use="required">
      <xs:annotation>
        <xs:documentation>Is it mandatory?</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="y"/>
          <xs:enumeration value="n"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="repetitions" type="xs:string">
      <xs:annotation>
        <xs:documentation>Number of times it will be repeated.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="end" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The end position (zero-based).</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element RELATED
diagram
children DESCRIPTION
used by
elements FIELD PSUBFIELD
attributes
Name  Type  Use  Default  Fixed  Annotation
tag  xs:string  required      
documentation 
The related field tag.
name  xs:string  required      
documentation 
The related field name.
annotation
documentation 
Contains information about related fields or positional fields.
source
<xs:element name="RELATED">
  <xs:annotation>
    <xs:documentation>Contains information about related fields or positional fields.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="DESCRIPTION"/>
    </xs:sequence>
    <xs:attribute name="tag" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The related field tag.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The related field name.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element SEEEX
diagram
used by
elements IND1 IND2 ITEM NOTES OPTION PSUBFIELD SUBFIELD
attributes
Name  Type  Use  Default  Fixed  Annotation
N  xs:string  required      
documentation 
The number of the referenced example.
annotation
documentation 
Indicates an example of the current element.
source
<xs:element name="SEEEX">
  <xs:annotation>
    <xs:documentation>Indicates an example of the current element.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="N" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The number of the referenced example.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element SUBFIELD
diagram
children DESCRIPTION PSUBFIELD SEEEX VOCABULARY
used by
elements APPLYIF FIELD
attributes
Name  Type  Use  Default  Fixed  Annotation
tag  xs:string  required      
documentation 
The subfield code.
name  xs:string  required      
documentation 
The subfield name, for display-purposes.
display-name  xs:string        
mandatory  xs:NMTOKEN  required      
documentation 
Is the subfield mandatory?
repeatable  xs:NMTOKEN  required      
documentation 
Is the subfield repeatable?
annotation
documentation 
A MARC subfield.
source
<xs:element name="SUBFIELD">
  <xs:annotation>
    <xs:documentation>A MARC subfield.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="DESCRIPTION"/>
      <xs:element ref="PSUBFIELD" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="SEEEX" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="VOCABULARY" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="tag" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The subfield code.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The subfield name, for display-purposes.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="display-name" type="xs:string"/>
    <xs:attribute name="mandatory" use="required">
      <xs:annotation>
        <xs:documentation>Is the subfield mandatory?</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="y"/>
          <xs:enumeration value="n"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="repeatable" use="required">
      <xs:annotation>
        <xs:documentation>Is the subfield repeatable?</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="y"/>
          <xs:enumeration value="n"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

element TABLE
diagram
children TR
used by
element NOTES
attributes
Name  Type  Use  Default  Fixed  Annotation
CELLPADDING  xs:string        
CELLSPACING  xs:string        
BORDER  xs:string        
annotation
documentation 
Information laid down in tabular form (this is a simple subset of HTML tables).
source
<xs:element name="TABLE">
  <xs:annotation>
    <xs:documentation>Information laid down in tabular form (this is a simple subset of HTML tables).</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="TR" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="CELLPADDING" type="xs:string"/>
    <xs:attribute name="CELLSPACING" type="xs:string"/>
    <xs:attribute name="BORDER" type="xs:string"/>
  </xs:complexType>
</xs:element>

element TD
diagram
children P
used by
element TR
attributes
Name  Type  Use  Default  Fixed  Annotation
WIDTH  xs:string        
VALIGN  xs:string        
source
<xs:element name="TD">
  <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="P"/>
    </xs:choice>
    <xs:attribute name="WIDTH" type="xs:string"/>
    <xs:attribute name="VALIGN" type="xs:string"/>
  </xs:complexType>
</xs:element>

element TR
diagram
children TD
used by
element TABLE
source
<xs:element name="TR">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="TD" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element VOCABULARY
diagram
children ITEM
used by
elements FIELD PSUBFIELD SUBFIELD
attributes
Name  Type  Use  Default  Fixed  Annotation
type  xs:NMTOKEN  required      
documentation 
If local, the vocabulary is composed of the following items; otherwise, it's an external vocabulary document stored at the location pointed by src attribute (probably maintained by external agencies).
name  xs:string  required      
documentation 
The vocabulary name.
src  xs:string        
documentation 
The system vocabulary locator.
annotation
documentation 
A set of acceptable coded values.
source
<xs:element name="VOCABULARY">
  <xs:annotation>
    <xs:documentation>A set of acceptable coded values.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="ITEM" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
      <xs:annotation>
        <xs:documentation>If local, the vocabulary is composed of the following items; otherwise, it's an external vocabulary document stored at the location pointed by src attribute (probably maintained by external agencies).</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:NMTOKEN">
          <xs:enumeration value="local"/>
          <xs:enumeration value="system"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>The vocabulary name.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="src" type="xs:string">
      <xs:annotation>
        <xs:documentation>The system vocabulary locator.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>


XML Schema documentation generated with
XML Spy Schema Editor http://www.altova.com/xmlspy