cansas1d XML header: Difference between revisions
From canSAS
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<gallery caption="block diagrams"> | |||
Image:cansas1d-v1-1-SASroot.png | |||
</gallery> | |||
{| {{Tablestyle}} | {| {{Tablestyle}} | ||
|- | |- | ||
Line 38: | Line 42: | ||
|| 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}" | || 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 14:42, 15 April 2008
Name | Type | occurrence | Description | Attributes |
---|---|---|---|---|
xml declaration | header | [1..1] | <?xml version="1.0"?>Required first line of every well-formed XML file. version="1.0" refers to version 1.0 of the XML standard. |
version="1.0" |
stylesheet | header | [0..1] | <?xml-stylesheet type="text/xsl" href="example.xsl" ?>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. Refer to W3 Schools XSLT Help for assistance in constructing XSLT files. XML rules actually allow for multiple stylesheet declarations. Explore this possibility as your own adventure. |
type="text/xsl" href="example.xsl" |
SASroot | container | [1..1] | The canSAS reduced 1-D SAS data (cansas1d/1.0) will be in the SASroot database.
(This is similar to NXroot used by NeXus.)
<SASroot version="1.0" xmlns="cansas1d/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="cansas1d/1.0 http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d.xsd" > |
version="1.0" xmlns="{this-namespace-URI}" xmlns:xsi="{URL-of-governing-XML-Schema}" xsi:schemaLocation="{this-namespace-URI} {URL-to-find-XML-Schema}" |