cansas1d.xsd

From canSAS
Revision as of 21:27, 20 December 2007 by Jemian (talk | contribs) (New page: =XML Schema: cansas1d.xsd= <pre> <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.smallangles.net/cansas1d" xmlns:tns="...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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="QType">
		<simpleContent>
			<extension base="float">
				<attribute name="units" type="string" default="1/A"
					use="optional" />
			</extension>
		</simpleContent>
	</complexType>

	<complexType name="IType">
		<simpleContent>
			<extension base="float">
				<attribute name="units" type="string" default="1/cm"
					use="optional" />
			</extension>
		</simpleContent>
	</complexType>

	<complexType name="lengthType">
		<simpleContent>
			<extension base="float">
				<attribute name="units" type="string" default="mm"
					use="optional" />
			</extension>
		</simpleContent>
	</complexType>

	<complexType name="temperatureType">
		<simpleContent>
			<extension base="float">
				<attribute name="units" type="string" default="C"
					use="optional" />
			</extension>
		</simpleContent>
	</complexType>

	<complexType name="unitsType">
		<simpleContent>
			<extension base="float">
				<attribute name="units" type="string" use="required" />
			</extension>
		</simpleContent>
	</complexType>

	<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

	<complexType name="IdataType">
		<sequence>
			<element name="Q" minOccurs="1" maxOccurs="1"
				type="tns:QType" />
			<element name="I" minOccurs="1" maxOccurs="1"
				type="tns:IType" />
			<element name="Qdev" minOccurs="0" maxOccurs="1"
				type="tns:QType" default="0" />
			<element name="Idev" minOccurs="0" maxOccurs="1"
				type="tns:IType" default="0" />
			<element name="Qfwhm" minOccurs="0" maxOccurs="1"
				type="tns:QType" default="0" />
			<element name="Qmean" minOccurs="0" maxOccurs="1"
				type="tns:QType" 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" />
	</complexType>

	<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

	<complexType name="SASsampleType">
		<sequence>
			<element name="sample_ID" minOccurs="1" maxOccurs="1"
				type="string" />
			<element name="sample_thickness" minOccurs="0" maxOccurs="1"
				type="tns:lengthType" />
			<element name="sample_transmission" minOccurs="0"
				maxOccurs="1" type="float" />
			<element name="sample_temperature" minOccurs="0"
				maxOccurs="1" type="tns:temperatureType" />
			<element name="sample_rotation" minOccurs="0" maxOccurs="1"
				type="tns:unitsType" />
			<element name="sample_offset_angle" minOccurs="0"
				maxOccurs="1" type="tns:unitsType" />
			<element name="sample_x" minOccurs="0"
				type="tns:lengthType" />
			<element name="sample_y" minOccurs="0" maxOccurs="1"
				type="tns:lengthType" />
			<element name="sample_prep" minOccurs="0" maxOccurs="1"
				type="string" />
		</sequence>
		<attribute name="name" type="string" />
	</complexType>

	<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

	<complexType name="SASprocessType">
		<sequence>
			<element name="SASprocessnote" type="string" />
		</sequence>
		<attribute name="name" type="string" />
	</complexType>

	<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->

	<complexType name="SASinstrumentType">
		<sequence>
			<element name="SASsource" type="string" />
			<element name="SAScollimation" type="string" />
			<element name="SASdetector" type="string" />
		</sequence>
		<attribute name="name" type="string" />
	</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" />
			<element name="SASprocess" type="tns:SASprocessType" />
			<element name="SASnote" />
		</sequence>
		<attribute name="name" type="string" />
	</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" />
	</complexType>

	<element name="SASroot" type="tns:SASrootType" />

</schema>