204 lines
9.1 KiB
XML
204 lines
9.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE xs:schema []>
|
|
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" version="1.0" xmlns:gdml="http://cern.ch/service-spi/app/releases/GDML/schema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:simpleType name="InlineExpressionType">
|
|
<xs:restriction base="xs:string"></xs:restriction>
|
|
</xs:simpleType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:simpleType name="ExpressionOrIDREFType">
|
|
<xs:union memberTypes="xs:IDREF InlineExpressionType xs:double "></xs:union>
|
|
</xs:simpleType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="IdentifiableExpressionType">
|
|
<xs:simpleContent>
|
|
<xs:extension base="InlineExpressionType">
|
|
<xs:attribute name="name" type="xs:ID" use="required"></xs:attribute>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<!--
|
|
<xs:complexType name="ExpressionType" mixed="true">
|
|
<xs:annotation>
|
|
<xs:documentation>
|
|
A base type for expressions
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:complexType>
|
|
-->
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<!--
|
|
<xs:complexType name="IdentifiableExpressionType" mixed="true">
|
|
<xs:annotation>
|
|
<xs:documentation>
|
|
Named (referenced), global scope,
|
|
expression (may contain named constants and quantities)
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexContent>
|
|
<xs:extension base="ExpressionType">
|
|
<xs:attribute name="name" type="xs:ID" use="required"/>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
-->
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="ConstantType">
|
|
<xs:annotation>
|
|
<xs:documentation>An anonymous, local scope, value</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:attribute name="value" type="ExpressionOrIDREFType" use="required"></xs:attribute>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="VariableType">
|
|
<xs:annotation>
|
|
<xs:documentation>An anonymous, local scope, value</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:attribute name="value" type="ExpressionOrIDREFType" use="required"></xs:attribute>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="IdentifiableConstantType">
|
|
<xs:annotation>
|
|
<xs:documentation>Named (referenced), global scope, constant value</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexContent>
|
|
<xs:extension base="ConstantType">
|
|
<xs:attribute name="name" type="xs:ID" use="required"></xs:attribute>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="IdentifiableVariableType">
|
|
<xs:annotation>
|
|
<xs:documentation>Named (referenced), local scope, variable value</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexContent>
|
|
<xs:extension base="VariableType">
|
|
<xs:attribute name="name" type="xs:ID" use="required"></xs:attribute>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="QuantityType">
|
|
<xs:annotation>
|
|
<xs:documentation>An anonymous quantity, local scope, with a unit,
|
|
(possibly of a given type) quantity</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexContent>
|
|
<xs:extension base="ConstantType">
|
|
<!-- The unit attribute was originally required,
|
|
but set to optional and is recommended to provide
|
|
a default value in its derived type
|
|
-->
|
|
<xs:attribute name="unit" type="xs:string" use="optional"></xs:attribute>
|
|
<xs:attribute name="type" type="xs:string" use="optional"></xs:attribute>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="IdentifiableQuantityType">
|
|
<xs:annotation>
|
|
<xs:documentation>Named (referenced), global scope,(possibly of a given type) quantity</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexContent>
|
|
<xs:extension base="QuantityType">
|
|
<xs:attribute name="name" type="xs:ID" use="required"></xs:attribute>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="ThreeVectorType">
|
|
<xs:annotation>
|
|
<xs:documentation>An anonymous, 3 dimensional, local scope, vector of doubles</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:attribute default="0.0" name="x" type="ExpressionOrIDREFType"></xs:attribute>
|
|
<xs:attribute default="0.0" name="y" type="ExpressionOrIDREFType"></xs:attribute>
|
|
<xs:attribute default="0.0" name="z" type="ExpressionOrIDREFType"></xs:attribute>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="MatrixType">
|
|
<xs:annotation>
|
|
<xs:documentation>A bi-dimensional matrix of doubles</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:attribute name="name" type="xs:ID"></xs:attribute>
|
|
<xs:attribute name="coldim" type="xs:nonNegativeInteger"></xs:attribute>
|
|
<xs:attribute name="values" type="xs:string"></xs:attribute>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="IdentifiableThreeVectorType">
|
|
<xs:annotation>
|
|
<xs:documentation>Named (referenced), 3 dimensional, global scope, vector of doubles</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexContent>
|
|
<xs:extension base="ThreeVectorType">
|
|
<xs:attribute name="name" type="xs:ID" use="required"></xs:attribute>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="QuantityVectorType">
|
|
<xs:annotation>
|
|
<xs:documentation>An anonymous, 3 dimensional, local scope, with a unit,
|
|
(possibly of a given type) quantity vector</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexContent>
|
|
<xs:extension base="ThreeVectorType">
|
|
<!-- The unit attribute was originally required,
|
|
but set to optional and is recommended to provide
|
|
a default value in its derived type
|
|
-->
|
|
<xs:attribute name="unit" type="xs:string" use="optional"></xs:attribute>
|
|
<xs:attribute name="type" type="xs:string" use="optional"></xs:attribute>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="IdentifiableQuantityVectorType">
|
|
<xs:annotation>
|
|
<xs:documentation>Named (referenced), 3 dimensional, global scope, with a unit,
|
|
(possibly of a given type) quantity vector</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:complexContent>
|
|
<xs:extension base="QuantityVectorType">
|
|
<xs:attribute name="name" type="xs:ID" use="required"></xs:attribute>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="ReferenceType">
|
|
<xs:annotation>
|
|
<xs:documentation>Local reference to an element of a named type</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:attribute name="ref" type="xs:IDREF" use="required"></xs:attribute>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="FileReferenceType">
|
|
<xs:annotation>
|
|
<xs:documentation>Reference to an external file containing sub-volume information</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:attribute name="name" type="xs:anyURI" use="required"></xs:attribute>
|
|
<xs:attribute name="volname" type="xs:string" use="optional"></xs:attribute>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="ReferenceListType">
|
|
<xs:annotation>
|
|
<xs:documentation>List of local references to a set of element of a named type</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:attribute name="refs" type="xs:IDREFS" use="required"></xs:attribute>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
<xs:complexType name="AuxiliaryType">
|
|
<xs:annotation>
|
|
<xs:documentation>Auxiliary information like sensitive detector declaration, etc.</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:sequence>
|
|
<xs:element name="auxiliary" maxOccurs="unbounded" minOccurs="0" type="AuxiliaryType"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="auxtype" type="xs:string" use="required"></xs:attribute>
|
|
<xs:attribute name="auxvalue" type="xs:string" use="required"></xs:attribute>
|
|
<xs:attribute name="auxunit" type="xs:string" use="optional"></xs:attribute>
|
|
</xs:complexType>
|
|
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
</xs:schema>
|