Index: .gitignore
===================================================================
--- .gitignore	(revision 1b605fb2e0c1caf11caf0de26137a4e61df878f6)
+++ .gitignore	(revision 153b75a64d88ad8b0597c08dada6ae0ca20c08d1)
@@ -34,9 +34,4 @@
 /docs/sphinx-docs/build
 /docs/sphinx-docs/source-temp
-/docs/sphinx-docs/source/dev/api
-/docs/sphinx-docs/source/user/guiframe
-/docs/sphinx-docs/source/user/models
-/docs/sphinx-docs/source/user/sasview
-/docs/sphinx-docs/source/user/perspectives
 /docs/sphinx-docs/katex*.zip
 /docs/sphinx-docs/node_modules
Index: docs/sphinx-docs/build_sphinx.py
===================================================================
--- docs/sphinx-docs/build_sphinx.py	(revision df724752143d7fe3872f462fc4837fcb889ebad9)
+++ docs/sphinx-docs/build_sphinx.py	(revision 153b75a64d88ad8b0597c08dada6ae0ca20c08d1)
@@ -8,12 +8,10 @@
 from __future__ import print_function
 
-import subprocess
+import sys
 import os
 from os.path import join as joinpath, abspath, dirname, isdir, exists, relpath
-import sys
-import fnmatch
 import shutil
+import subprocess
 import imp
-
 from glob import glob
 from distutils.dir_util import copy_tree
@@ -21,8 +19,5 @@
 from distutils.spawn import find_executable
 
-from shutil import copy
-from os import listdir
-
-platform = '.%s-%s'%(get_platform(),sys.version[:3])
+PLATFORM = '.%s-%s'%(get_platform(), sys.version[:3])
 
 # sphinx paths
@@ -35,5 +30,5 @@
 SASVIEW_ROOT = joinpath(SPHINX_ROOT, '..', '..')
 SASVIEW_DOCS = joinpath(SPHINX_ROOT, "source")
-SASVIEW_BUILD = abspath(joinpath(SASVIEW_ROOT, "build", "lib"+platform))
+SASVIEW_BUILD = abspath(joinpath(SASVIEW_ROOT, "build", "lib"+PLATFORM))
 SASVIEW_MEDIA_SOURCE = joinpath(SASVIEW_ROOT, "src", "sas")
 SASVIEW_DOC_TARGET = joinpath(SASVIEW_BUILD, "doc")
@@ -65,15 +60,13 @@
 
 def inplace_change(filename, old_string, new_string):
-# Thanks to http://stackoverflow.com/questions/4128144/replace-string-within-file-contents
-        s=open(filename).read()
-        if old_string in s:
-                print('Changing "{old_string}" to "{new_string}"'.format(**locals()))
-                s=s.replace(old_string, new_string)
-                f=open(filename, 'w')
-                f.write(s)
-                f.flush()
-                f.close()
-        else:
-                print('No occurences of "{old_string}" found.'.format(**locals()))
+    # Thanks to http://stackoverflow.com/questions/4128144/replace-string-within-file-contents
+    s = open(filename).read()
+    if old_string in s:
+        print('Changing "{old_string}" to "{new_string}"'.format(**locals()))
+        s = s.replace(old_string, new_string)
+        with open(filename, 'w') as f:
+            f.write(s)
+    else:
+        print('No occurences of "{old_string}" found.'.format(**locals()))
 
 def _remove_dir(dir_path):
@@ -241,6 +234,6 @@
         finally:
             fd_in.close()
-    with ZipFile(cache_path) as zip:
-        zip.extractall(destination)
+    with ZipFile(cache_path) as archive:
+        archive.extractall(destination)
 
 def convert_katex():
Index: docs/sphinx-docs/source/conf.py
===================================================================
--- docs/sphinx-docs/source/conf.py	(revision a8bbba273d487ea330a418be9e5d9c5fe5d8eed8)
+++ docs/sphinx-docs/source/conf.py	(revision b229a3bf14cf52237670dc67090e092cbe9939db)
@@ -11,4 +11,5 @@
 # All configuration values have a default; values that are commented out
 # serve to show the default.
+from __future__ import print_function
 
 import sys, os, collections
@@ -22,6 +23,6 @@
 sys.path.insert(0, build_lib)
 sys.path.insert(0, os.path.abspath('_extensions')) # for sphinx extensions
-print "-- path --"
-print "\n".join(sys.path)
+print("-- path --")
+print("\n".join(sys.path))
 
 # -- General configuration -----------------------------------------------------
@@ -80,5 +81,5 @@
 version = '4.2'
 # The full version, including alpha/beta/rc tags.
-release = '4.2.0-beta'
+release = '4.2.0'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
Index: docs/sphinx-docs/source/rst_prolog
===================================================================
--- docs/sphinx-docs/source/rst_prolog	(revision 1659f54b83a4ef1858ffda40170e4ea6d4e03ca9)
+++ docs/sphinx-docs/source/rst_prolog	(revision 153b75a64d88ad8b0597c08dada6ae0ca20c08d1)
@@ -1,2 +1,4 @@
+.. TODO: This file is ignored!  Prolog comes from sasmodels/doc/rst_prolog.
+
 .. Set up some substitutions to make life easier...
 
Index: docs/sphinx-docs/source/user/tutorial.rst
===================================================================
--- docs/sphinx-docs/source/user/tutorial.rst	(revision 3bd677bda9477bbd07235d9fba448f09ae1b3932)
+++ docs/sphinx-docs/source/user/tutorial.rst	(revision e8734084bb5dc9c5c614fd7d762ecd78fc07433c)
@@ -10,3 +10,7 @@
 :download:`Getting Started with Sasview <sasview/getting_started_with_sasview.pdf>`
 
+:download:`Basic 1D Fitting in Sasview <sasview/basic_1d_fitting_in_sasview_v3x_4x.pdf>`
+
+:download:`Simultaneous 1D Fitting in Sasview <sasview/simultaneous_1d_fitting_in_sasview_v3x_4x.pdf>`
+
 :download:`Old Tutorial <sasview/Tutorial.pdf>`
Index: src/sas/sasgui/perspectives/calculator/media/slit_calculator_help.rst
===================================================================
--- src/sas/sasgui/perspectives/calculator/media/slit_calculator_help.rst	(revision 643efb5d6009a5db91a76d30208f240ff5245174)
+++ src/sas/sasgui/perspectives/calculator/media/slit_calculator_help.rst	(revision 346745a30813fd45fc6d6f85fe5dd51bb9790081)
@@ -11,9 +11,22 @@
 -----------
 
-This tool enables X-ray users to calculate the slit size (FWHM/2) for smearing
-based on their half beam profile data.
+This tool enables X-ray users to calculate the slit size (FWHM/2) for resolution 
+smearing purposes based on their half beam profile data (as Q vs Intensity; any 
+other data fields are ignored).
 
-*NOTE! Whilst it may have some more generic applicability, the calculator has
-only been tested with beam profile data from Anton-Paar SAXSess\ :sup:`TM` software.*
+Method
+------
+
+The tool works by sequentially summing 10 or more intensity values until a 
+maximum value is attained. It then locates the Q values for the points just before, 
+and just after, **half** of this maximum value and interpolates between them to get 
+an accurate value for the Q value for the half maximum.
+
+NOTE! Whilst it may have some more generic applicability, the calculator has
+only been tested with beam profile data from Anton-Paar SAXSess\ :sup:`TM`\  software.
+The beam profile file does not carry any information about the units of the 
+Q data. It is probably |nm^-1| but the resolution calculations assume the slit 
+height/width has units of |Ang^-1|. If the beam profile data is not in these 
+units then it, or the result, must be manually converted.
 
 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
@@ -27,14 +40,10 @@
 
    *NOTE! To see an example of the beam profile file format, visit the file
-   beam profile.DAT in your {installation_directory}/SasView/test folder.*
+   beam profile.DAT in your {installation_directory}/SasView/test_1d folder.*
 
 3) Once a data is loaded, the slit size is automatically computed and displayed
    in the tool window.
 
-*NOTE! The beam profile file does not carry any information about the units of
-the Q data. This calculator assumes the data has units of 1/\ |Ang|\ . If the
-data is not in these units it must be manually converted beforehand.*
-
 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
 
-.. note::  This help document was last changed by Steve King, 01May2015
+.. note::  This help document was last changed by Steve King, 09Sep2018
Index: src/sas/sasgui/perspectives/fitting/basepage.py
===================================================================
--- src/sas/sasgui/perspectives/fitting/basepage.py	(revision fa412df39d3c5338c2c5f69fed935b428f385ebe)
+++ src/sas/sasgui/perspectives/fitting/basepage.py	(revision b43988196e5c4f2dfbf3ec5c9b66703d5656b08d)
@@ -2778,17 +2778,21 @@
         Function called when 'Help' button is pressed next to model
         of interest.  This calls DocumentationWindow from
