cansas1d SASroot: Difference between revisions

From canSAS
(define the terms)
 
No edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<gallery caption="block diagrams">
Image:cansas1d-v1-1-SASroot.png
</gallery>
* parent: [[cansas1d_XML_header | XML header]]
{| {{Tablestyle}}
{| {{Tablestyle}}
|-
|-
Line 7: Line 13:
! {{Headcellstyle}} | Attributes
! {{Headcellstyle}} | Attributes
|-
|-
|| ''xml declaration''
|| [[cansas1d_SASentry | '''SASentry''']]
|| header
| align="center" | [1..1]
|| <pre><?xml version="1.0"?></pre>Required first line of every well-formed XML file.
|| type="text/xsl"
|-
|| ''stylesheet''
|| header
| align="center" | [0..1]
|| <pre><?xml-stylesheet type="text/xsl" href="example.xsl" ?></pre>Declares that ''example.xsl'' (needs to be in the local directory) will be the default stylesheet to an XML visualization tool.  Change ''example.xsl'' to indicate a different stylesheet in the local directory.
 
XML rules actually allow for multiple stylesheet declarations.  Explore this possibility as your own adventure.
|| type="text/xsl"<br />href="example.xsl"
|-
|| [[cansas1d_SASroot | '''SASroot''']]
|| container
|| container
| align="center" | [1..1]
| align="center" | [1..unbounded]
|| The canSAS reduced 1-D SAS data (cansas1d/1.0) will be in the '''SASroot''' database. This is similar to NXroot used by NeXus.
|| A single SAS scan is reported in a [[cansas1d_SASentry | '''SASentry''']]. Include as many [[cansas1d_SASentry | '''SASentry''']] elements as desired. They may contain related or unrelated data.
<pre><SASroot version="1.0"
'''name''' is an optional attribute to provide a string for this [[cansas1d_SASentry | '''SASentry''']]. (Use of this string is not defined by this standard.)
    xmlns="cansas1d/1.0"
|| name="short-name"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="cansas1d/1.0 http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d.xsd"
    ></pre>
|| version="1.0"<br />xmlns="{this-namespace-URI}"<br />xmlns:xsi="{URL-of-governing-XML-Schema}"<br />xsi:schemaLocation="{this-namespace-URI} {URL-to-find-XML-Schema}"
|}
|}

Latest revision as of 20:39, 25 April 2008

Name Type occurrence Description Attributes
SASentry container [1..unbounded] A single SAS scan is reported in a SASentry. Include as many SASentry elements as desired. They may contain related or unrelated data.

name is an optional attribute to provide a string for this SASentry. (Use of this string is not defined by this standard.)

name="short-name"