cansas1d-template.xml: Difference between revisions
From canSAS
m (reverted Idata back to [1..inf] -- MUST have at least one data point since this is the main reason for this format) |
(moved all documentation to documentation page, eliminated nonsense elements from template (the template does not show the rules but is used to test them)) |
||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
<?xml version="1.0"?> | <?xml version="1.0"?> | ||
<SASroot xmlns="http://www.smallangles.net/cansas1d" | <?xml-stylesheet type="text/xsl" href="example.xsl" ?> | ||
<SASroot version="1.0" | |||
xmlns="http://www.smallangles.net/cansas1d" | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.smallangles.net/cansas1d/ http://www.smallangles.net/cansas1d/1.0/cansas1d.xsd" | xsi:schemaLocation="http://www.smallangles.net/cansas1d/ http://www.smallangles.net/cansas1d/1.0/cansas1d.xsd" | ||
> | |||
<!-- | <!-- | ||
file: cansas1d-template.xml | file: cansas1d-template.xml | ||
purpose: Template file for canSAS 1-D reduced SAS XML data format | purpose: Template file for canSAS 1-D reduced SAS XML data format | ||
notes: Each element in the standard is shown with | notes: Each element in the standard is shown, some with comments. | ||
All elements, when present, must appear in the order shown below. | All elements, when present, must appear in the order shown below. | ||
When shown in the template below, the "unit" attribute is required. | When shown in the template below, the "unit" attribute is required. | ||
Line 22: | Line 16: | ||
http://www.smallangles.net/wgwiki/index.php/cansas1d_documentation#Validation_of_XML_against_the_Schema | http://www.smallangles.net/wgwiki/index.php/cansas1d_documentation#Validation_of_XML_against_the_Schema | ||
--> | --> | ||
<SASentry name="this name is optional"> | <SASentry name="this name is optional"> | ||
<!--* SASentry: [1..inf] a single SAS scan --> | <!--* SASentry: [1..inf] a single SAS scan --> | ||
<!-- repeat SASentry for as many scans as needed --> | |||
<Run> | <Title>Title of the scan goes here.</Title> | ||
<Run>Could be a number or text</Run> | |||
<SASdata name="this name is optional"> | <SASdata name="this name is optional"> | ||
<Idata> | <Idata> | ||
<!--* Idata: | <!--* Idata: contains one SAS data point --> | ||
<Q unit="1/A" | <Q unit="1/A">0.02</Q> | ||
<I unit="1/cm" | <I unit="1/cm">1000</I> | ||
<Qdev unit="1/A" | <Qdev unit="1/A">0.01</Qdev> | ||
<Idev unit="1/cm" | <Idev unit="1/cm">3</Idev> | ||
<Qfwhm unit="1/A"><!-- | <Qfwhm unit="1/A" /><!-- optional --> | ||
<Qmean unit="1/A"><!-- | <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><Qdev unit="1/A">0.01</Qdev><Idev unit="1/cm">3</Idev> | |||
</Idata> | </Idata> | ||
</SASdata> | </SASdata> | ||
<SASsample name="this name is optional"> | <SASsample name="this name is optional"> | ||
<ID>SI600-new-long</ID> | |||
<ID | <thickness unit="mm">1.03</thickness> | ||
<thickness unit="mm" | <transmission>0.327 <!-- unit is always fraction: do not specify a "unit" --></transmission> | ||
<transmission><!-- | <temperature unit="C">22.0000</temperature> | ||
<temperature unit="C"> | |||
<position name="this name is optional"> | <position name="this name is optional"> | ||
<x unit="mm">10.00</x> | |||
<x unit="mm" | <y unit="mm">0.00</y> | ||
<y unit="mm" | |||
</position> | </position> | ||
<orientation name="this name is optional"> | <orientation name="this name is optional"> | ||
<roll unit="degree">22.5</roll> | |||
<roll unit="degree" | <pitch unit="degree">0.020</pitch> | ||
<pitch unit="degree" | <yaw unit="degree">0.020</yaw> | ||
<yaw unit="degree" | |||
</orientation> | </orientation> | ||
<details> | <details> | ||
http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/2720 | http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/2720 | ||
</details> | </details> | ||
</SASsample> | </SASsample> | ||
<SASinstrument | <SASinstrument> | ||
<name>canSAS instrument</name> | <name>canSAS instrument</name> | ||
<SASsource> | <SASsource> | ||
< | <radiation>neutron</radiation> | ||
<beam_size name="this name is optional"> | <beam_size name="this name is optional"> | ||
<x unit="mm">12.00</x> | |||
<x unit="mm" | <y unit="mm">12.00</y> | ||
<y unit="mm" | |||
</beam_size> | </beam_size> | ||
<beam_shape> | <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 unit="A"><!-- | <wavelength_max unit="nm">1.00</wavelength_max> | ||
<wavelength_min unit="nm" | <wavelength_spread unit="percent">14.3</wavelength_spread> | ||
<wavelength_max unit="nm" | |||
<wavelength_spread unit="percent" | |||
</SASsource> | </SASsource> | ||
<SAScollimation name="this name is optional"> | <SAScollimation name="this name is optional"> | ||
<distance unit="m">11.000</distance> | |||
<distance unit="m" | |||
<aperture name="source" type="radius"> | <aperture name="source" type="radius"> | ||
<size> | <size> | ||
<x unit="mm">50</x> | |||
<x unit="mm" | <y unit="mm">2.1</y> | ||
<y unit="mm" | |||
</size> | </size> | ||
<distance unit="mm" | <distance unit="mm">15.0</distance> | ||
</aperture> | </aperture> | ||
</SAScollimation> | </SAScollimation> | ||
<SASdetector | <SASdetector> | ||
<name>fictional hybrid detector</name> | |||
<name | <SDD unit="m"> 4.150 </SDD> | ||
<SDD unit="m"> | |||
<offset name="this name is optional"> | <offset name="this name is optional"> | ||
<x unit="mm">322.64</x> | |||
<x unit="mm" | <y unit="mm">327.68</y> | ||
<y unit="mm" | <z unit="mm">0.00</z> | ||
<z unit="mm" | |||
</offset> | </offset> | ||
<orientation name="this name is optional"> | <orientation name="this name is optional"> | ||
<roll unit="degree">0.00</roll> | |||
<roll unit="degree" | <pitch unit="degree">0.00</pitch> | ||
<pitch unit="degree" | <yaw unit="degree">0.00</yaw> | ||
<yaw unit="degree" | |||
</orientation> | </orientation> | ||
<beam_center name="this name is optional"> | <beam_center name="this name is optional"> | ||
<x unit="mm">322.64</x> | |||
<x unit="mm" | <y unit="mm">327.68</y> | ||
<y unit="mm" | |||
</beam_center> | </beam_center> | ||
<pixel_size name="this name is optional"> | <pixel_size name="this name is optional"> | ||
<x unit="mm">5.0</x> | |||
<x unit="mm" | <y unit="mm">5.0</y> | ||
<y unit="mm" | |||
</pixel_size> | </pixel_size> | ||
<slit_length unit="1/A" | <slit_length unit="1/A"> 0.05 </slit_length> | ||
</SASdetector> | </SASdetector> | ||
</SASinstrument> | </SASinstrument> | ||
<SASprocess name="this name is optional"> | <SASprocess name="this name is optional"> | ||
<!-- | <!-- Use as many SASprocess elements as needed. --> | ||
<name | <name>spol</name> | ||
<date | <date>04-Sep-2007 18:35:02</date> | ||
<description> | <description> free form description of processing routine </description> | ||
<term name=" | <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"> | <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 | AvA1 0.0000E+00 AsA2 1.0000E+00 XvA3 1.0526E+03 XsA4 5.2200E-02 XfA5 0.0000E+00 | ||
</SASprocessnote> | </SASprocessnote> | ||
</SASprocess> | </SASprocess> | ||
<SASnote name="this name is optional"> | <SASnote name="this name is optional"> | ||
free form description of processing | |||
</SASnote> | |||
<SASnote name="this name is optional"> | |||
Use as many as needed | |||
</SASnote> | </SASnote> | ||
</SASentry> | </SASentry> | ||
</SASroot> | </SASroot> | ||
</pre> | </pre> |
Revision as of 19:34, 25 January 2008
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="example.xsl" ?> <SASroot version="1.0" xmlns="http://www.smallangles.net/cansas1d" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.smallangles.net/cansas1d/ http://www.smallangles.net/cansas1d/1.0/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.smallangles.net/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> <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> <Qdev unit="1/A">0.01</Qdev> <Idev unit="1/cm">3</Idev> <Qfwhm unit="1/A" /><!-- optional --> <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><Qdev unit="1/A">0.01</Qdev><Idev unit="1/cm">3</Idev> </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"> <distance unit="m">11.000</distance> <aperture name="source" type="radius"> <size> <x unit="mm">50</x> <y unit="mm">2.1</y> </size> <distance unit="mm">15.0</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>