nexml schema 1.0 ~/nexml/xsd/nexml.xsd

Skip to: Site menu | Main content

The future data exchange standard is here!

nexml is an exchange standard for representing phylogenetic data — inspired by the commonly used NEXUS format, but more robust and easier to process.

Validate nexml data

Schema module documentation

~ / nexml / html / doc / schema-1 / nexml
rss | digg reddit del.icio.us facebook | Wed Aug 20 22:40:50 2008 —

Description

This module constitutes in effect the 'main' class of the nexml schema. It defines the complex type for the root <nex:nexml> element and a simple type for the schema "version" attribute of the root element. In addition, this module includes the main schema modules for OTUs, characters, trees and metadata. The data type definitions in these included schema modules are then used to define element instances in the child substructures of the <nex:nexml> root element.

Other views (open in new window):

Complex types

Nexml

Description

The root element for nexml.

Inheritance

Nexml extends Annotated.

Attributes
Name Type Usage
version Nexml1_0 required
generator xs:string optional
Substructures
Definition source
  <xs:complexType name="Nexml">
    <xs:complexContent>
      <xs:extension base="Annotated">
        <xs:sequence maxOccurs="unbounded" minOccurs="0">
          <xs:element maxOccurs="unbounded" minOccurs="1" name="otus" type="Taxa"/>
          <xs:sequence maxOccurs="unbounded" minOccurs="0">
            <xs:choice>
              <xs:element maxOccurs="unbounded" minOccurs="0" name="characters" type="AbstractBlock"/>
              <xs:element maxOccurs="unbounded" minOccurs="0" name="trees" type="Trees">
                <xs:key name="tree">
                  <xs:selector xpath="./tree"/>
                  <xs:field xpath="@id"/>
                </xs:key>
              </xs:element>
            </xs:choice>
          </xs:sequence>
        </xs:sequence>
        <xs:attribute name="version" type="Nexml1_0" use="required"/>
        <xs:attribute name="generator" type="xs:string" use="optional"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

Simple types

Nexml1_0

Description

This simple type is the fixed version value, which in this iteration must be constrained to 1.0 (and will be incremented in future versions).

Inheritance

Nexml1_0 restricts xs:decimal.

Facets
Type Value
pattern 1\.0
Definition source
  <xs:simpleType name="Nexml1_0">
    <xs:restriction base="xs:decimal">
      <xs:pattern value="1\.0"/>
    </xs:restriction>
  </xs:simpleType>

See also

~/nexml/xsd/nexml.xsd includes the following other files:

This page summarizes the contents of schema file "~/nexml/xsd/nexml.xsd" as of revision 596. That schema file was last modified by rvos on 2008-05-20 14:48:49 -0400 (Tue, 20 May 2008), and this HTML summary page was generated on Wed Aug 20 22:40:50 2008.