<

XML Schema Documentation

Schema Document Properties

Target Namespace
http://www.EcoInvent.org/EcoSpold01
Version
1.1
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition
  • This schema includes components from the following schema document(s):
    • EcoSpold01DataTypes.xsd
    • EcoSpold01MetaInformation.xsd
    • EcoSpold01FlowData.xsd
Documentation

Application Data

<internalSchemaVersion>
1.0
</internalSchemaVersion>


Declared Namespaces:

Prefix
Namespace
Default namespace
http://www.EcoInvent.org/EcoSpold01
xml
http://www.w3.org/XML/1998/namespace
xsd
http://www.w3.org/2001/XMLSchema
es
http://www.EcoInvent.org/EcoSpold01

Schema Component Representation

<xsd:schema targetNamespace="http://www.EcoInvent.org/EcoSpold01" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1">
   <xsd:include schemaLocation="EcoSpold01DataTypes.xsd"/>
   <xsd:include schemaLocation="EcoSpold01MetaInformation.xsd"/>
   <xsd:include schemaLocation="EcoSpold01FlowData.xsd"/>
...
</xsd:schema>

Elements

Element: ecoSpold

Type
es:TEcoSpold
Documentation

XML Instance Representation

<ecoSpold> es:TEcoSpold
   <!--
    Uniqueness Constraint - pkIndexNumber
    Selector - es:dataset
    Field(s) - @number
   -->
</ecoSpold>

Schema Component Representation

<xsd:element name="ecoSpold" type="es:TEcoSpold">
   <xsd:unique name="pkIndexNumber">
      <xsd:selector xpath="es:dataset"/>
      <xsd:field xpath="@number"/>
   </xsd:unique>
</xsd:element>

Complex Types

Complex Type: TAdministrativeInformation

Documentation

XML Instance Representation

<...>
   <dataEntryBy> es:TDataEntryBy </dataEntryBy> [1] 
   <dataGeneratorAndPublication> es:TDataGeneratorAndPublication </dataGeneratorAndPublication> [1] 
   <person> es:TPerson </person> [1..*] 
   Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
</...>

Schema Component Representation

<xsd:complexType name="TAdministrativeInformation">
   <xsd:sequence>
      <xsd:element name="dataEntryBy" type="es:TDataEntryBy"/>
      <xsd:element name="dataGeneratorAndPublication" type="es:TDataGeneratorAndPublication"/>
      <xsd:element name="person" type="es:TPerson" maxOccurs="unbounded"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
   </xsd:sequence>
</xsd:complexType>

Complex Type: TDataset

Documentation

XML Instance Representation

<...
 number="es:TIndexNumber" [1]
 internalSchemaVersion="xsd:string" [0..1]
 generator="es:TString255" [1]
 timestamp="xsd:dateTime" [1]
 validCompanyCodes="xsd:string" [0..1]
 validRegionalCodes="xsd:string" [0..1]
 validCategories="xsd:string" [0..1]
 validUnits="xsd:string" [0..1]
>
   <metaInformation> es:TMetaInformation </metaInformation> [1] 
   <flowData> es:TFlowData </flowData> [1..*] 
   Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
</...>

Schema Component Representation

<xsd:complexType name="TDataset">
   <xsd:sequence>
      <xsd:element name="metaInformation" type="es:TMetaInformation"/>
      <xsd:element name="flowData" type="es:TFlowData" maxOccurs="unbounded"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
   </xsd:sequence>
   <xsd:attribute name="number" type="es:TIndexNumber" use="required"/>
   <xsd:attribute name="internalSchemaVersion" type="xsd:string" use="optional"/>
   <xsd:attribute name="generator" type="es:TString255" use="required"/>
   <xsd:attribute name="timestamp" type="xsd:dateTime" use="required"/>
   <xsd:attribute name="validCompanyCodes" type="xsd:string" use="optional"/>
   <xsd:attribute name="validRegionalCodes" type="xsd:string" use="optional"/>
   <xsd:attribute name="validCategories" type="xsd:string" use="optional"/>
   <xsd:attribute name="validUnits" type="xsd:string" use="optional"/>
