<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="cansas1d.xsl" ?>
<SASroot version="1.1"
		xmlns="urn:cansas1d:1.1"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="urn:cansas1d:1.1 http://www.cansas.org/formats/1.1/cansas1d.xsd"
		>
	<!--
	   file: cansas1d-template.xml
	   purpose: Template file for canSAS 1-D reduced SAS XML data format
	   notes:  Each element in the standard is shown, some with comments.
	           All elements, when present, must appear in the order shown below.
	           When shown in the template below, the "unit" attribute is required.
	           If in doubt, try validating against the XML Schema as described in
	           http://www.cansas.org/wgwiki/index.php/cansas1d_documentation#Validation_of_XML_against_the_Schema
	 -->
	<SASentry name="this name is optional">
		<!--* SASentry: [1..inf] a single SAS scan -->
		<!-- repeat SASentry for as many scans as needed -->
		<Title>Title of the scan goes here.</Title>
		<Run>Could be a number or text</Run>
		<Run_extension xmlns="ILL">
			<!-- example foreign element -->
			001
		</Run_extension>
		<aps:SB_USAXS xmlns:aps="USAXS/APS/32ID">
			<!-- example foreign element with namespace prefix -->
			no
		</aps:SB_USAXS>
		<SASdata name="this name is optional">
			<Idata>
				<!--* Idata: contains one SAS data point -->
				<Q unit="1/A">0.02</Q>
				<I unit="1/cm">1000</I>
				<Idev unit="1/cm">3</Idev>
				<Qdev unit="1/A">0.01</Qdev>
				<Qmean unit="1/A" /><!-- optional -->
				<Shadowfactor /><!-- optional -->
			</Idata>
			<Idata>
				<!-- repeat Idata for as many data points as needed -->
				<Q unit="1/A">0.03</Q>
				<I unit="1/cm">989</I>
				<Idev unit="1/cm">3</Idev>
				<Qdev unit="1/A">0.01</Qdev>
			</Idata>
			<Idata>
				<!-- this shows/tests the alternate form with dQw and dQl
					Do not use both forms within a single SASdata element.
					XMLreaders are not expected to handle the situation
					with both Qdev and (dQw or dQl) since the rules say
					it is not allowed.
				-->
				<Q unit="1/A">0.03</Q>
				<I unit="1/cm">989</I>
				<Idev unit="1/cm">3</Idev>
				<dQw unit="1/A">0.01</dQw>
				<dQl unit="1/A">0.01</dQl>
			</Idata>
		</SASdata>
		<SASsample name="this name is optional">
			<ID>SI600-new-long</ID>
			<thickness unit="mm">1.03</thickness>
			<transmission>0.327 <!-- unit is always fraction: do not specify a "unit" --></transmission>
			<temperature unit="C">22.0000</temperature>
			<position name="this name is optional">
				<x unit="mm">10.00</x>
				<y unit="mm">0.00</y>
			</position>
			<orientation name="this name is optional">
				<roll unit="degree">22.5</roll>
				<pitch unit="degree">0.020</pitch>
				<yaw unit="degree">0.020</yaw>
			</orientation>
			<details>
				http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/2720
			</details>
		</SASsample>
		<SASinstrument>
			<name>canSAS instrument</name>
			<SASsource>
				<radiation>neutron</radiation>
				<beam_size name="this name is optional">
					<x unit="mm">12.00</x>
					<y unit="mm">12.00</y>
				</beam_size>
				<beam_shape>disc</beam_shape>
				<wavelength unit="A">6.00</wavelength>
				<!-- these values are examples and are not meant to be self-consistent here -->
				<wavelength_min unit="nm">0.22</wavelength_min>
				<wavelength_max unit="nm">1.00</wavelength_max>
				<wavelength_spread unit="percent">14.3</wavelength_spread>
			</SASsource>
			<SAScollimation name="this name is optional">
				<length unit="mm">255.0</length>
				<aperture name="source" type="radius">
					<size>
						<x unit="mm">50</x>
						<y unit="mm">2.1</y>
					</size>
					<distance unit="m">11.000</distance>
				</aperture>
			</SAScollimation>
			<SASdetector>
				<name>fictional hybrid detector</name>
				<SDD unit="m"> 4.150 </SDD>
				<offset name="this name is optional">
					<x unit="mm">322.64</x>
					<y unit="mm">327.68</y>
					<z unit="mm">0.00</z>
				</offset>
				<orientation name="this name is optional">
					<roll unit="degree">0.00</roll>
					<pitch unit="degree">0.00</pitch>
					<yaw unit="degree">0.00</yaw>
				</orientation>
				<beam_center name="this name is optional">
					<x unit="mm">322.64</x>
					<y unit="mm">327.68</y>
				</beam_center>
				<pixel_size name="this name is optional">
					<x unit="mm">5.0</x>
					<y unit="mm">5.0</y>
				</pixel_size>
				<slit_length unit="1/A"> 0.05 </slit_length>
			</SASdetector>
		</SASinstrument>
		<SASprocess name="this name is optional">
			<!-- Use as many SASprocess elements as needed. -->
			<name>spol</name>
			<date>04-Sep-2007 18:35:02</date>
			<description> free form description of processing routine </description>
			<term name="calibration" unit="a.u./cm"> 10.000 </term>
			<term name="MASK_file">USER:MASK.COM</term>
			<SASprocessnote name="this name is optional">
				free form description of processing
			</SASprocessnote>
			<SASprocessnote name="this name is optional">
				Use as many as needed.
			</SASprocessnote>
			<SASprocessnote name="this name is optional">
					AvA1 0.0000E+00 AsA2 1.0000E+00 XvA3 1.0526E+03 XsA4  5.2200E-02 XfA5 0.0000E+00
			</SASprocessnote>
		</SASprocess>
		<SASnote name="this name is optional">
			free form description of processing
		</SASnote>
		<SASnote name="this name is optional">
			Use as many as needed
		</SASnote>
	</SASentry>
</SASroot>
