cansas1d.xsd: Difference between revisions
From canSAS
m (→XML Schema: cansas1d.xsd: "units"->"unit"; "rotation"->"orientation") |
|||
Line 7: | Line 7: | ||
elementFormDefault="qualified"> | elementFormDefault="qualified"> | ||
<complexType name=" | <complexType name="floatUnitType"> | ||
<simpleContent> | <simpleContent> | ||
<extension base="float"> | <extension base="float"> | ||
<attribute name=" | <attribute name="unit" type="string" use="required" /> | ||
</extension> | </extension> | ||
</simpleContent> | </simpleContent> | ||
Line 19: | Line 19: | ||
<group name="positionGroup"> | <group name="positionGroup"> | ||
<sequence> | <sequence> | ||
<element name="x" type="tns: | <element name="x" type="tns:floatUnitType" minOccurs="0" | ||
maxOccurs="1" /> | maxOccurs="1" /> | ||
<element name="y" type="tns: | <element name="y" type="tns:floatUnitType" minOccurs="0" | ||
maxOccurs="1" /> | maxOccurs="1" /> | ||
<element name="z" type="tns: | <element name="z" type="tns:floatUnitType" minOccurs="0" | ||
maxOccurs="1" /> | maxOccurs="1" /> | ||
</sequence> | </sequence> | ||
Line 33: | Line 33: | ||
</complexType> | </complexType> | ||
<group name=" | <group name="orientationGroup"> | ||
<sequence> | <sequence> | ||
<element name="roll" type="tns: | <element name="roll" type="tns:floatUnitType" minOccurs="0" | ||
maxOccurs="1" /> | maxOccurs="1" /> | ||
<element name="pitch" type="tns: | <element name="pitch" type="tns:floatUnitType" | ||
minOccurs="0" maxOccurs="1" /> | minOccurs="0" maxOccurs="1" /> | ||
<element name="yaw" type="tns: | <element name="yaw" type="tns:floatUnitType" minOccurs="0" | ||
maxOccurs="1" /> | maxOccurs="1" /> | ||
</sequence> | </sequence> | ||
</group> | </group> | ||
<complexType name=" | <complexType name="orientationType"> | ||
<group ref="tns: | <group ref="tns:orientationGroup" /> | ||
<attribute name="name" type="string" use="optional" /> | <attribute name="name" type="string" use="optional" /> | ||
</complexType> | </complexType> | ||
Line 54: | Line 54: | ||
<sequence> | <sequence> | ||
<element name="Q" minOccurs="1" maxOccurs="1" | <element name="Q" minOccurs="1" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="I" minOccurs="1" maxOccurs="1" | <element name="I" minOccurs="1" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="Qdev" minOccurs="0" maxOccurs="1" | <element name="Qdev" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" default="0" /> | ||
<element name="Idev" minOccurs="0" maxOccurs="1" | <element name="Idev" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" default="0" /> | ||
<element name="Qfwhm" minOccurs="0" maxOccurs="1" | <element name="Qfwhm" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" default="0" /> | ||
<element name="Qmean" minOccurs="0" maxOccurs="1" | <element name="Qmean" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" default="0" /> | ||
<element name="Shadowfactor" minOccurs="0" maxOccurs="1" | <element name="Shadowfactor" minOccurs="0" maxOccurs="1" | ||
type="float" default="1.0" /> | type="float" default="1.0" /> | ||
Line 85: | Line 85: | ||
type="string" /> | type="string" /> | ||
<element name="thickness" minOccurs="0" maxOccurs="1" | <element name="thickness" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="transmission" minOccurs="0" maxOccurs="1" | <element name="transmission" minOccurs="0" maxOccurs="1" | ||
type="float" /> | type="float" /> | ||
<element name="temperature" minOccurs="0" maxOccurs="1" | <element name="temperature" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="position" minOccurs="0" maxOccurs="1" | <element name="position" minOccurs="0" maxOccurs="1" | ||
type="tns:positionType" /> | type="tns:positionType" /> | ||
<element name=" | <element name="orientation" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:orientationType" /> | ||
<element name="offset_angle" minOccurs="0" maxOccurs="1" | <element name="offset_angle" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="details" minOccurs="0" maxOccurs="unbounded" | <element name="details" minOccurs="0" maxOccurs="unbounded" | ||
type="string" /> | type="string" /> | ||
Line 118: | Line 118: | ||
<attribute name="name" type="string" | <attribute name="name" type="string" | ||
use="required" /> | use="required" /> | ||
<attribute name=" | <attribute name="unit" type="string" | ||
use="optional" /> | use="optional" /> | ||
</extension> | </extension> | ||
Line 141: | Line 141: | ||
type="string" /> | type="string" /> | ||
<element name="wavelength" minOccurs="0" maxOccurs="1" | <element name="wavelength" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="wavelength_min" minOccurs="0" maxOccurs="1" | <element name="wavelength_min" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="wavelength_max" minOccurs="0" maxOccurs="1" | <element name="wavelength_max" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="wavelength_spread" minOccurs="0" | <element name="wavelength_spread" minOccurs="0" | ||
maxOccurs="1" type="tns: | maxOccurs="1" type="tns:floatUnitType" /> | ||
</sequence> | </sequence> | ||
<attribute name="name" type="string" use="optional" /> | <attribute name="name" type="string" use="optional" /> | ||
Line 155: | Line 155: | ||
<sequence> | <sequence> | ||
<element name="distance" minOccurs="0" maxOccurs="1" | <element name="distance" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="aperture" minOccurs="0" | <element name="aperture" minOccurs="0" | ||
maxOccurs="unbounded"> | maxOccurs="unbounded"> | ||
Line 163: | Line 163: | ||
type="tns:positionType" /> | type="tns:positionType" /> | ||
<element name="distance" minOccurs="0" | <element name="distance" minOccurs="0" | ||
maxOccurs="1" type="tns: | maxOccurs="1" type="tns:floatUnitType" /> | ||
</sequence> | </sequence> | ||
<attribute name="name" type="string" use="optional" /> | <attribute name="name" type="string" use="optional" /> | ||
Line 178: | Line 178: | ||
type="string" /> | type="string" /> | ||
<element name="SDD" minOccurs="0" maxOccurs="1" | <element name="SDD" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:floatUnitType" /> | ||
<element name="offset" minOccurs="0" maxOccurs="1" | <element name="offset" minOccurs="0" maxOccurs="1" | ||
type="tns:positionType" /> | type="tns:positionType" /> | ||
<element name=" | <element name="orientation" minOccurs="0" maxOccurs="1" | ||
type="tns: | type="tns:orientationType" /> | ||
<element name="beam_center" minOccurs="0" maxOccurs="1" | <element name="beam_center" minOccurs="0" maxOccurs="1" | ||
type="tns:positionType" /> | type="tns:positionType" /> |
Revision as of 16:46, 21 December 2007
XML Schema: cansas1d.xsd
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.smallangles.net/cansas1d" xmlns:tns="http://www.smallangles.net/cansas1d" elementFormDefault="qualified"> <complexType name="floatUnitType"> <simpleContent> <extension base="float"> <attribute name="unit" type="string" use="required" /> </extension> </simpleContent> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <group name="positionGroup"> <sequence> <element name="x" type="tns:floatUnitType" minOccurs="0" maxOccurs="1" /> <element name="y" type="tns:floatUnitType" minOccurs="0" maxOccurs="1" /> <element name="z" type="tns:floatUnitType" minOccurs="0" maxOccurs="1" /> </sequence> </group> <complexType name="positionType"> <group ref="tns:positionGroup" /> <attribute name="name" type="string" use="optional" /> </complexType> <group name="orientationGroup"> <sequence> <element name="roll" type="tns:floatUnitType" minOccurs="0" maxOccurs="1" /> <element name="pitch" type="tns:floatUnitType" minOccurs="0" maxOccurs="1" /> <element name="yaw" type="tns:floatUnitType" minOccurs="0" maxOccurs="1" /> </sequence> </group> <complexType name="orientationType"> <group ref="tns:orientationGroup" /> <attribute name="name" type="string" use="optional" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="IdataType"> <sequence> <element name="Q" minOccurs="1" maxOccurs="1" type="tns:floatUnitType" /> <element name="I" minOccurs="1" maxOccurs="1" type="tns:floatUnitType" /> <element name="Qdev" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" default="0" /> <element name="Idev" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" default="0" /> <element name="Qfwhm" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" default="0" /> <element name="Qmean" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" default="0" /> <element name="Shadowfactor" minOccurs="0" maxOccurs="1" type="float" default="1.0" /> </sequence> </complexType> <complexType name="SASdataType"> <sequence> <element name="Idata" minOccurs="1" maxOccurs="unbounded" type="tns:IdataType" /> </sequence> <attribute name="name" type="string" use="optional" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASsampleType"> <sequence> <element name="ID" minOccurs="1" maxOccurs="1" type="string" /> <element name="thickness" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> <element name="transmission" minOccurs="0" maxOccurs="1" type="float" /> <element name="temperature" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> <element name="position" minOccurs="0" maxOccurs="1" type="tns:positionType" /> <element name="orientation" minOccurs="0" maxOccurs="1" type="tns:orientationType" /> <element name="offset_angle" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> <element name="details" minOccurs="0" maxOccurs="unbounded" type="string" /> </sequence> <attribute name="name" type="string" use="optional" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASprocessType"> <sequence> <element name="name" minOccurs="0" maxOccurs="1" type="string" /> <element name="date" minOccurs="0" maxOccurs="1" type="string" /> <element name="description" minOccurs="0" maxOccurs="1" type="string" /> <element name="term" minOccurs="0" maxOccurs="unbounded"> <complexType> <simpleContent> <extension base="string"> <attribute name="name" type="string" use="required" /> <attribute name="unit" type="string" use="optional" /> </extension> </simpleContent> </complexType> </element> <element name="SASprocessnote" type="string" minOccurs="1" maxOccurs="unbounded" /> </sequence> <attribute name="name" type="string" use="optional" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASsourceType"> <sequence> <element name="radiation" minOccurs="1" maxOccurs="1" type="string" /> <element name="beam_size" minOccurs="0" maxOccurs="1" type="tns:positionType" /> <element name="beam_shape" minOccurs="0" maxOccurs="1" type="string" /> <element name="wavelength" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> <element name="wavelength_min" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> <element name="wavelength_max" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> <element name="wavelength_spread" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> </sequence> <attribute name="name" type="string" use="optional" /> </complexType> <complexType name="SAScollimationType"> <sequence> <element name="distance" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> <element name="aperture" minOccurs="0" maxOccurs="unbounded"> <complexType> <sequence> <element name="size" minOccurs="0" maxOccurs="1" type="tns:positionType" /> <element name="distance" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> </sequence> <attribute name="name" type="string" use="optional" /> <attribute name="type" type="string" use="optional" /> </complexType> </element> </sequence> <attribute name="name" type="string" use="optional" /> </complexType> <complexType name="SASdetectorType"> <sequence> <element name="name" minOccurs="1" maxOccurs="1" type="string" /> <element name="SDD" minOccurs="0" maxOccurs="1" type="tns:floatUnitType" /> <element name="offset" minOccurs="0" maxOccurs="1" type="tns:positionType" /> <element name="orientation" minOccurs="0" maxOccurs="1" type="tns:orientationType" /> <element name="beam_center" minOccurs="0" maxOccurs="1" type="tns:positionType" /> <element name="pixel_size" minOccurs="0" maxOccurs="1" type="tns:positionType" /> </sequence> <attribute name="name" type="string" use="optional" /> </complexType> <complexType name="SASinstrumentType"> <sequence> <element name="name" type="string" minOccurs="1" maxOccurs="1" /> <element name="SASsource" type="tns:SASsourceType" /> <element name="SAScollimation" type="tns:SAScollimationType" /> <element name="SASdetector" type="tns:SASdetectorType" minOccurs="1" maxOccurs="1" /> </sequence> <attribute name="name" type="string" use="optional" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASentryType"> <sequence> <element name="Title" minOccurs="0" maxOccurs="1" type="string" /> <element name="Run" minOccurs="0" maxOccurs="1" type="string" /> <element name="SASdata" type="tns:SASdataType" /> <element name="SASsample" type="tns:SASsampleType" /> <element name="SASinstrument" type="tns:SASinstrumentType" minOccurs="1" maxOccurs="1" /> <element name="SASprocess" type="tns:SASprocessType" minOccurs="0" maxOccurs="unbounded" /> <element name="SASnote" /> </sequence> <attribute name="name" type="string" use="optional" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASrootType"> <sequence> <element name="SASentry" minOccurs="1" maxOccurs="unbounded" type="tns:SASentryType"> </element> </sequence> <attribute name="version" type="string" fixed="0.1a" use="required" /> </complexType> <element name="SASroot" type="tns:SASrootType" /> </schema>