</xsd:complexType>

Complex Type: TEcoSpold

Documentation

XML Instance Representation

<...
 validationId="xsd:integer" [0..1]
 validationStatus="xsd:string" [0..1]
>
   <dataset> es:TDataset
      <!--
       Uniqueness Constraint - pkPersonNumber
       Selector - es:metaInformation/es:administrativeInformation/es:person
       Field(s) - @number
      -->
      <!--
       Uniqueness Constraint - pkSourceNumber
       Selector - es:metaInformation/es:modellingAndValidation/es:source
       Field(s) - @number
      -->
      <!--
       Uniqueness Constraint - pkExchangeNumber
       Selector - es:flowData/es:exchange
       Field(s) - @number
      -->
      <!--
       Key Reference Constraint - fkDataEntryByPerson
       Selector - es:metaInformation/es:administrativeInformation/es:dataEntryBy
       Field(s) - @person
       Refers to - pkPersonNumber
      -->
      <!--
       Key Reference Constraint - fkDataGenerationAndPublication
       Selector - es:metaInformation/es:administrativeInformation/es:dataGeneratorAndPublication
       Field(s) - @person
       Refers to - pkPersonNumber
      -->
      <!--
       Key Reference Constraint - fkDataGenerationAndPublicationSource
       Selector - es:metaInformation/es:administrativeInformation/es:dataGeneratorAndPublication
       Field(s) - @referenceToPublishedSource
       Refers to - pkSourceNumber
      -->
      <!--
       Key Reference Constraint - fkAllocationExchange
       Selector - es:flowData/es:allocation
       Field(s) - @referenceToCoProduct
       Refers to - pkExchangeNumber
      -->
      <!--
       Key Reference Constraint - fkAllocationExchangeInOut
       Selector - es:flowData/es:allocation/es:referenceToInputOutput
       Field(s) - .
       Refers to - pkExchangeNumber
      -->
      <!--
       Key Reference Constraint - fkValidationPerson
       Selector - es:metaInformation/es:modellingAndValidation/es:validation
       Field(s) - @proofReadingValidator
       Refers to - pkPersonNumber
      -->
      <!--
       Key Reference Constraint - fkExchangeSource
       Selector - es:flowData/es:exchange
       Field(s) - @referenceToSource
       Refers to - pkSourceNumber
      -->
   </dataset> [1..*] 
   Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
</...>

Schema Component Representation

<xsd:complexType name="TEcoSpold">
   <xsd:sequence>
      <xsd:element name="dataset" type="es:TDataset" maxOccurs="unbounded">
         <xsd:unique name="pkPersonNumber">
            <xsd:selector xpath="es:metaInformation/es:administrativeInformation/es:person"/>
            <xsd:field xpath="@number"/>
         </xsd:unique>
         <xsd:unique name="pkSourceNumber">
            <xsd:selector xpath="es:metaInformation/es:modellingAndValidation/es:source"/>
            <xsd:field xpath="@number"/>
         </xsd:unique>
         <xsd:unique name="pkExchangeNumber">
            <xsd:selector xpath="es:flowData/es:exchange"/>
            <xsd:field xpath="@number"/>
         </xsd:unique>
         <xsd:keyref name="fkDataEntryByPerson" refer="pkPersonNumber">
            <xsd:selector xpath="es:metaInformation/es:administrativeInformation/es:dataEntryBy"/>
            <xsd:field xpath="@person"/>
         </xsd:keyref>
         <xsd:keyref name="fkDataGenerationAndPublication" refer="pkPersonNumber">
            <xsd:selector xpath="es:metaInformation/es:administrativeInformation/es:dataGeneratorAndPublication"/>
            <xsd:field xpath="@person"/>
         </xsd:keyref>
         <xsd:keyref name="fkDataGenerationAndPublicationSource" refer="pkSourceNumber">
            <xsd:selector xpath="es:metaInformation/es:administrativeInformation/es:dataGeneratorAndPublication"/>
            <xsd:field xpath="@referenceToPublishedSource"/>
         </xsd:keyref>
         <xsd:keyref name="fkAllocationExchange" refer="pkExchangeNumber">
            <xsd:selector xpath="es:flowData/es:allocation"/>
            <xsd:field xpath="@referenceToCoProduct"/>
         </xsd:keyref>
         <xsd:keyref name="fkAllocationExchangeInOut" refer="pkExchangeNumber">
            <xsd:selector xpath="es:flowData/es:allocation/es:referenceToInputOutput"/>
            <xsd:field xpath="."/>
         </xsd:keyref>
         <xsd:keyref name="fkValidationPerson" refer="pkPersonNumber">
            <xsd:selector xpath="es:metaInformation/es:modellingAndValidation/es:validation"/>
            <xsd:field xpath="@proofReadingValidator"/>
         </xsd:keyref>
         <xsd:keyref name="fkExchangeSource" refer="pkSourceNumber">
            <xsd:selector xpath="es:flowData/es:exchange"/>
            <xsd:field xpath="@referenceToSource"/>
         </xsd:keyref>
      </xsd:element>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
   </xsd:sequence>
   <xsd:attribute name="validationId" type="xsd:integer" use="optional"/>
   <xsd:attribute name="validationStatus" type="xsd:string" use="optional"/>