-        documentation_window.py. It will load the top level of the model
-        help documenation sphinx generated html if no model is presented.
-        If a model IS present then if documention for that model exists
-        it will load to that  point otherwise again it will go to the top.
-        For Wx2.8 and below is used (i.e. non-released through installer)
-        a browser is loaded and the top of the model documentation only is
-        accessible because webbrowser module does not pass anything after
-        the # to the browser.
+        documentation_window.py. It will load the top level of the html model
+        help documenation sphinx generated if either a plugin model (which
+        normally does not have an html help help file) is selected or if no
+        model is selected. Otherwise, if a regula model is selected, the
+        documention for that model will be sent to a browser window.
+
+        :todo the quick fix for no documentation in plugins is the if statment.
+        However, the right way to do this would be to check whether the hmtl
+        file exists and load the model docs if it does and the general docs if
+        it doesn't - this will become important if we ever figure out how to
+        build docs for plugins on the fly.  Sep 9, 2018 -PDB
 
         :param event: on Help Button pressed event
         """
 
-        if self.model is not None:
+        if (self.model is not None) and (self.categorybox.GetValue()
+                                         != "Plugin Models"):
             name = self.formfactorbox.GetValue()
             _TreeLocation = 'user/models/%s.html' % name
Index: src/sas/sasview/__init__.py
===================================================================
--- src/sas/sasview/__init__.py	(revision a8bbba273d487ea330a418be9e5d9c5fe5d8eed8)
+++ src/sas/sasview/__init__.py	(revision b229a3bf14cf52237670dc67090e092cbe9939db)
@@ -1,2 +1,2 @@
-__version__ = "4.2.0-beta"
+__version__ = "4.2.0"
 __build__ = "GIT_COMMIT"
Index: src/sas/sasview/local_config.py
===================================================================
--- src/sas/sasview/local_config.py	(revision b963b2066d6a76fe5073000c5a596a6fd0130ac4)
+++ src/sas/sasview/local_config.py	(revision b229a3bf14cf52237670dc67090e092cbe9939db)
@@ -48,5 +48,5 @@
 '''This work benefited from the use of the SasView application, originally developed under NSF Award DMR-0520547. SasView also contains code developed with funding from the EU Horizon 2020 programme under the SINE2020 project Grant No 654000.'''
 _acknowledgement_citation = \
-'''M. Doucet et al. SasView Version 4.1.2, Zenodo, 10.5281/zenodo.825675'''
+'''M. Doucet et al. SasView Version 4.2, Zenodo, 10.5281/zenodo.1412041'''
 
 _acknowledgement =  \
Index: src/sas/sasview/test/1d_data/ISIS_Polymer_Blend_RT2.xml
===================================================================
--- src/sas/sasview/test/1d_data/ISIS_Polymer_Blend_RT2.xml	(revision e6d309ca9e26e7a2a3d9509a7b0784030d7c2335)
+++ src/sas/sasview/test/1d_data/ISIS_Polymer_Blend_RT2.xml	(revision e6d309ca9e26e7a2a3d9509a7b0784030d7c2335)
@@ -0,0 +1,266 @@
+<?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"
+		>
+	<SASentry name="104977main_1D_2.2_10.0_cloned_temp">
+		<Title>LOQ Standard RT2_SANS</Title>
+		<Run>104977</Run>
+		<SASdata>
+			<Idata><Q unit="1/A">0.008</Q><I unit="1/cm">48.22</I><Idev unit="1/cm">0.691609</Idev><Qdev unit="1/A">0.00141852</Qdev></Idata>
+			<Idata><Q unit="1/A">0.01</Q><I unit="1/cm">45.2675</I><Idev unit="1/cm">0.4702</Idev><Qdev unit="1/A">0.00152844</Qdev></Idata>
+			<Idata><Q unit="1/A">0.012</Q><I unit="1/cm">43.6333</I><Idev unit="1/cm">0.372996</Idev><Qdev unit="1/A">0.00165624</Qdev></Idata>
+			<Idata><Q unit="1/A">0.014</Q><I unit="1/cm">40.8607</I><Idev unit="1/cm">0.30904</Idev><Qdev unit="1/A">0.00177172</Qdev></Idata>
+			<Idata><Q unit="1/A">0.016</Q><I unit="1/cm">38.7767</I><Idev unit="1/cm">0.265486</Idev><Qdev unit="1/A">0.00187668</Qdev></Idata>
+			<Idata><Q unit="1/A">0.018</Q><I unit="1/cm">36.3038</I><Idev unit="1/cm">0.232072</Idev><Qdev unit="1/A">0.00197744</Qdev></Idata>
+			<Idata><Q unit="1/A">0.02</Q><I unit="1/cm">33.8512</I><Idev unit="1/cm">0.207312</Idev><Qdev unit="1/A">0.00205097</Qdev></Idata>
+			<Idata><Q unit="1/A">0.022</Q><I unit="1/cm">31.3841</I><Idev unit="1/cm">0.187285</Idev><Qdev unit="1/A">0.00211301</Qdev></Idata>
+			<Idata><Q unit="1/A">0.024</Q><I unit="1/cm">29.3521</I><Idev unit="1/cm">0.171128</Idev><Qdev unit="1/A">0.00216707</Qdev></Idata>
+			<Idata><Q unit="1/A">0.026</Q><I unit="1/cm">27.0905</I><Idev unit="1/cm">0.158266</Idev><Qdev unit="1/A">0.00216863</Qdev></Idata>
+			<Idata><Q unit="1/A">0.028</Q><I unit="1/cm">25.0674</I><Idev unit="1/cm">0.146613</Idev><Qdev unit="1/A">0.0021863</Qdev></Idata>
+			<Idata><Q unit="1/A">0.03</Q><I unit="1/cm">23.2478</I><Idev unit="1/cm">0.136366</Idev><Qdev unit="1/A">0.00218559</Qdev></Idata>
+			<Idata><Q unit="1/A">0.032</Q><I unit="1/cm">21.5037</I><Idev unit="1/cm">0.127362</Idev><Qdev unit="1/A">0.00219717</Qdev></Idata>
+			<Idata><Q unit="1/A">0.034</Q><I unit="1/cm">19.7486</I><Idev unit="1/cm">0.118593</Idev><Qdev unit="1/A">0.00220019</Qdev></Idata>
+			<Idata><Q unit="1/A">0.036</Q><I unit="1/cm">18.3602</I><Idev unit="1/cm">0.110848</Idev><Qdev unit="1/A">0.00221583</Qdev></Idata>
+			<Idata><Q unit="1/A">0.038</Q><I unit="1/cm">17.02</I><Idev unit="1/cm">0.104645</Idev><Qdev unit="1/A">0.00220939</Qdev></Idata>
+			<Idata><Q unit="1/A">0.04</Q><I unit="1/cm">15.6139</I><Idev unit="1/cm">0.0973453</Idev><Qdev unit="1/A">0.00222505</Qdev></Idata>
+			<Idata><Q unit="1/A">0.042</Q><I unit="1/cm">14.716</I><Idev unit="1/cm">0.0927132</Idev><Qdev unit="1/A">0.00222297</Qdev></Idata>
+			<Idata><Q unit="1/A">0.044</Q><I unit="1/cm">13.6013</I><Idev unit="1/cm">0.0871733</Idev><Qdev unit="1/A">0.00222766</Qdev></Idata>
+			<Idata><Q unit="1/A">0.046</Q><I unit="1/cm">12.667</I><Idev unit="1/cm">0.0824012</Idev><Qdev unit="1/A">0.00223852</Qdev></Idata>
+			<Idata><Q unit="1/A">0.048</Q><I unit="1/cm">11.7305</I><Idev unit="1/cm">0.0779294</Idev><Qdev unit="1/A">0.00224203</Qdev></Idata>
+			<Idata><Q unit="1/A">0.05</Q><I unit="1/cm">11.0317</I><Idev unit="1/cm">0.0740663</Idev><Qdev unit="1/A">0.00224847</Qdev></Idata>
+			<Idata><Q unit="1/A">0.052</Q><I unit="1/cm">10.2869</I><Idev unit="1/cm">0.0707826</Idev><Qdev unit="1/A">0.00225717</Qdev></Idata>
+			<Idata><Q unit="1/A">0.054</Q><I unit="1/cm">9.59107</I><Idev unit="1/cm">0.0675936</Idev><Qdev unit="1/A">0.00228488</Qdev></Idata>
+			<Idata><Q unit="1/A">0.056</Q><I unit="1/cm">8.94852</I><Idev unit="1/cm">0.0646304</Idev><Qdev unit="1/A">0.00230433</Qdev></Idata>
+			<Idata><Q unit="1/A">0.058</Q><I unit="1/cm">8.40167</I><Idev unit="1/cm">0.0621958</Idev><Qdev unit="1/A">0.00232605</Qdev></Idata>
+			<Idata><Q unit="1/A">0.06</Q><I unit="1/cm">8.05197</I><Idev unit="1/cm">0.0606211</Idev><Qdev unit="1/A">0.00235672</Qdev></Idata>
+			<Idata><Q unit="1/A">0.062</Q><I unit="1/cm">7.55461</I><Idev unit="1/cm">0.0584708</Idev><Qdev unit="1/A">0.00238207</Qdev></Idata>
+			<Idata><Q unit="1/A">0.064</Q><I unit="1/cm">7.09106</I><Idev unit="1/cm">0.0564898</Idev><Qdev unit="1/A">0.00240756</Qdev></Idata>
+			<Idata><Q unit="1/A">0.066</Q><I unit="1/cm">6.75704</I><Idev unit="1/cm">0.0552647</Idev><Qdev unit="1/A">0.00244839</Qdev></Idata>
+			<Idata><Q unit="1/A">0.068</Q><I unit="1/cm">6.37931</I><Idev unit="1/cm">0.0538756</Idev><Qdev unit="1/A">0.00248006</Qdev></Idata>
+			<Idata><Q unit="1/A">0.07</Q><I unit="1/cm">6.04275</I><Idev unit="1/cm">0.0524031</Idev><Qdev unit="1/A">0.00251655</Qdev></Idata>
+			<Idata><Q unit="1/A">0.072</Q><I unit="1/cm">5.68258</I><Idev unit="1/cm">0.0511408</Idev><Qdev unit="1/A">0.00255305</Qdev></Idata>
+			<Idata><Q unit="1/A">0.074</Q><I unit="1/cm">5.47367</I><Idev unit="1/cm">0.050379</Idev><Qdev unit="1/A">0.00257416</Qdev></Idata>
+			<Idata><Q unit="1/A">0.076</Q><I unit="1/cm">5.18291</I><Idev unit="1/cm">0.0493868</Idev><Qdev unit="1/A">0.00263592</Qdev></Idata>
+			<Idata><Q unit="1/A">0.078</Q><I unit="1/cm">4.94805</I><Idev unit="1/cm">0.0487297</Idev><Qdev unit="1/A">0.00266991</Qdev></Idata>
+			<Idata><Q unit="1/A">0.08</Q><I unit="1/cm">4.66997</I><Idev unit="1/cm">0.047719</Idev><Qdev unit="1/A">0.00272113</Qdev></Idata>
+			<Idata><Q unit="1/A">0.082</Q><I unit="1/cm">4.45838</I><Idev unit="1/cm">0.0472222</Idev><Qdev unit="1/A">0.00276468</Qdev></Idata>
+			<Idata><Q unit="1/A">0.084</Q><I unit="1/cm">4.27986</I><Idev unit="1/cm">0.0467169</Idev><Qdev unit="1/A">0.00278576</Qdev></Idata>
+			<Idata><Q unit="1/A">0.086</Q><I unit="1/cm">4.13852</I><Idev unit="1/cm">0.0462793</Idev><Qdev unit="1/A">0.00285356</Qdev></Idata>
+			<Idata><Q unit="1/A">0.088</Q><I unit="1/cm">3.95097</I><Idev unit="1/cm">0.0457845</Idev><Qdev unit="1/A">0.00287744</Qdev></Idata>
+			<Idata><Q unit="1/A">0.09</Q><I unit="1/cm">3.76418</I><Idev unit="1/cm">0.0446994</Idev><Qdev unit="1/A">0.00291583</Qdev></Idata>
+			<Idata><Q unit="1/A">0.092</Q><I unit="1/cm">3.62883</I><Idev unit="1/cm">0.0441434</Idev><Qdev unit="1/A">0.002946</Qdev></Idata>
+			<Idata><Q unit="1/A">0.094</Q><I unit="1/cm">3.52579</I><Idev unit="1/cm">0.0433421</Idev><Qdev unit="1/A">0.00297062</Qdev></Idata>
+			<Idata><Q unit="1/A">0.096</Q><I unit="1/cm">3.37175</I><Idev unit="1/cm">0.0426304</Idev><Qdev unit="1/A">0.00300754</Qdev></Idata>
+			<Idata><Q unit="1/A">0.098</Q><I unit="1/cm">3.2626</I><Idev unit="1/cm">0.0419644</Idev><Qdev unit="1/A">0.00302234</Qdev></Idata>
+			<Idata><Q unit="1/A">0.1</Q><I unit="1/cm">3.1299</I><Idev unit="1/cm">0.041369</Idev><Qdev unit="1/A">0.00306341</Qdev></Idata>
+			<Idata><Q unit="1/A">0.102</Q><I unit="1/cm">3.02045</I><Idev unit="1/cm">0.0410677</Idev><Qdev unit="1/A">0.00309688</Qdev></Idata>
+			<Idata><Q unit="1/A">0.104</Q><I unit="1/cm">2.87553</I><Idev unit="1/cm">0.0401938</Idev><Qdev unit="1/A">0.00312748</Qdev></Idata>
+			<Idata><Q unit="1/A">0.106</Q><I unit="1/cm">2.78546</I><Idev unit="1/cm">0.0400136</Idev><Qdev unit="1/A">0.00315055</Qdev></Idata>
+			<Idata><Q unit="1/A">0.108</Q><I unit="1/cm">2.70468</I><Idev unit="1/cm">0.0397425</Idev><Qdev unit="1/A">0.00320097</Qdev></Idata>
+			<Idata><Q unit="1/A">0.11</Q><I unit="1/cm">2.60506</I><Idev unit="1/cm">0.0392143</Idev><Qdev unit="1/A">0.00322803</Qdev></Idata>
+			<Idata><Q unit="1/A">0.112</Q><I unit="1/cm">2.53283</I><Idev unit="1/cm">0.0392067</Idev><Qdev unit="1/A">0.00326059</Qdev></Idata>
+			<Idata><Q unit="1/A">0.114</Q><I unit="1/cm">2.45587</I><Idev unit="1/cm">0.0385847</Idev><Qdev unit="1/A">0.00329173</Qdev></Idata>
+			<Idata><Q unit="1/A">0.116</Q><I unit="1/cm">2.3541</I><Idev unit="1/cm">0.038218</Idev><Qdev unit="1/A">0.00331008</Qdev></Idata>
+			<Idata><Q unit="1/A">0.118</Q><I unit="1/cm">2.28359</I><Idev unit="1/cm">0.0378248</Idev><Qdev unit="1/A">0.00334193</Qdev></Idata>
+			<Idata><Q unit="1/A">0.12</Q><I unit="1/cm">2.20092</I><Idev unit="1/cm">0.0373677</Idev><Qdev unit="1/A">0.00335626</Qdev></Idata>
+			<Idata><Q unit="1/A">0.122</Q><I unit="1/cm">2.12892</I><Idev unit="1/cm">0.0369608</Idev><Qdev unit="1/A">0.00339764</Qdev></Idata>
+			<Idata><Q unit="1/A">0.124</Q><I unit="1/cm">2.07846</I><Idev unit="1/cm">0.037072</Idev><Qdev unit="1/A">0.00342046</Qdev></Idata>
+			<Idata><Q unit="1/A">0.126</Q><I unit="1/cm">1.94832</I><Idev unit="1/cm">0.0362556</Idev><Qdev unit="1/A">0.00344556</Qdev></Idata>
+			<Idata><Q unit="1/A">0.128</Q><I unit="1/cm">1.96089</I><Idev unit="1/cm">0.0366412</Idev><Qdev unit="1/A">0.00348875</Qdev></Idata>
+			<Idata><Q unit="1/A">0.13</Q><I unit="1/cm">1.92879</I><Idev unit="1/cm">0.0370039</Idev><Qdev unit="1/A">0.00351343</Qdev></Idata>
+			<Idata><Q unit="1/A">0.132</Q><I unit="1/cm">1.86534</I><Idev unit="1/cm">0.0365647</Idev><Qdev unit="1/A">0.00354441</Qdev></Idata>
+			<Idata><Q unit="1/A">0.134</Q><I unit="1/cm">1.81123</I><Idev unit="1/cm">0.036795</Idev><Qdev unit="1/A">0.00358673</Qdev></Idata>
+			<Idata><Q unit="1/A">0.136</Q><I unit="1/cm">1.72105</I><Idev unit="1/cm">0.0362622</Idev><Qdev unit="1/A">0.00361309</Qdev></Idata>
+			<Idata><Q unit="1/A">0.138</Q><I unit="1/cm">1.65464</I><Idev unit="1/cm">0.0360575</Idev><Qdev unit="1/A">0.00365007</Qdev></Idata>
+			<Idata><Q unit="1/A">0.14</Q><I unit="1/cm">1.6971</I><Idev unit="1/cm">0.0366362</Idev><Qdev unit="1/A">0.00367803</Qdev></Idata>
+			<Idata><Q unit="1/A">0.142</Q><I unit="1/cm">1.62284</I><Idev unit="1/cm">0.0364086</Idev><Qdev unit="1/A">0.00370571</Qdev></Idata>
+			<Idata><Q unit="1/A">0.144</Q><I unit="1/cm">1.52347</I><Idev unit="1/cm">0.0358299</Idev><Qdev unit="1/A">0.00374562</Qdev></Idata>
+			<Idata><Q unit="1/A">0.146</Q><I unit="1/cm">1.49915</I><Idev unit="1/cm">0.0360321</Idev><Qdev unit="1/A">0.00378789</Qdev></Idata>
+			<Idata><Q unit="1/A">0.148</Q><I unit="1/cm">1.4944</I><Idev unit="1/cm">0.0367776</Idev><Qdev unit="1/A">0.00379309</Qdev></Idata>
+			<Idata><Q unit="1/A">0.15</Q><I unit="1/cm">1.44644</I><Idev unit="1/cm">0.036091</Idev><Qdev unit="1/A">0.00384062</Qdev></Idata>
+			<Idata><Q unit="1/A">0.152</Q><I unit="1/cm">1.42171</I><Idev unit="1/cm">0.0365407</Idev><Qdev unit="1/A">0.00386595</Qdev></Idata>
+			<Idata><Q unit="1/A">0.154</Q><I unit="1/cm">1.36707</I><Idev unit="1/cm">0.0363546</Idev><Qdev unit="1/A">0.00390102</Qdev></Idata>
+			<Idata><Q unit="1/A">0.156</Q><I unit="1/cm">1.37239</I><Idev unit="1/cm">0.0369004</Idev><Qdev unit="1/A">0.00392225</Qdev></Idata>
+			<Idata><Q unit="1/A">0.158</Q><I unit="1/cm">1.2809</I><Idev unit="1/cm">0.035952</Idev><Qdev unit="1/A">0.00394492</Qdev></Idata>
+			<Idata><Q unit="1/A">0.16</Q><I unit="1/cm">1.28571</I><Idev unit="1/cm">0.0368953</Idev><Qdev unit="1/A">0.00396732</Qdev></Idata>
+			<Idata><Q unit="1/A">0.162</Q><I unit="1/cm">1.2245</I><Idev unit="1/cm">0.0363994</Idev><Qdev unit="1/A">0.00398965</Qdev></Idata>
+			<Idata><Q unit="1/A">0.164</Q><I unit="1/cm">1.13935</I><Idev unit="1/cm">0.0361511</Idev><Qdev unit="1/A">0.00403915</Qdev></Idata>
+			<Idata><Q unit="1/A">0.166</Q><I unit="1/cm">1.19041</I><Idev unit="1/cm">0.0376505</Idev><Qdev unit="1/A">0.00406832</Qdev></Idata>
+			<Idata><Q unit="1/A">0.168</Q><I unit="1/cm">1.15086</I><Idev unit="1/cm">0.0370954</Idev><Qdev unit="1/A">0.00409254</Qdev></Idata>
+			<Idata><Q unit="1/A">0.17</Q><I unit="1/cm">1.05919</I><Idev unit="1/cm">0.0367854</Idev><Qdev unit="1/A">0.00412545</Qdev></Idata>
+			<Idata><Q unit="1/A">0.172</Q><I unit="1/cm">1.09637</I><Idev unit="1/cm">0.0375852</Idev><Qdev unit="1/A">0.00413965</Qdev></Idata>
+			<Idata><Q unit="1/A">0.174</Q><I unit="1/cm">1.06443</I><Idev unit="1/cm">0.0377993</Idev><Qdev unit="1/A">0.00417652</Qdev></Idata>
+			<Idata><Q unit="1/A">0.176</Q><I unit="1/cm">1.06093</I><Idev unit="1/cm">0.0388659</Idev><Qdev unit="1/A">0.00419791</Qdev></Idata>
+			<Idata><Q unit="1/A">0.178</Q><I unit="1/cm">1.06755</I><Idev unit="1/cm">0.0392046</Idev><Qdev unit="1/A">0.00423414</Qdev></Idata>
+			<Idata><Q unit="1/A">0.18</Q><I unit="1/cm">0.987838</I><Idev unit="1/cm">0.0390321</Idev><Qdev unit="1/A">0.00427497</Qdev></Idata>
+			<Idata><Q unit="1/A">0.182</Q><I unit="1/cm">0.933418</I><Idev unit="1/cm">0.0399775</Idev><Qdev unit="1/A">0.00428493</Qdev></Idata>
+			<Idata><Q unit="1/A">0.184</Q><I unit="1/cm">0.9418</I><Idev unit="1/cm">0.0397566</Idev><Qdev unit="1/A">0.00431558</Qdev></Idata>
+			<Idata><Q unit="1/A">0.186</Q><I unit="1/cm">0.952827</I><Idev unit="1/cm">0.040289</Idev><Qdev unit="1/A">0.00432608</Qdev></Idata>
+			<Idata><Q unit="1/A">0.188</Q><I unit="1/cm">0.960769</I><Idev unit="1/cm">0.0421299</Idev><Qdev unit="1/A">0.00436853</Qdev></Idata>
+			<Idata><Q unit="1/A">0.19</Q><I unit="1/cm">0.936698</I><Idev unit="1/cm">0.0425976</Idev><Qdev unit="1/A">0.00439201</Qdev></Idata>
+			<Idata><Q unit="1/A">0.192</Q><I unit="1/cm">0.835267</I><Idev unit="1/cm">0.0413426</Idev><Qdev unit="1/A">0.00442201</Qdev></Idata>
+			<Idata><Q unit="1/A">0.194</Q><I unit="1/cm">0.859512</I><Idev unit="1/cm">0.0429895</Idev><Qdev unit="1/A">0.00446975</Qdev></Idata>
+			<Idata><Q unit="1/A">0.196</Q><I unit="1/cm">0.935721</I><Idev unit="1/cm">0.0460219</Idev><Qdev unit="1/A">0.00446762</Qdev></Idata>
+			<Idata><Q unit="1/A">0.198</Q><I unit="1/cm">0.82435</I><Idev unit="1/cm">0.0449648</Idev><Qdev unit="1/A">0.00448944</Qdev></Idata>
+			<Idata><Q unit="1/A">0.2</Q><I unit="1/cm">0.730432</I><Idev unit="1/cm">0.0434737</Idev><Qdev unit="1/A">0.00452612</Qdev></Idata>
+			<Idata><Q unit="1/A">0.202</Q><I unit="1/cm">0.837523</I><Idev unit="1/cm">0.0482814</Idev><Qdev unit="1/A">0.00455183</Qdev></Idata>
+			<Idata><Q unit="1/A">0.204</Q><I unit="1/cm">0.80657</I><Idev unit="1/cm">0.0467681</Idev><Qdev unit="1/A">0.0045699</Qdev></Idata>
+			<Idata><Q unit="1/A">0.206</Q><I unit="1/cm">0.75476</I><Idev unit="1/cm">0.0476461</Idev><Qdev unit="1/A">0.00456189</Qdev></Idata>
+			<Idata><Q unit="1/A">0.208</Q><I unit="1/cm">0.742787</I><Idev unit="1/cm">0.0493045</Idev><Qdev unit="1/A">0.0046068</Qdev></Idata>
+			<Idata><Q unit="1/A">0.21</Q><I unit="1/cm">0.777239</I><Idev unit="1/cm">0.0517713</Idev><Qdev unit="1/A">0.00465979</Qdev></Idata>
+			<Idata><Q unit="1/A">0.212</Q><I unit="1/cm">0.755864</I><Idev unit="1/cm">0.0528084</Idev><Qdev unit="1/A">0.00465951</Qdev></Idata>
+			<Idata><Q unit="1/A">0.214</Q><I unit="1/cm">0.81703</I><Idev unit="1/cm">0.0569693</Idev><Qdev unit="1/A">0.00466285</Qdev></Idata>
+			<Idata><Q unit="1/A">0.216</Q><I unit="1/cm">0.737553</I><Idev unit="1/cm">0.0562126</Idev><Qdev unit="1/A">0.00472243</Qdev></Idata>
+			<Idata><Q unit="1/A">0.218</Q><I unit="1/cm">0.758268</I><Idev unit="1/cm">0.0580329</Idev><Qdev unit="1/A">0.0047164</Qdev></Idata>
+			<Idata><Q unit="1/A">0.22</Q><I unit="1/cm">0.610357</I><Idev unit="1/cm">0.0573969</Idev><Qdev unit="1/A">0.00474505</Qdev></Idata>
+			<Idata><Q unit="1/A">0.222</Q><I unit="1/cm">0.709671</I><Idev unit="1/cm">0.0613667</Idev><Qdev unit="1/A">0.0047425</Qdev></Idata>
+			<Idata><Q unit="1/A">0.224</Q><I unit="1/cm">0.65025</I><Idev unit="1/cm">0.0621544</Idev><Qdev unit="1/A">0.00475267</Qdev></Idata>
+			<Idata><Q unit="1/A">0.226</Q><I unit="1/cm">0.738472</I><Idev unit="1/cm">0.0691785</Idev><Qdev unit="1/A">0.00480174</Qdev></Idata>
+			<Idata><Q unit="1/A">0.228</Q><I unit="1/cm">0.667827</I><Idev unit="1/cm">0.0680789</Idev><Qdev unit="1/A">0.00482426</Qdev></Idata>
+			<Idata><Q unit="1/A">0.23</Q><I unit="1/cm">0.648001</I><Idev unit="1/cm">0.0703627</Idev><Qdev unit="1/A">0.00483643</Qdev></Idata>
+			<Idata><Q unit="1/A">0.232</Q><I unit="1/cm">0.721578</I><Idev unit="1/cm">0.0765264</Idev><Qdev unit="1/A">0.00486329</Qdev></Idata>
+			<Idata><Q unit="1/A">0.234</Q><I unit="1/cm">0.663654</I><Idev unit="1/cm">0.0792524</Idev><Qdev unit="1/A">0.00488403</Qdev></Idata>
+			<Idata><Q unit="1/A">0.236</Q><I unit="1/cm">0.536755</I><Idev unit="1/cm">0.0724642</Idev><Qdev unit="1/A">0.00492045</Qdev></Idata>
+			<Idata><Q unit="1/A">0.238</Q><I unit="1/cm">0.674443</I><Idev unit="1/cm">0.0797194</Idev><Qdev unit="1/A">0.00492254</Qdev></Idata>
+			<Idata><Q unit="1/A">0.24</Q><I unit="1/cm">0.630048</I><Idev unit="1/cm">0.0850603</Idev><Qdev unit="1/A">0.00495295</Qdev></Idata>
+			<Idata><Q unit="1/A">0.242</Q><I unit="1/cm">0.63919</I><Idev unit="1/cm">0.0905446</Idev><Qdev unit="1/A">0.00494719</Qdev></Idata>
+			<Idata><Q unit="1/A">0.244</Q><I unit="1/cm">0.516308</I><Idev unit="1/cm">0.0831701</Idev><Qdev unit="1/A">0.00495577</Qdev></Idata>
+			<Idata><Q unit="1/A">0.246</Q><I unit="1/cm">0.671362</I><Idev unit="1/cm">0.0935945</Idev><Qdev unit="1/A">0.00497447</Qdev></Idata>
+			<Idata><Q unit="1/A">0.248</Q><I unit="1/cm">0.557966</I><Idev unit="1/cm">0.0945198</Idev><Qdev unit="1/A">0.00500876</Qdev></Idata>
+			<Idata><Q unit="1/A">0.25</Q><I unit="1/cm">0.602891</I><Idev unit="1/cm">0.106822</Idev><Qdev unit="1/A">0.00504127</Qdev></Idata>
+			<Idata><Q unit="1/A">0.252</Q><I unit="1/cm">0.612456</I><Idev unit="1/cm">0.108802</Idev><Qdev unit="1/A">0.00506458</Qdev></Idata>
+			<Idata><Q unit="1/A">0.254</Q><I unit="1/cm">0.574878</I><Idev unit="1/cm">0.109471</Idev><Qdev unit="1/A">0.00512421</Qdev></Idata>
+		</SASdata>
+		<SAStransmission_spectrum name="sample">
+			<Tdata><Lambda unit="A">2.2385</Lambda><T unit="none">0.793879</T><Tdev unit="none">0.011988</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.31685</Lambda><T unit="none">0.791107</T><Tdev unit="none">0.0110754</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.39794</Lambda><T unit="none">0.788238</T><Tdev unit="none">0.010513</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.48186</Lambda><T unit="none">0.789836</T><Tdev unit="none">0.0100036</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.56873</Lambda><T unit="none">0.780647</T><Tdev unit="none">0.00950968</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.65864</Lambda><T unit="none">0.784317</T><Tdev unit="none">0.00941729</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.75169</Lambda><T unit="none">0.785204</T><Tdev unit="none">0.00935385</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.848</Lambda><T unit="none">0.781962</T><Tdev unit="none">0.00927776</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.94768</Lambda><T unit="none">0.781848</T><Tdev unit="none">0.00918</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.05085</Lambda><T unit="none">0.76799</T><Tdev unit="none">0.00904813</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.15763</Lambda><T unit="none">0.764609</T><Tdev unit="none">0.00905158</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.26814</Lambda><T unit="none">0.758198</T><Tdev unit="none">0.00906036</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.38253</Lambda><T unit="none">0.761997</T><Tdev unit="none">0.00922865</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.50092</Lambda><T unit="none">0.752852</T><Tdev unit="none">0.00922787</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.62345</Lambda><T unit="none">0.749267</T><Tdev unit="none">0.0093519</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.75027</Lambda><T unit="none">0.752201</T><Tdev unit="none">0.00956182</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.88153</Lambda><T unit="none">0.732934</T><Tdev unit="none">0.00946088</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.01738</Lambda><T unit="none">0.731912</T><Tdev unit="none">0.00967258</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.15799</Lambda><T unit="none">0.745128</T><Tdev unit="none">0.00977935</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.30352</Lambda><T unit="none">0.73441</T><Tdev unit="none">0.00961945</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.45414</Lambda><T unit="none">0.728021</T><Tdev unit="none">0.00941025</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.61004</Lambda><T unit="none">0.726184</T><Tdev unit="none">0.00970941</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.77139</Lambda><T unit="none">0.722227</T><Tdev unit="none">0.00936076</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.93839</Lambda><T unit="none">0.738289</T><Tdev unit="none">0.00939662</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.11123</Lambda><T unit="none">0.714171</T><Tdev unit="none">0.00923666</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.29012</Lambda><T unit="none">0.710445</T><Tdev unit="none">0.00928515</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.47528</Lambda><T unit="none">0.707644</T><Tdev unit="none">0.00934864</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.66691</Lambda><T unit="none">0.709598</T><Tdev unit="none">0.0096053</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.86525</Lambda><T unit="none">0.704069</T><Tdev unit="none">0.00976988</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.07054</Lambda><T unit="none">0.705307</T><Tdev unit="none">0.0101319</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.28301</Lambda><T unit="none">0.692575</T><Tdev unit="none">0.0103453</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.50291</Lambda><T unit="none">0.691645</T><Tdev unit="none">0.010313</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.73051</Lambda><T unit="none">0.690591</T><Tdev unit="none">0.0109389</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.96608</Lambda><T unit="none">0.695239</T><Tdev unit="none">0.0118108</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.2099</Lambda><T unit="none">0.685839</T><Tdev unit="none">0.0122876</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.46224</Lambda><T unit="none">0.675242</T><Tdev unit="none">0.0129398</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.72342</Lambda><T unit="none">0.662398</T><Tdev unit="none">0.013541</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.99374</Lambda><T unit="none">0.660652</T><Tdev unit="none">0.014578</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.27352</Lambda><T unit="none">0.628407</T><Tdev unit="none">0.0148023</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.56309</Lambda><T unit="none">0.658608</T><Tdev unit="none">0.0166528</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.8628</Lambda><T unit="none">0.651157</T><Tdev unit="none">0.0178339</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.173</Lambda><T unit="none">0.626713</T><Tdev unit="none">0.0184439</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.49406</Lambda><T unit="none">0.616946</T><Tdev unit="none">0.0204109</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.82867</Lambda><T unit="none">0.612178</T><Tdev unit="none">0.0219352</Tdev></Tdata>
+		</SAStransmission_spectrum>
+		<SAStransmission_spectrum name="can">
+			<Tdata><Lambda unit="A">2.2385</Lambda><T unit="none">1.0144</T><Tdev unit="none">0.0146731</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.31685</Lambda><T unit="none">1.00553</T><Tdev unit="none">0.0134907</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.39794</Lambda><T unit="none">1.02331</T><Tdev unit="none">0.0130199</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.48186</Lambda><T unit="none">1.02417</T><Tdev unit="none">0.0124182</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.56873</Lambda><T unit="none">0.998267</T><Tdev unit="none">0.0116433</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.65864</Lambda><T unit="none">1.00595</T><Tdev unit="none">0.0115388</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.75169</Lambda><T unit="none">1.00658</T><Tdev unit="none">0.0114438</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.848</Lambda><T unit="none">1.00858</T><Tdev unit="none">0.0114317</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.94768</Lambda><T unit="none">1.01669</T><Tdev unit="none">0.0113893</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.05085</Lambda><T unit="none">0.991638</T><Tdev unit="none">0.0111447</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.15763</Lambda><T unit="none">1.00606</T><Tdev unit="none">0.0113306</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.26814</Lambda><T unit="none">1.00715</T><Tdev unit="none">0.0114293</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.38253</Lambda><T unit="none">1.007</T><Tdev unit="none">0.0115691</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.50092</Lambda><T unit="none">0.997166</T><Tdev unit="none">0.0115961</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.62345</Lambda><T unit="none">1.00593</T><Tdev unit="none">0.0119159</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.75027</Lambda><T unit="none">1.01068</T><Tdev unit="none">0.0121452</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.88153</Lambda><T unit="none">0.995521</T><Tdev unit="none">0.0121369</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.01738</Lambda><T unit="none">0.99519</T><Tdev unit="none">0.0124005</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.15799</Lambda><T unit="none">1.01253</T><Tdev unit="none">0.0125407</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.30352</Lambda><T unit="none">1.02231</T><Tdev unit="none">0.0125826</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.45414</Lambda><T unit="none">0.987519</T><Tdev unit="none">0.0120393</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.61004</Lambda><T unit="none">1.00498</T><Tdev unit="none">0.0126323</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.77139</Lambda><T unit="none">0.978911</T><Tdev unit="none">0.0119549</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.93839</Lambda><T unit="none">0.994341</T><Tdev unit="none">0.0119372</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.11123</Lambda><T unit="none">0.99056</T><Tdev unit="none">0.0120159</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.29012</Lambda><T unit="none">0.987267</T><Tdev unit="none">0.01208</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.47528</Lambda><T unit="none">0.993518</T><Tdev unit="none">0.0122371</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.66691</Lambda><T unit="none">0.991617</T><Tdev unit="none">0.0125746</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.86525</Lambda><T unit="none">0.994452</T><Tdev unit="none">0.0128946</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.07054</Lambda><T unit="none">1.0056</T><Tdev unit="none">0.0134531</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.28301</Lambda><T unit="none">0.998412</T><Tdev unit="none">0.0138893</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.50291</Lambda><T unit="none">0.993347</T><Tdev unit="none">0.013846</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.73051</Lambda><T unit="none">0.991392</T><Tdev unit="none">0.0146376</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.96608</Lambda><T unit="none">0.997327</T><Tdev unit="none">0.0157106</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.2099</Lambda><T unit="none">1.00405</T><Tdev unit="none">0.0165644</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.46224</Lambda><T unit="none">1.0144</T><Tdev unit="none">0.0178256</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.72342</Lambda><T unit="none">0.990178</T><Tdev unit="none">0.0185979</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.99374</Lambda><T unit="none">1.0106</T><Tdev unit="none">0.0204678</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.27352</Lambda><T unit="none">0.997933</T><Tdev unit="none">0.0214741</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.56309</Lambda><T unit="none">1.02575</T><Tdev unit="none">0.0237019</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.8628</Lambda><T unit="none">1.01174</T><Tdev unit="none">0.0252837</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.173</Lambda><T unit="none">0.972194</T><Tdev unit="none">0.0260066</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.49406</Lambda><T unit="none">1.01477</T><Tdev unit="none">0.0301859</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.82867</Lambda><T unit="none">0.996979</T><Tdev unit="none">0.0323046</Tdev></Tdata>
+		</SAStransmission_spectrum>
+		<SASsample>
+			<ID>LOQ Standard RT2_SANS</ID>
+			<thickness unit="mm">1.100000</thickness>
+		</SASsample>
+		<SASinstrument>
+			<name>LOQ</name>
+			<SASsource>
+				<radiation>Spallation Neutron Source</radiation>
+			</SASsource>
+			<SAScollimation>
+				<aperture name="Disc">
+					<size>
+						<x unit="mm">12.000000</x>
+						<y unit="mm">12.000000</y>
+					</size>
+				</aperture>
+			</SAScollimation>
+			<SASdetector>
+				<name>HAB</name>
+				<SDD unit="m">0.579</SDD>
+			</SASdetector>
+			<SASdetector>
+				<name>main-detector-bank</name>
+				<SDD unit="m">4.14902</SDD>
+			</SASdetector>
+		</SASinstrument>
+		<SASprocess>
+			<name>Mantid generated CanSAS1D XML</name>
+			<date>21-Jun-2018 09:29:58</date>
+			<term name="svn">3.12.1</term>
+			<term name="user_file">K:/masks/USER_LOQ_181O_M3_Lu_12mm_Changer_MAIN.txt</term>
+			<term name="can_trans_run">104975</term>
+			<SASprocessnote/>
+		</SASprocess>
+		<SASnote>
+		</SASnote>
+	</SASentry>
+</SASroot>
Index: src/sas/sasview/test/1d_data/Ludox_silica.xml
===================================================================
--- src/sas/sasview/test/1d_data/Ludox_silica.xml	(revision 8b727a95f1366a36b8715f668f1f48e5eb15c4c1)
+++ src/sas/sasview/test/1d_data/Ludox_silica.xml	(revision 8b727a95f1366a36b8715f668f1f48e5eb15c4c1)
@@ -0,0 +1,233 @@
+<?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"
+		>
+	<SASentry name="Ludox_minus_MT_UsingM3_MAIN_1D_main_cloned_temp">
+		<Title>Ludox 1mm M4 TRANS_SANS</Title>
+		<Run>102424</Run>
+		<SASdata>
+			<Idata><Q unit="1/A">0.00714</Q><I unit="1/cm">226.539</I><Idev unit="1/cm">1.93973</Idev><Qdev unit="1/A">0.00144239</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0074256</Q><I unit="1/cm">221.513</I><Idev unit="1/cm">1.62915</Idev><Qdev unit="1/A">0.00147496</Qdev></Idata>
+			<Idata><Q unit="1/A">0.00772262</Q><I unit="1/cm">227.287</I><Idev unit="1/cm">1.48514</Idev><Qdev unit="1/A">0.0015166</Qdev></Idata>
+			<Idata><Q unit="1/A">0.00803153</Q><I unit="1/cm">224.28</I><Idev unit="1/cm">1.3466</Idev><Qdev unit="1/A">0.00155158</Qdev></Idata>
+			<Idata><Q unit="1/A">0.00835279</Q><I unit="1/cm">223.997</I><Idev unit="1/cm">1.18008</Idev><Qdev unit="1/A">0.00159088</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0086869</Q><I unit="1/cm">223.672</I><Idev unit="1/cm">1.05878</Idev><Qdev unit="1/A">0.00162593</Qdev></Idata>
+			<Idata><Q unit="1/A">0.00903438</Q><I unit="1/cm">228.475</I><Idev unit="1/cm">0.976591</Idev><Qdev unit="1/A">0.00168048</Qdev></Idata>
+			<Idata><Q unit="1/A">0.00939575</Q><I unit="1/cm">229.011</I><Idev unit="1/cm">0.900282</Idev><Qdev unit="1/A">0.00170509</Qdev></Idata>
+			<Idata><Q unit="1/A">0.00977158</Q><I unit="1/cm">235.962</I><Idev unit="1/cm">0.884191</Idev><Qdev unit="1/A">0.00172049</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0101624</Q><I unit="1/cm">241.236</I><Idev unit="1/cm">0.84357</Idev><Qdev unit="1/A">0.00171975</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0105689</Q><I unit="1/cm">247.454</I><Idev unit="1/cm">0.807803</Idev><Qdev unit="1/A">0.00173361</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0109917</Q><I unit="1/cm">256.09</I><Idev unit="1/cm">0.787324</Idev><Qdev unit="1/A">0.00176472</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0114314</Q><I unit="1/cm">269.423</I><Idev unit="1/cm">0.755671</Idev><Qdev unit="1/A">0.00182598</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0118886</Q><I unit="1/cm">282.029</I><Idev unit="1/cm">0.711765</Idev><Qdev unit="1/A">0.00187949</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0123642</Q><I unit="1/cm">296.626</I><Idev unit="1/cm">0.704532</Idev><Qdev unit="1/A">0.00193137</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0128587</Q><I unit="1/cm">318.537</I><Idev unit="1/cm">0.68349</Idev><Qdev unit="1/A">0.00198554</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0133731</Q><I unit="1/cm">345.447</I><Idev unit="1/cm">0.675291</Idev><Qdev unit="1/A">0.00203315</Qdev></Idata>
+			<Idata><Q unit="1/A">0.013908</Q><I unit="1/cm">377.838</I><Idev unit="1/cm">0.668046</Idev><Qdev unit="1/A">0.00208813</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0144643</Q><I unit="1/cm">418.942</I><Idev unit="1/cm">0.678959</Idev><Qdev unit="1/A">0.00213326</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0150429</Q><I unit="1/cm">467.433</I><Idev unit="1/cm">0.686981</Idev><Qdev unit="1/A">0.00217358</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0156446</Q><I unit="1/cm">521.277</I><Idev unit="1/cm">0.703031</Idev><Qdev unit="1/A">0.00220131</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0162704</Q><I unit="1/cm">587.111</I><Idev unit="1/cm">0.727639</Idev><Qdev unit="1/A">0.00222531</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0169212</Q><I unit="1/cm">657.003</I><Idev unit="1/cm">0.744067</Idev><Qdev unit="1/A">0.00226428</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0175981</Q><I unit="1/cm">727.944</I><Idev unit="1/cm">0.754121</Idev><Qdev unit="1/A">0.00227136</Qdev></Idata>
+			<Idata><Q unit="1/A">0.018302</Q><I unit="1/cm">789.992</I><Idev unit="1/cm">0.762387</Idev><Qdev unit="1/A">0.00228228</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0190341</Q><I unit="1/cm">832.073</I><Idev unit="1/cm">0.750767</Idev><Qdev unit="1/A">0.00229589</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0197954</Q><I unit="1/cm">839.815</I><Idev unit="1/cm">0.728338</Idev><Qdev unit="1/A">0.00231852</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0205873</Q><I unit="1/cm">805.586</I><Idev unit="1/cm">0.680064</Idev><Qdev unit="1/A">0.00233235</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0214107</Q><I unit="1/cm">732.561</I><Idev unit="1/cm">0.609523</Idev><Qdev unit="1/A">0.00237326</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0222672</Q><I unit="1/cm">623.581</I><Idev unit="1/cm">0.525037</Idev><Qdev unit="1/A">0.00244917</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0231579</Q><I unit="1/cm">498.338</I><Idev unit="1/cm">0.431254</Idev><Qdev unit="1/A">0.00254252</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0240842</Q><I unit="1/cm">379.651</I><Idev unit="1/cm">0.345621</Idev><Qdev unit="1/A">0.00263583</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0250475</Q><I unit="1/cm">277.92</I><Idev unit="1/cm">0.275152</Idev><Qdev unit="1/A">0.00274294</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0260494</Q><I unit="1/cm">199.772</I><Idev unit="1/cm">0.215742</Idev><Qdev unit="1/A">0.0028428</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0270914</Q><I unit="1/cm">141.351</I><Idev unit="1/cm">0.172114</Idev><Qdev unit="1/A">0.00286564</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0281751</Q><I unit="1/cm">102.756</I><Idev unit="1/cm">0.138782</Idev><Qdev unit="1/A">0.00289349</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0293021</Q><I unit="1/cm">78.1058</I><Idev unit="1/cm">0.114218</Idev><Qdev unit="1/A">0.00289295</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0304742</Q><I unit="1/cm">62.5493</I><Idev unit="1/cm">0.0977755</Idev><Qdev unit="1/A">0.00284193</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0316931</Q><I unit="1/cm">53.8731</I><Idev unit="1/cm">0.0869322</Idev><Qdev unit="1/A">0.0027452</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0329609</Q><I unit="1/cm">49.8906</I><Idev unit="1/cm">0.0804389</Idev><Qdev unit="1/A">0.0026771</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0342793</Q><I unit="1/cm">48.5347</I><Idev unit="1/cm">0.0759295</Idev><Qdev unit="1/A">0.00262863</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0356505</Q><I unit="1/cm">47.7805</I><Idev unit="1/cm">0.0728817</Idev><Qdev unit="1/A">0.00257297</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0370765</Q><I unit="1/cm">46.4139</I><Idev unit="1/cm">0.0692472</Idev><Qdev unit="1/A">0.00256056</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0385595</Q><I unit="1/cm">43.3373</I><Idev unit="1/cm">0.0640746</Idev><Qdev unit="1/A">0.00256325</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0401019</Q><I unit="1/cm">38.7575</I><Idev unit="1/cm">0.0581762</Idev><Qdev unit="1/A">0.00258859</Qdev></Idata>
+			<Idata><Q unit="1/A">0.041706</Q><I unit="1/cm">32.8237</I><Idev unit="1/cm">0.0513839</Idev><Qdev unit="1/A">0.002619</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0433742</Q><I unit="1/cm">26.4637</I><Idev unit="1/cm">0.0443289</Idev><Qdev unit="1/A">0.00267382</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0451092</Q><I unit="1/cm">20.8371</I><Idev unit="1/cm">0.0378276</Idev><Qdev unit="1/A">0.00272568</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0469136</Q><I unit="1/cm">16.2119</I><Idev unit="1/cm">0.0320347</Idev><Qdev unit="1/A">0.00276587</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0487901</Q><I unit="1/cm">13.0286</I><Idev unit="1/cm">0.0278154</Idev><Qdev unit="1/A">0.00279571</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0507417</Q><I unit="1/cm">10.9345</I><Idev unit="1/cm">0.0245709</Idev><Qdev unit="1/A">0.00281708</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0527714</Q><I unit="1/cm">9.67899</I><Idev unit="1/cm">0.0222794</Idev><Qdev unit="1/A">0.00282959</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0548822</Q><I unit="1/cm">8.78581</I><Idev unit="1/cm">0.0206342</Idev><Qdev unit="1/A">0.0028401</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0570775</Q><I unit="1/cm">8.02647</I><Idev unit="1/cm">0.0191646</Idev><Qdev unit="1/A">0.00286615</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0593606</Q><I unit="1/cm">7.19768</I><Idev unit="1/cm">0.0176645</Idev><Qdev unit="1/A">0.00290825</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0617351</Q><I unit="1/cm">6.25872</I><Idev unit="1/cm">0.0160657</Idev><Qdev unit="1/A">0.00296442</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0642045</Q><I unit="1/cm">5.30149</I><Idev unit="1/cm">0.0145183</Idev><Qdev unit="1/A">0.00303237</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0667726</Q><I unit="1/cm">4.52106</I><Idev unit="1/cm">0.0131602</Idev><Qdev unit="1/A">0.00310777</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0694435</Q><I unit="1/cm">3.93014</I><Idev unit="1/cm">0.0120429</Idev><Qdev unit="1/A">0.00317865</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0722213</Q><I unit="1/cm">3.49251</I><Idev unit="1/cm">0.0112192</Idev><Qdev unit="1/A">0.00323071</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0751101</Q><I unit="1/cm">3.18734</I><Idev unit="1/cm">0.0105821</Idev><Qdev unit="1/A">0.00329721</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0781145</Q><I unit="1/cm">2.92726</I><Idev unit="1/cm">0.0100843</Idev><Qdev unit="1/A">0.00336836</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0812391</Q><I unit="1/cm">2.64566</I><Idev unit="1/cm">0.00955912</Idev><Qdev unit="1/A">0.00345727</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0844887</Q><I unit="1/cm">2.37452</I><Idev unit="1/cm">0.00901861</Idev><Qdev unit="1/A">0.0035437</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0878682</Q><I unit="1/cm">2.13092</I><Idev unit="1/cm">0.00853411</Idev><Qdev unit="1/A">0.00362227</Qdev></Idata>
+			<Idata><Q unit="1/A">0.091383</Q><I unit="1/cm">1.93426</I><Idev unit="1/cm">0.00801442</Idev><Qdev unit="1/A">0.0036993</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0950383</Q><I unit="1/cm">1.7841</I><Idev unit="1/cm">0.00759625</Idev><Qdev unit="1/A">0.00374223</Qdev></Idata>
+			<Idata><Q unit="1/A">0.0988398</Q><I unit="1/cm">1.65305</I><Idev unit="1/cm">0.00721554</Idev><Qdev unit="1/A">0.00381774</Qdev></Idata>
+			<Idata><Q unit="1/A">0.102793</Q><I unit="1/cm">1.52134</I><Idev unit="1/cm">0.00691554</Idev><Qdev unit="1/A">0.00388979</Qdev></Idata>
+			<Idata><Q unit="1/A">0.106905</Q><I unit="1/cm">1.40698</I><Idev unit="1/cm">0.0066253</Idev><Qdev unit="1/A">0.00396133</Qdev></Idata>
+			<Idata><Q unit="1/A">0.111181</Q><I unit="1/cm">1.28636</I><Idev unit="1/cm">0.00633815</Idev><Qdev unit="1/A">0.0040448</Qdev></Idata>
+			<Idata><Q unit="1/A">0.115629</Q><I unit="1/cm">1.19797</I><Idev unit="1/cm">0.00611845</Idev><Qdev unit="1/A">0.00412381</Qdev></Idata>
+			<Idata><Q unit="1/A">0.120254</Q><I unit="1/cm">1.12096</I><Idev unit="1/cm">0.00589653</Idev><Qdev unit="1/A">0.00420457</Qdev></Idata>
+			<Idata><Q unit="1/A">0.125064</Q><I unit="1/cm">1.05444</I><Idev unit="1/cm">0.00572062</Idev><Qdev unit="1/A">0.00427869</Qdev></Idata>
+			<Idata><Q unit="1/A">0.130066</Q><I unit="1/cm">0.982053</I><Idev unit="1/cm">0.00560039</Idev><Qdev unit="1/A">0.00438243</Qdev></Idata>
+			<Idata><Q unit="1/A">0.135269</Q><I unit="1/cm">0.930887</I><Idev unit="1/cm">0.00551959</Idev><Qdev unit="1/A">0.00449707</Qdev></Idata>
+			<Idata><Q unit="1/A">0.14068</Q><I unit="1/cm">0.882886</I><Idev unit="1/cm">0.00546427</Idev><Qdev unit="1/A">0.00460143</Qdev></Idata>
+			<Idata><Q unit="1/A">0.146307</Q><I unit="1/cm">0.846909</I><Idev unit="1/cm">0.00543486</Idev><Qdev unit="1/A">0.00471315</Qdev></Idata>
+			<Idata><Q unit="1/A">0.152159</Q><I unit="1/cm">0.795072</I><Idev unit="1/cm">0.00541176</Idev><Qdev unit="1/A">0.00482935</Qdev></Idata>
+			<Idata><Q unit="1/A">0.158246</Q><I unit="1/cm">0.765342</I><Idev unit="1/cm">0.00543268</Idev><Qdev unit="1/A">0.00494456</Qdev></Idata>
+			<Idata><Q unit="1/A">0.164576</Q><I unit="1/cm">0.725141</I><Idev unit="1/cm">0.00544301</Idev><Qdev unit="1/A">0.00506276</Qdev></Idata>
+			<Idata><Q unit="1/A">0.171159</Q><I unit="1/cm">0.69475</I><Idev unit="1/cm">0.00556163</Idev><Qdev unit="1/A">0.00519308</Qdev></Idata>
+			<Idata><Q unit="1/A">0.178005</Q><I unit="1/cm">0.664438</I><Idev unit="1/cm">0.00568705</Idev><Qdev unit="1/A">0.00532144</Qdev></Idata>
+			<Idata><Q unit="1/A">0.185125</Q><I unit="1/cm">0.640604</I><Idev unit="1/cm">0.00589887</Idev><Qdev unit="1/A">0.00544726</Qdev></Idata>
+			<Idata><Q unit="1/A">0.19253</Q><I unit="1/cm">0.625173</I><Idev unit="1/cm">0.00622744</Idev><Qdev unit="1/A">0.00558291</Qdev></Idata>
+			<Idata><Q unit="1/A">0.200231</Q><I unit="1/cm">0.5956</I><Idev unit="1/cm">0.00663393</Idev><Qdev unit="1/A">0.00570866</Qdev></Idata>
+			<Idata><Q unit="1/A">0.208241</Q><I unit="1/cm">0.582752</I><Idev unit="1/cm">0.00724923</Idev><Qdev unit="1/A">0.00583848</Qdev></Idata>
+			<Idata><Q unit="1/A">0.21657</Q><I unit="1/cm">0.571269</I><Idev unit="1/cm">0.00810892</Idev><Qdev unit="1/A">0.00595692</Qdev></Idata>
+			<Idata><Q unit="1/A">0.225233</Q><I unit="1/cm">0.563012</I><Idev unit="1/cm">0.00929792</Idev><Qdev unit="1/A">0.00607578</Qdev></Idata>
+			<Idata><Q unit="1/A">0.234242</Q><I unit="1/cm">0.539121</I><Idev unit="1/cm">0.010755</Idev><Qdev unit="1/A">0.00621921</Qdev></Idata>
+			<Idata><Q unit="1/A">0.243612</Q><I unit="1/cm">0.511661</I><Idev unit="1/cm">0.0125021</Idev><Qdev unit="1/A">0.00636952</Qdev></Idata>
+			<Idata><Q unit="1/A">0.251694</Q><I unit="1/cm">0.520131</I><Idev unit="1/cm">0.0181216</Idev><Qdev unit="1/A">0.00613893</Qdev></Idata>
+		</SASdata>
+		<SAStransmission_spectrum name="sample">
+			<Tdata><Lambda unit="A">2.2385</Lambda><T unit="none">0.717971</T><Tdev unit="none">0.0110266</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.31685</Lambda><T unit="none">0.709068</T><Tdev unit="none">0.0101754</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.39794</Lambda><T unit="none">0.690416</T><Tdev unit="none">0.00941488</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.48186</Lambda><T unit="none">0.684925</T><Tdev unit="none">0.00888289</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.56873</Lambda><T unit="none">0.700461</T><Tdev unit="none">0.00875057</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.65864</Lambda><T unit="none">0.697696</T><Tdev unit="none">0.00857482</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.75169</Lambda><T unit="none">0.694879</T><Tdev unit="none">0.00847972</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.848</Lambda><T unit="none">0.684019</T><Tdev unit="none">0.00832424</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.94768</Lambda><T unit="none">0.667923</T><Tdev unit="none">0.00807318</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.05085</Lambda><T unit="none">0.676025</T><Tdev unit="none">0.00817151</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.15763</Lambda><T unit="none">0.668275</T><Tdev unit="none">0.00815631</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.26814</Lambda><T unit="none">0.672508</T><Tdev unit="none">0.00826494</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.38253</Lambda><T unit="none">0.666287</T><Tdev unit="none">0.00831327</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.50092</Lambda><T unit="none">0.671103</T><Tdev unit="none">0.0084843</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.62345</Lambda><T unit="none">0.666571</T><Tdev unit="none">0.0085813</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.75027</Lambda><T unit="none">0.643053</T><Tdev unit="none">0.00843418</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.88153</Lambda><T unit="none">0.649946</T><Tdev unit="none">0.00864813</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.01738</Lambda><T unit="none">0.648437</T><Tdev unit="none">0.00881705</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.15799</Lambda><T unit="none">0.64585</T><Tdev unit="none">0.00874337</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.30352</Lambda><T unit="none">0.642882</T><Tdev unit="none">0.00866337</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.45414</Lambda><T unit="none">0.645591</T><Tdev unit="none">0.00867726</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.61004</Lambda><T unit="none">0.632925</T><Tdev unit="none">0.00875702</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.77139</Lambda><T unit="none">0.63371</T><Tdev unit="none">0.00847671</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.93839</Lambda><T unit="none">0.625692</T><Tdev unit="none">0.00825294</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.11123</Lambda><T unit="none">0.617251</T><Tdev unit="none">0.00829451</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.29012</Lambda><T unit="none">0.603072</T><Tdev unit="none">0.00821053</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.47528</Lambda><T unit="none">0.593301</T><Tdev unit="none">0.00813561</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.66691</Lambda><T unit="none">0.610819</T><Tdev unit="none">0.00860668</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.86525</Lambda><T unit="none">0.585713</T><Tdev unit="none">0.00848138</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.07054</Lambda><T unit="none">0.587744</T><Tdev unit="none">0.00882874</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.28301</Lambda><T unit="none">0.589786</T><Tdev unit="none">0.00919427</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.50291</Lambda><T unit="none">0.599991</T><Tdev unit="none">0.00938078</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.73051</Lambda><T unit="none">0.579963</T><Tdev unit="none">0.00963462</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.96608</Lambda><T unit="none">0.569621</T><Tdev unit="none">0.0101776</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.2099</Lambda><T unit="none">0.544411</T><Tdev unit="none">0.0102924</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.46224</Lambda><T unit="none">0.520213</T><Tdev unit="none">0.0105593</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.72342</Lambda><T unit="none">0.501093</T><Tdev unit="none">0.0108647</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.99374</Lambda><T unit="none">0.516603</T><Tdev unit="none">0.0120707</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.27352</Lambda><T unit="none">0.522204</T><Tdev unit="none">0.0129832</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.56309</Lambda><T unit="none">0.492108</T><Tdev unit="none">0.0133838</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.8628</Lambda><T unit="none">0.494853</T><Tdev unit="none">0.0146309</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.173</Lambda><T unit="none">0.481514</T><Tdev unit="none">0.0152731</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.49406</Lambda><T unit="none">0.503064</T><Tdev unit="none">0.017696</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.82867</Lambda><T unit="none">0.482553</T><Tdev unit="none">0.0186599</Tdev></Tdata>
+		</SAStransmission_spectrum>
+		<SAStransmission_spectrum name="can">
+			<Tdata><Lambda unit="A">2.2385</Lambda><T unit="none">1</T><Tdev unit="none">0.0144802</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.31685</Lambda><T unit="none">1</T><Tdev unit="none">0.0134752</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.39794</Lambda><T unit="none">1</T><Tdev unit="none">0.0127808</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.48186</Lambda><T unit="none">1</T><Tdev unit="none">0.0121318</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.56873</Lambda><T unit="none">1</T><Tdev unit="none">0.01168</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.65864</Lambda><T unit="none">1</T><Tdev unit="none">0.0114996</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.75169</Lambda><T unit="none">1</T><Tdev unit="none">0.0114307</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.848</Lambda><T unit="none">1</T><Tdev unit="none">0.0113232</Tdev></Tdata>
+			<Tdata><Lambda unit="A">2.94768</Lambda><T unit="none">1</T><Tdev unit="none">0.0112142</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.05085</Lambda><T unit="none">1</T><Tdev unit="none">0.0112312</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.15763</Lambda><T unit="none">1</T><Tdev unit="none">0.0113109</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.26814</Lambda><T unit="none">1</T><Tdev unit="none">0.0113959</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.38253</Lambda><T unit="none">1</T><Tdev unit="none">0.0115376</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.50092</Lambda><T unit="none">1</T><Tdev unit="none">0.0116741</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.62345</Lambda><T unit="none">1</T><Tdev unit="none">0.0118662</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.75027</Lambda><T unit="none">1</T><Tdev unit="none">0.0120196</Tdev></Tdata>
+			<Tdata><Lambda unit="A">3.88153</Lambda><T unit="none">1</T><Tdev unit="none">0.0122341</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.01738</Lambda><T unit="none">1</T><Tdev unit="none">0.0125049</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.15799</Lambda><T unit="none">1</T><Tdev unit="none">0.0124022</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.30352</Lambda><T unit="none">1</T><Tdev unit="none">0.012326</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.45414</Lambda><T unit="none">1</T><Tdev unit="none">0.0123138</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.61004</Lambda><T unit="none">1</T><Tdev unit="none">0.0126501</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.77139</Lambda><T unit="none">1</T><Tdev unit="none">0.0122235</Tdev></Tdata>
+			<Tdata><Lambda unit="A">4.93839</Lambda><T unit="none">1</T><Tdev unit="none">0.0120186</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.11123</Lambda><T unit="none">1</T><Tdev unit="none">0.0122158</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.29012</Lambda><T unit="none">1</T><Tdev unit="none">0.0123276</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.47528</Lambda><T unit="none">1</T><Tdev unit="none">0.0123474</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.66691</Lambda><T unit="none">1</T><Tdev unit="none">0.0127133</Tdev></Tdata>
+			<Tdata><Lambda unit="A">5.86525</Lambda><T unit="none">1</T><Tdev unit="none">0.0129855</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.07054</Lambda><T unit="none">1</T><Tdev unit="none">0.0134445</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.28301</Lambda><T unit="none">1</T><Tdev unit="none">0.0139401</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.50291</Lambda><T unit="none">1</T><Tdev unit="none">0.0140926</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.73051</Lambda><T unit="none">1</T><Tdev unit="none">0.0149115</Tdev></Tdata>
+			<Tdata><Lambda unit="A">6.96608</Lambda><T unit="none">1</T><Tdev unit="none">0.0158819</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.2099</Lambda><T unit="none">1</T><Tdev unit="none">0.0165913</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.46224</Lambda><T unit="none">1</T><Tdev unit="none">0.0176115</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.72342</Lambda><T unit="none">1</T><Tdev unit="none">0.0186471</Tdev></Tdata>
+			<Tdata><Lambda unit="A">7.99374</Lambda><T unit="none">1</T><Tdev unit="none">0.0201956</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.27352</Lambda><T unit="none">1</T><Tdev unit="none">0.0215507</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.56309</Lambda><T unit="none">1</T><Tdev unit="none">0.0232677</Tdev></Tdata>
+			<Tdata><Lambda unit="A">8.8628</Lambda><T unit="none">1</T><Tdev unit="none">0.0252381</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.173</Lambda><T unit="none">1</T><Tdev unit="none">0.0268715</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.49406</Lambda><T unit="none">1</T><Tdev unit="none">0.0299018</Tdev></Tdata>
+			<Tdata><Lambda unit="A">9.82867</Lambda><T unit="none">1</T><Tdev unit="none">0.0326667</Tdev></Tdata>
+		</SAStransmission_spectrum>
+		<SASsample>
+			<ID>Ludox 1mm M4 TRANS_SANS</ID>
+			<thickness unit="mm">1.000000</thickness>
+		</SASsample>
+		<SASinstrument>
+			<name>LOQ</name>
+			<SASsource>
+				<radiation>Spallation Neutron Source</radiation>
+			</SASsource>
+			<SAScollimation>
+				<aperture name="Disc">
+					<size>
+						<x unit="mm">12.000000</x>
+						<y unit="mm">12.000000</y>
+					</size>
+				</aperture>
+			</SAScollimation>
+			<SASdetector>
+				<name>main-detector-bank</name>
+				<SDD unit="m">4.14902</SDD>
+			</SASdetector>
+			<SASdetector>
+				<name>HAB</name>
+				<SDD unit="m">0.579</SDD>
+			</SASdetector>
+		</SASinstrument>
+		<SASprocess>
+			<name>Mantid generated CanSAS1D XML</name>
+			<date>15-Feb-2018 11:22:36</date>
+			<term name="svn">3.11.0</term>
+			<term name="user_file">K:\masks\USER_LOQ_174C_M3_Xpress_King_12mm_Changer_MAIN.txt</term>
+			<SASprocessnote/>
+		</SASprocess>
+		<SASnote>
+		</SASnote>
+	</SASentry>
+</SASroot>
Index: src/sas/sasview/test/1d_data/cansas1d.xsl
===================================================================
--- src/sas/sasview/test/1d_data/cansas1d.xsl	(revision e6d309ca9e26e7a2a3d9509a7b0784030d7c2335)
+++ src/sas/sasview/test/1d_data/cansas1d.xsl	(revision e6d309ca9e26e7a2a3d9509a7b0784030d7c2335)
@@ -0,0 +1,508 @@
+<?xml version="1.0"?>
+
+<!--
+########### SVN repository information ###################
+# $Date$
+# $Author$
+# $Revision$
+# $HeadURL$
+# $Id$
+########### SVN repository information ###################
+
+Purpose:
+	This stylesheet is used to translate cansas1d:1.1
+	XML data files into a display form for viewing
+	in a web browser such as Firefox or Internet Explorer
+	that supports client-side XSLT formatting.
+
+Usage:
+	xsltproc cansas1d.xsl datafile.xml > datafile.html
+	(or include it as indicated at the documentation site
+	http://www.cansas.org/wgwiki/index.php/cansas1d_documentation)
+
+Copyright (c) 2013, UChicago Argonne, LLC
+This file is distributed subject to a Software License Agreement found
+in the file LICENSE that is included with this distribution. 
+-->
+
+<xsl:stylesheet version="1.1"
+	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+	xmlns:cs="urn:cansas1d:1.1"
+	xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
+	>
+
+	<xsl:template match="/">
+<!-- DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" -->
+		<html>
+			<head>
+				<title>SAS data in canSAS 1-D format</title>
+			</head>
+			<body>
+				<h1>SAS data in canSAS 1-D format</h1>
+				<small>generated using <TT>cansas1d.xsl</TT> from canSAS</small>
+				<BR />
+				<table border="2">
+					<tr>
+						<th bgcolor="lavender">canSAS 1-D XML version:</th>
+						<td><xsl:value-of select="cs:SASroot/@version" /></td>
+					</tr>
+					<tr>
+						<th bgcolor="lavender">number of entries:</th>
+						<td><xsl:value-of select="count(cs:SASroot/cs:SASentry)" /></td>
+					</tr>
+					<xsl:if test="count(/cs:SASroot//cs:SASentry)>1">
+						<!-- if more than one SASentry, make a table of contents -->
+						<xsl:for-each select="/cs:SASroot//cs:SASentry">
+							<tr>
+								<th bgcolor="lavender">SASentry-<xsl:value-of select="position()" /></th>
+								<td>
+									<a href="#SASentry-{generate-id(.)}">
+										<xsl:if test="@name!=''">(<xsl:value-of select="@name" />)</xsl:if>
+										<xsl:value-of select="cs:Title" />
+									</a>
+								</td>
+								<xsl:if test="count(cs:SASdata)>1">
+									<td>
+										<!-- if more than one SASdata, make a local table of contents -->
+										<xsl:for-each select="cs:SASdata">
+											<xsl:if test="position()>1">
+												<xsl:text> | </xsl:text>
+											</xsl:if>
+											<a href="#SASdata-{generate-id(.)}">
+												<xsl:choose>
+													<xsl:when test="cs:name!=''">
+														<xsl:value-of select="cs:name" />
+													</xsl:when>
+													<xsl:when test="@name!=''">
+														<xsl:value-of select="@name" />
+													</xsl:when>
+													<xsl:otherwise>
+														SASdata<xsl:value-of select="position()" />
+													</xsl:otherwise>
+												</xsl:choose>
+											</a>
+										</xsl:for-each>
+									</td>
+								</xsl:if>
+							</tr>
+						</xsl:for-each>
+					</xsl:if>
+				</table>
+				<xsl:apply-templates  />
+				<hr />
+				<small><center>$Id$</center></small>
+			</body>
+		</html>
+	</xsl:template>
+
+	<xsl:template match="cs:SASroot">
+		<xsl:for-each select="cs:SASentry">
+			<hr />
+			<br />
+			<a id="#SASentry-{generate-id(.)}"  name="SASentry-{generate-id(.)}" />
+			<h1>SASentry<xsl:value-of select="position()" />:<xsl:if 
+				test="@name!=''">(<xsl:value-of select="@name" />)</xsl:if>
+				<xsl:value-of select="cs:Title" /></h1>
+			<xsl:if test="count(cs:SASdata)>1">
+				<table border="2">
+					<caption>SASdata contents</caption>
+					<xsl:for-each select="cs:SASdata">
+						<tr>
+							<th>SASdata-<xsl:value-of select="position()" /></th>
+							<td>
+								<a href="#SASdata-{generate-id(.)}">
+									<xsl:choose>
+									<xsl:when test="@name!=''">
+											<xsl:value-of select="@name" />
+										</xsl:when>
+										<xsl:otherwise>
+											SASdata<xsl:value-of select="position()" />
+										</xsl:otherwise>
+									</xsl:choose>
+								</a>
+							</td>
+						</tr>
+					</xsl:for-each>
+				</table>
+			</xsl:if>
+			<br />
+			<table border="2">
+				<tr>
+					<th>SAS data</th>
+					<xsl:for-each select="cs:SAStransmission_spectrum"><th>transmission spectrum: <xsl:value-of select="@name" /></th></xsl:for-each>
+					<th>Selected Metadata</th>
+				</tr>
+				<tr>
+					<td valign="top"><xsl:apply-templates  select="cs:SASdata" /></td>
+					<xsl:apply-templates  select="cs:SAStransmission_spectrum" />
+					<td valign="top">
+						<table border="2">
+							<tr bgcolor="lavender">
+								<th>name</th>
+								<th>value</th>
+								<th>unit</th>
+							</tr>
+							<tr>
+								<td>Title</td>
+								<td><xsl:value-of select="cs:Title" /></td>
+								<td />
+							</tr>
+							<tr>
+								<td>Run</td>
+								<td><xsl:value-of select="cs:Run" /></td>
+								<td />
+							</tr>
+							<tr><xsl:apply-templates  select="run" /></tr>
+							<xsl:apply-templates  select="cs:SASsample" />
+							<xsl:apply-templates  select="cs:SASinstrument" />
+							<xsl:apply-templates  select="cs:SASprocess" />
+							<xsl:apply-templates  select="cs:SASnote" />
+						</table>
+					</td>
+				</tr>
+			</table>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:SAStransmission_spectrum">
+		<td valign="top">
+		    <table border="2">
+			<caption><xsl:if 
+				test="@name!=''"><xsl:value-of select="@name" /></xsl:if> (<xsl:value-of 
+				select="count(cs:Tdata)" /> points)
+				<a id="#Tdata-{generate-id(.)}"  name="Tdata-{generate-id(.)}" />
+			</caption>
+			<tr bgcolor="lavender">
+				<xsl:for-each select="cs:Tdata[1]/*">
+					<th>
+						<xsl:value-of select="name()" /> 
+						<xsl:if test="@unit!=''"> (<xsl:value-of select="@unit" />)</xsl:if>
+					</th>
+				</xsl:for-each>
+			</tr>
+		    	<xsl:for-each select="cs:Tdata">
+					<tr>
+						<xsl:for-each select="*">
+							<xsl:call-template name="td-value"/>
+						</xsl:for-each>
+					</tr>
+				</xsl:for-each>
+			</table>
+		</td>
+	</xsl:template>
+
+	<xsl:template match="cs:SASdata">
+		<a id="#SASdata-{generate-id(.)}"  name="SASdata-{generate-id(.)}" />
+		<table border="2">
+			<caption><xsl:if 
+				test="@name!=''"><xsl:value-of select="@name" /></xsl:if> (<xsl:value-of 
+				select="count(cs:Idata)" /> points)</caption>
+			<tr bgcolor="lavender">
+				<xsl:for-each select="cs:Idata[1]/*">
+					<th>
+						<xsl:value-of select="name()" /> 
+						<xsl:if test="@unit!=''"> (<xsl:value-of select="@unit" />)</xsl:if>
+					</th>
+				</xsl:for-each>
+			</tr>
+			<xsl:for-each select="cs:Idata">
+				<tr>
+					<xsl:for-each select="*">
+						<xsl:call-template name="td-value"/>
+					</xsl:for-each>
+				</tr>
+			</xsl:for-each>
+		</table>
+	</xsl:template>
+
+	<xsl:template match="cs:SASsample">
+		<tr>
+			<td>SASsample</td>
+			<td><xsl:value-of select="@name" /></td>
+			<td />
+		</tr>
+		<xsl:for-each select="*">
+			<xsl:choose>
+				<xsl:when test="name()='position'">
+					<xsl:apply-templates select="." />
+				</xsl:when>
+				<xsl:when test="name()='orientation'">
+					<xsl:apply-templates select="." />
+				</xsl:when>
+				<xsl:otherwise>
+					<xsl:call-template name="tr-parent-value-units"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:SASinstrument">
+		<tr>
+			<td>SASinstrument</td>
+			<td><xsl:value-of select="cs:name" /></td>
+			<td><xsl:value-of select="@name" /></td>
+		</tr>
+		<xsl:for-each select="*">
+			<xsl:choose>
+				<xsl:when test="name()='SASsource'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:when test="name()='SAScollimation'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:when test="name()='SASdetector'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:when test="name()='name'" />
+				<xsl:otherwise>
+					<xsl:call-template name="tr-parent-value-units"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:SASsource">
+		<tr>
+			<td><xsl:value-of select="name()" /></td>
+			<td><xsl:value-of select="@name" /></td>
+			<td />
+		</tr>
+		<xsl:for-each select="*">
+			<xsl:choose>
+				<xsl:when test="name()='beam_size'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:otherwise>
+					<xsl:call-template name="tr-parent-value-units"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:beam_size">
+		<xsl:call-template name="tr-parent-name"/>
+		<xsl:for-each select="*">
+			<xsl:call-template name="tr-grandparent-value-units"/>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:SAScollimation">
+		<xsl:for-each select="*">
+			<xsl:choose>
+				<xsl:when test="name()='aperture'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:otherwise>
+					<xsl:call-template name="tr-parent-value-units"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:aperture">
+		<tr>
+			<td><xsl:value-of select="name(..)" />_<xsl:value-of select="name()" /></td>
+			<td><xsl:value-of select="@name" /></td>
+			<td><xsl:value-of select="@type" /></td>
+		</tr>
+		<xsl:for-each select="*">
+			<xsl:choose>
+				<xsl:when test="name()='size'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:otherwise>
+					<xsl:call-template name="tr-grandparent-value-units"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:size">
+		<tr>
+			<xsl:call-template name="td-grandparent"/>
+			<td><xsl:value-of select="@name" /></td>
+			<td />
+		</tr>
+		<xsl:for-each select="*">
+			<tr>
+				<xsl:call-template name="td-greatgrandparent"/>
+				<xsl:call-template name="td-value"/>
+				<xsl:call-template name="td-unit"/>
+			</tr>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:SASdetector">
+		<tr>
+			<td><xsl:value-of select="name()" /></td>
+			<td><xsl:value-of select="cs:name" /></td>
+			<td><xsl:value-of select="@name" /></td>
+		</tr>
+		<xsl:for-each select="*">
+			<xsl:choose>
+				<xsl:when test="name()='name'" />
+				<xsl:when test="name()='offset'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:when test="name()='orientation'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:when test="name()='beam_center'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:when test="name()='pixel_size'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:otherwise>
+					<xsl:call-template name="tr-parent-value-units"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:orientation">
+		<xsl:call-template name="tr-parent-name"/>
+		<xsl:for-each select="*">
+			<xsl:call-template name="tr-grandparent-value-units"/>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:position">
+		<xsl:call-template name="tr-parent-name"/>
+		<xsl:for-each select="*">
+			<xsl:call-template name="tr-grandparent-value-units"/>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:offset">
+		<xsl:call-template name="tr-parent-name"/>
+		<xsl:for-each select="*">
+			<xsl:call-template name="tr-grandparent-value-units"/>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:beam_center">
+		<xsl:call-template name="tr-parent-name"/>
+		<xsl:for-each select="*">
+			<xsl:call-template name="tr-grandparent-value-units"/>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:pixel_size">
+		<xsl:call-template name="tr-parent-name"/>
+		<xsl:for-each select="*">
+			<xsl:call-template name="tr-grandparent-value-units"/>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:term">
+		<tr>
+			<td><xsl:value-of select="@name" /></td>
+			<xsl:call-template name="td-value"/>
+			<xsl:call-template name="td-unit"/>
+		</tr>
+	</xsl:template>
+
+	<xsl:template match="cs:SASprocessnote" mode="standard">
+		<tr>
+			<td><xsl:value-of select="name()" /></td>
+			<xsl:call-template name="td-value"/>
+			<td><xsl:value-of select="@name" /></td>
+		</tr>
+	</xsl:template>
+	
+	<xsl:template match="cs:SASprocessnote" mode="Indra">
+		<!-- 
+			Customization for APS USAXS metadata
+			These will be IgorPro wavenote variables
+		-->
+		<xsl:for-each select="cs:APS_USAXS">
+			<!-- ignore any other elements at this point -->
+			<tr>
+				<td bgcolor="lightgrey"><xsl:value-of select="name(..)" /></td>
+				<td bgcolor="lightgrey"><xsl:value-of select="name()" /></td>
+				<td bgcolor="lightgrey"><xsl:value-of select="@name" /></td>
+			</tr>
+			<xsl:for-each select="*">
+				<tr>
+					<td><xsl:value-of select="name()" /></td>
+					<xsl:call-template name="td-value"/>
+					<td><xsl:value-of select="@name" /></td>
+				</tr>
+			</xsl:for-each>
+		</xsl:for-each>
+	</xsl:template>
+	
+	<xsl:template match="cs:SASprocess">
+		<tr>
+			<td><xsl:value-of select="name()" /></td>
+			<td><xsl:value-of select="cs:name" /></td>
+			<td><xsl:value-of select="@name" /></td>
+		</tr>
+		<xsl:for-each select="*">
+			<xsl:choose>
+				<xsl:when test="name()='name'" />
+				<xsl:when test="name()='term'"><xsl:apply-templates select="." /></xsl:when>
+				<xsl:when test="name()='SASprocessnote'">
+					<xsl:choose>
+						<xsl:when test="../@name='Indra'"><xsl:apply-templates select="." mode="Indra"/></xsl:when>
+						<xsl:otherwise><xsl:apply-templates select="." mode="standard"/></xsl:otherwise>
+					</xsl:choose>
+				</xsl:when>
+				<xsl:otherwise>
+					<tr>
+						<xsl:call-template name="td-grandparent"/>
+						<xsl:call-template name="td-value"/>
+						<td />
+					</tr>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+
+	<xsl:template match="cs:SASnote">
+		<xsl:if test="@name!=''">
+			<tr>
+				<td><xsl:value-of select="name()" /></td>
+				<xsl:call-template name="td-value"/>
+				<td><xsl:value-of select="@name" /></td>
+			</tr>
+		</xsl:if>
+	</xsl:template>
+	
+	<!-- =============== convenience routines =============== -->
+	
+	<xsl:template name="tr-parent-value-units">
+		<tr>
+			<xsl:call-template name="td-parent"/>
+			<xsl:call-template name="td-value"/>
+			<xsl:call-template name="td-unit"/>
+		</tr>
+	</xsl:template>
+	
+	<xsl:template name="tr-grandparent-value-units">
+		<tr>
+			<xsl:call-template name="td-grandparent"/>
+			<xsl:call-template name="td-value"/>
+			<xsl:call-template name="td-unit"/>
+		</tr>
+	</xsl:template>
+	
+	<xsl:template name="tr-parent-name">
+		<tr>
+			<xsl:call-template name="td-parent"/>
+			<td><xsl:value-of select="@name" /></td>
+			<td />
+		</tr>
+	</xsl:template>
+	
+	<xsl:template name="td-value">
+		<td><xsl:value-of select="." /></td>
+	</xsl:template>
+	
+	<xsl:template name="td-parent">
+		<td><xsl:value-of select="name(..)" 
+			/>_<xsl:value-of select="name()" 
+			/></td>
+	</xsl:template>
+	
+	<xsl:template name="td-grandparent">
+		<td><xsl:value-of select="name(../..)" 
+			/>_<xsl:value-of select="name(..)" 
+			/>_<xsl:value-of select="name()" 
+			/></td>
+	</xsl:template>
+	
+	<xsl:template name="td-greatgrandparent">
+		<td><xsl:value-of select="name(../../..)" 
+			/>_<xsl:value-of select="name(../..)" 
+			/>_<xsl:value-of select="name(..)" 
+			/>_<xsl:value-of select="name()" 
+			/></td>
+	</xsl:template>
+	
+	<xsl:template name="td-unit">
+		<td><xsl:value-of select="@unit" /></td>
+	</xsl:template>
+
+</xsl:stylesheet>
