This file is indexed.

/usr/share/doc/libstarlink-ast-doc/node178.html is in libstarlink-ast-doc 8.6.2+dfsg-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Storing AST Objects as XML (XmlChan)</TITLE>
<META NAME="description" CONTENT="Storing AST Objects as XML (XmlChan)">
<META NAME="keywords" CONTENT="sun211">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="sun211.css">

<LINK REL="next" HREF="node180.html">
<LINK REL="previous" HREF="node170.html">
<LINK REL="up" HREF="sun211.html">
<LINK REL="next" HREF="node179.html">
</HEAD>

<BODY >

<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html2295"
  HREF="node179.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html2293"
  HREF="sun211.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html2287"
  HREF="node177.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html2296"
  HREF="node179.html">Reading IVOA Space-Time-Coordinates XML</A>
<B> Up:</B> <A NAME="tex2html2294"
  HREF="sun211.html">sun211</A>
<B> Previous:</B> <A NAME="tex2html2288"
  HREF="node177.html">Writing Foreign WCS Information</A>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION000180000000000000000"></A><A NAME="ss:xmlchan"></A>
<BR>
Storing AST Objects as XML (XmlChan)
</H1>

<P>
XMLhttp://www.w3.org/XML/
is fast becoming the standard format for passing structured data around
the internet, and much general purpose software has been written for
tasks such as the parsing, editing, display and transformation of XML
data. The XmlChanXmlChan class (a specialised form of ChannelChannel) provides
facilities for storing AST objects externally in the form of XML documents,
thus allowing such software to be used.

<P>
The primary XML format used by the XmlChan class is a fairly close
transliteration of the AST native format produced by the basic Channel
class. Currently, there is no DTD or schema defining the structure of data
produced in this format by an XmlChan. The following is a native AST
representation of a simple 1-D FrameFrame (including comments and with the FullFull
attribute set to zero so that some default attribute values are included
as extra comments):

<P>
<SMALL CLASS="SMALL">
<BR>
<IMG
 WIDTH="568" HEIGHT="202" ALIGN="BOTTOM" BORDER="0"
 SRC="img276.png"
 ALT="\begin{terminalv}
Begin Frame  ...">
<BR>
</SMALL>
<P>
The corresponding XmlChan output would look like:

<P>
<SMALL CLASS="SMALL">
<BR>
<IMG
 WIDTH="617" HEIGHT="299" ALIGN="BOTTOM" BORDER="0"
 SRC="img277.png"
 ALT="\begin{terminalv}
&lt;Frame xmlns=''http://www.starlink.ac.uk/ast/xml/''
desc=''C...
...d=''true'' value=''cm'' desc=''Axis units''/&gt;
&lt;/Axis&gt;
&lt;/Frame&gt;
\end{terminalv}">
<BR>
</SMALL>
<P>
Notes:

<P>

<OL>
<LI>The AST class name is used as the name for an XML element which contain
a description of an AST object.

<P>
</LI>
<LI>AST attributes are described by XML elements with the name
``_attribute''. Unfortunately, the word ``attribute'' is also used by XML
to refer to a ``name=value'' pair within an element start tag. So for
instance, the ``TitleTitle'' attribute of the AST Frame object is described
within an XML element with name ``_attribute'' in which the XML attribute
``name'' has the value ``Title'', and the XML attribute ``value'' has the
value ``1-d coordinate system''. The moral is always to be clear clear
about the context (AST or XML) in which the word <SPAN  CLASS="textit">attribute</SPAN> is being
used!

<P>
</LI>
<LI>The XML includes comments both as XML attributes with the name ``desc'',
and as separate comment tags.

<P>
</LI>
<LI>Elements which describe default values are identified by the fact
that they have an XML attribute called ``default'' set to the value
``true''. These elements are ignored when being read back into an XmlChan.

<P>
</LI>
<LI>The outer-most XML element of an AST object will set the default
namespace to <code>http://www.starlink.ac.uk/ast/xml/</code> which will be
inherited by all nested elements.

<P>
</LI>
</OL>

<P>
The XmlChan class changes the default value for the CommentComment and Full
attributes (inherited from the base Channel class) to zero and -1,
resulting in terse output by default. With the default values for these
attributes, the above XML is reduced to the following:

<P>
<SMALL CLASS="SMALL">
<BR>
<IMG
 WIDTH="491" HEIGHT="127" ALIGN="BOTTOM" BORDER="0"
 SRC="img278.png"
 ALT="\begin{terminalv}
&lt;Frame xmlns=''http://www.starlink.ac.uk/ast/xml/''&gt;
&lt;_attri...
... name=''Unit'' quoted=''true'' value=''cm''/&gt;
&lt;/Axis&gt;
&lt;/Frame&gt;
\end{terminalv}">
<BR>
</SMALL>
<P>
The XmlChan class uses the SkipSkip attributes very similarly to the Channel
class. If Skip is zero (the default) then an error will be reported if the text
supplied by the source function does not begin with an AST ObjectObject. If
Skip is non-zero, then initial text is skipped over without error until
the start of an AST object is found. this allows an AST object to be
located within a larger XML document.

<P>
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>

<UL CLASS="ChildLinks">
<LI><A NAME="tex2html2297"
  HREF="node179.html">Reading IVOA Space-Time-Coordinates XML (STC-X) Descriptions</A>
</UL>
<!--End of Table of Child-Links-->

<DIV CLASS="navigation"><HR>
<!--Navigation Panel-->
<A NAME="tex2html2295"
  HREF="node179.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="/usr/share/latex2html/icons/next.png"></A> 
<A NAME="tex2html2293"
  HREF="sun211.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="/usr/share/latex2html/icons/up.png"></A> 
<A NAME="tex2html2287"
  HREF="node177.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="/usr/share/latex2html/icons/prev.png"></A>   
<BR>
<B> Next:</B> <A NAME="tex2html2296"
  HREF="node179.html">Reading IVOA Space-Time-Coordinates XML</A>
<B> Up:</B> <A NAME="tex2html2294"
  HREF="sun211.html">sun211</A>
<B> Previous:</B> <A NAME="tex2html2288"
  HREF="node177.html">Writing Foreign WCS Information</A></DIV>
<!--End of Navigation Panel-->

</BODY>
</HTML>