</xsd:complexType>

Complex Type: TFlowData

Documentation

XML Instance Representation

<...>
   <exchange> TExchange </exchange> [1..*] 
   <allocation> TAllocation </allocation> [0..*] 
   Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
</...>

Schema Component Representation

<xsd:complexType name="TFlowData">
   <xsd:sequence>
      <xsd:element name="exchange" type="TExchange" maxOccurs="unbounded"/>
      <xsd:element name="allocation" type="TAllocation" minOccurs="0" maxOccurs="unbounded"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
   </xsd:sequence>
</xsd:complexType>

Complex Type: TMetaInformation

Documentation

XML Instance Representation

<...>
   <processInformation> es:TProcessInformation </processInformation> [1] 
   <modellingAndValidation> es:TModellingAndValidation </modellingAndValidation> [1] 
   <administrativeInformation> es:TAdministrativeInformation </administrativeInformation> [1] 
   Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
</...>

Schema Component Representation

<xsd:complexType name="TMetaInformation">
   <xsd:sequence>
      <xsd:element name="processInformation" type="es:TProcessInformation"/>
      <xsd:element name="modellingAndValidation" type="es:TModellingAndValidation"/>
      <xsd:element name="administrativeInformation" type="es:TAdministrativeInformation"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
   </xsd:sequence>
</xsd:complexType>

Complex Type: TModellingAndValidation

Documentation

XML Instance Representation

<...>
   <representativeness> es:TRepresentativeness </representativeness> [0..1] 
   <source> es:TSource </source> [1..*] 
   <validation> es:TValidation </validation> [0..1] 
   Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
</...>

Schema Component Representation

<xsd:complexType name="TModellingAndValidation">
   <xsd:sequence>
      <xsd:element name="representativeness" type="es:TRepresentativeness" minOccurs="0"/>
      <xsd:element name="source" type="es:TSource" maxOccurs="unbounded"/>
      <xsd:element name="validation" type="es:TValidation" minOccurs="0"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
   </xsd:sequence>
</xsd:complexType>

Complex Type: TProcessInformation

Documentation

XML Instance Representation

<...>
   <referenceFunction> es:TReferenceFunction </referenceFunction> [1] 
   <geography> es:TGeography </geography> [1] 
   <technology> es:TTechnology </technology> [1] 
   <timePeriod> es:TTimePeriod </timePeriod> [1] 
   <dataSetInformation> es:TDataSetInformation </dataSetInformation> [1] 
   Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*]
</...>

Schema Component Representation

<xsd:complexType name="TProcessInformation">
   <xsd:sequence>
      <xsd:element name="referenceFunction" type="es:TReferenceFunction"/>
      <xsd:element name="geography" type="es:TGeography"/>
      <xsd:element name="technology" type="es:TTechnology"/>
      <xsd:element name="timePeriod" type="es:TTimePeriod"/>
      <xsd:element name="dataSetInformation" type="es:TDataSetInformation"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
   </xsd:sequence>
</xsd:complexType>

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.