1 |
553
|
tao
|
<?xml version="1.0"?>
|
2 |
|
|
<!--
|
3 |
|
|
* '$RCSfile$'
|
4 |
|
|
* Authors: Matthew Brooke
|
5 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
6 |
|
|
* National Center for Ecological Analysis and Synthesis
|
7 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
8 |
|
|
*
|
9 |
|
|
* '$Author$'
|
10 |
|
|
* '$Date$'
|
11 |
|
|
* '$Revision$'
|
12 |
|
|
*
|
13 |
|
|
* This program is free software; you can redistribute it and/or modify
|
14 |
|
|
* it under the terms of the GNU General Public License as published by
|
15 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
16 |
|
|
* (at your option) any later version.
|
17 |
|
|
*
|
18 |
|
|
* This program is distributed in the hope that it will be useful,
|
19 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
|
|
* GNU General Public License for more details.
|
22 |
|
|
*
|
23 |
|
|
* You should have received a copy of the GNU General Public License
|
24 |
|
|
* along with this program; if not, write to the Free Software
|
25 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
26 |
|
|
*
|
27 |
|
|
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
|
28 |
|
|
* convert an XML file that is valid with respect to the eml-variable.dtd
|
29 |
|
|
* module of the Ecological Metadata Language (EML) into an HTML format
|
30 |
|
|
* suitable for rendering with modern web browsers.
|
31 |
|
|
-->
|
32 |
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
33 |
|
|
|
34 |
|
|
<xsl:output method="html" encoding="iso-8859-1"/>
|
35 |
|
|
|
36 |
1645
|
tao
|
<xsl:template name="physical">
|
37 |
1653
|
tao
|
<xsl:param name="docid"/>
|
38 |
|
|
<xsl:param name="level">entity</xsl:param>
|
39 |
|
|
<xsl:param name="entitytype"/>
|
40 |
|
|
<xsl:param name="entityindex"/>
|
41 |
|
|
<xsl:param name="physicalindex"/>
|
42 |
|
|
<xsl:param name="distributionindex"/>
|
43 |
1645
|
tao
|
<xsl:param name="physicalfirstColStyle"/>
|
44 |
|
|
<xsl:param name="notshowdistribution"/>
|
45 |
1696
|
tao
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
46 |
1645
|
tao
|
<xsl:choose>
|
47 |
|
|
<xsl:when test="references!=''">
|
48 |
|
|
<xsl:variable name="ref_id" select="references"/>
|
49 |
|
|
<xsl:variable name="references" select="$ids[@id=$ref_id]" />
|
50 |
|
|
<xsl:for-each select="$references">
|
51 |
|
|
<xsl:call-template name="physicalcommon">
|
52 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
53 |
|
|
<xsl:with-param name="notshowdistribution" select="$notshowdistribution"/>
|
54 |
|
|
</xsl:call-template>
|
55 |
|
|
</xsl:for-each>
|
56 |
|
|
</xsl:when>
|
57 |
|
|
<xsl:otherwise>
|
58 |
|
|
<xsl:call-template name="physicalcommon">
|
59 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
60 |
|
|
<xsl:with-param name="notshowdistribution" select="$notshowdistribution"/>
|
61 |
|
|
</xsl:call-template>
|
62 |
|
|
</xsl:otherwise>
|
63 |
|
|
</xsl:choose>
|
64 |
|
|
</table>
|
65 |
553
|
tao
|
</xsl:template>
|
66 |
1645
|
tao
|
|
67 |
|
|
<xsl:template name="physicalcommon">
|
68 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
69 |
|
|
<xsl:param name="notshowdistribution"/>
|
70 |
1653
|
tao
|
<xsl:param name="docid"/>
|
71 |
|
|
<xsl:param name="level">entity</xsl:param>
|
72 |
|
|
<xsl:param name="entitytype"/>
|
73 |
|
|
<xsl:param name="entityindex"/>
|
74 |
|
|
<xsl:param name="physicalindex"/>
|
75 |
|
|
<xsl:param name="distributionindex"/>
|
76 |
|
|
|
77 |
1645
|
tao
|
<xsl:call-template name="physicalobjectName">
|
78 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
79 |
|
|
</xsl:call-template>
|
80 |
|
|
<xsl:call-template name="physicalsize">
|
81 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
82 |
|
|
</xsl:call-template>
|
83 |
|
|
<xsl:call-template name="physicalauthentication">
|
84 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
85 |
|
|
</xsl:call-template>
|
86 |
|
|
<xsl:call-template name="physicalcompressionMethod">
|
87 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
88 |
|
|
</xsl:call-template>
|
89 |
|
|
<xsl:call-template name="physicalencodingMethod">
|
90 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
91 |
|
|
</xsl:call-template>
|
92 |
|
|
<xsl:call-template name="physicalcharacterEncoding">
|
93 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
94 |
|
|
</xsl:call-template>
|
95 |
|
|
<xsl:call-template name="physicaltextFormat">
|
96 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
97 |
|
|
</xsl:call-template>
|
98 |
1648
|
tao
|
<xsl:call-template name="physicalexternallyDefinedFormat">
|
99 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
100 |
|
|
</xsl:call-template>
|
101 |
|
|
<xsl:call-template name="physicalbinaryRasterFormat">
|
102 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
103 |
|
|
</xsl:call-template>
|
104 |
|
|
<xsl:if test="$notshowdistribution=''">
|
105 |
1653
|
tao
|
<xsl:for-each select="distribution">
|
106 |
|
|
<xsl:call-template name="distribution">
|
107 |
|
|
<xsl:with-param name="disfirstColStyle" select="$physicalfirstColStyle"/>
|
108 |
1654
|
tao
|
<xsl:with-param name="dissubHeaderStyle" select="$subHeaderStyle"/>
|
109 |
|
|
<xsl:with-param name="docid" select="$docid"/>
|
110 |
|
|
<xsl:with-param name="level">entitylevel</xsl:with-param>
|
111 |
|
|
<xsl:with-param name="entitytype" select="$entitytype"/>
|
112 |
|
|
<xsl:with-param name="entityindex" select="$entityindex"/>
|
113 |
|
|
<xsl:with-param name="physicalindex" select="$physicalindex"/>
|
114 |
|
|
<xsl:with-param name="distributionindex" select="position()"/>
|
115 |
1653
|
tao
|
</xsl:call-template>
|
116 |
|
|
</xsl:for-each>
|
117 |
1648
|
tao
|
</xsl:if>
|
118 |
1653
|
tao
|
|
119 |
1645
|
tao
|
</xsl:template>
|
120 |
|
|
|
121 |
|
|
<xsl:template name="physicalobjectName">
|
122 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
123 |
|
|
<xsl:for-each select="objectName">
|
124 |
|
|
<tr>
|
125 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
126 |
1696
|
tao
|
Object Name:</td>
|
127 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
128 |
|
|
<xsl:value-of select="."/></td>
|
129 |
|
|
</tr>
|
130 |
|
|
</xsl:for-each>
|
131 |
|
|
</xsl:template>
|
132 |
|
|
|
133 |
|
|
<xsl:template name="physicalsize">
|
134 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
135 |
|
|
<xsl:for-each select="size">
|
136 |
|
|
<tr>
|
137 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
138 |
1696
|
tao
|
Size:</td>
|
139 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
140 |
|
|
<xsl:value-of select="."/></td>
|
141 |
|
|
</tr>
|
142 |
|
|
</xsl:for-each>
|
143 |
|
|
</xsl:template>
|
144 |
|
|
|
145 |
|
|
<xsl:template name="physicalauthentication">
|
146 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
147 |
|
|
<xsl:for-each select="authentication">
|
148 |
|
|
<tr>
|
149 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
150 |
1696
|
tao
|
Authentication:</td>
|
151 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
152 |
|
|
<xsl:value-of select="."/></td>
|
153 |
|
|
</tr>
|
154 |
|
|
</xsl:for-each>
|
155 |
|
|
</xsl:template>
|
156 |
|
|
|
157 |
|
|
<xsl:template name="physicalcompressionMethod">
|
158 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
159 |
|
|
<xsl:for-each select="compressionMethod">
|
160 |
|
|
<tr>
|
161 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
162 |
1696
|
tao
|
Compression Method:</td>
|
163 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
164 |
|
|
<xsl:value-of select="."/></td>
|
165 |
|
|
</tr>
|
166 |
|
|
</xsl:for-each>
|
167 |
|
|
</xsl:template>
|
168 |
|
|
|
169 |
|
|
<xsl:template name="physicalencodingMethod">
|
170 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
171 |
|
|
<xsl:for-each select="encodingMethod">
|
172 |
|
|
<tr>
|
173 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
174 |
1696
|
tao
|
Encoding Method:</td>
|
175 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
176 |
|
|
<xsl:value-of select="."/></td>
|
177 |
|
|
</tr>
|
178 |
|
|
</xsl:for-each>
|
179 |
|
|
</xsl:template>
|
180 |
|
|
|
181 |
|
|
<xsl:template name="physicalcharacterEncoding">
|
182 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
183 |
|
|
<xsl:for-each select="characterEncoding">
|
184 |
|
|
<tr>
|
185 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
186 |
1696
|
tao
|
Character Encoding:</td>
|
187 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
188 |
|
|
<xsl:value-of select="."/></td>
|
189 |
|
|
</tr>
|
190 |
|
|
</xsl:for-each>
|
191 |
|
|
</xsl:template>
|
192 |
|
|
|
193 |
|
|
<!--***********************************************************
|
194 |
|
|
TextFormat templates
|
195 |
|
|
***********************************************************-->
|
196 |
|
|
|
197 |
|
|
<xsl:template name="physicaltextFormat">
|
198 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
199 |
|
|
<xsl:for-each select="dataFormat/textFormat">
|
200 |
|
|
<tr>
|
201 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
202 |
|
|
Text Format:</td>
|
203 |
1706
|
tao
|
<td width="{$secondColWidth}">
|
204 |
|
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault">
|
205 |
|
|
<xsl:apply-templates>
|
206 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
207 |
|
|
</xsl:apply-templates>
|
208 |
|
|
</table>
|
209 |
|
|
</td>
|
210 |
1645
|
tao
|
</tr>
|
211 |
1706
|
tao
|
|
212 |
1645
|
tao
|
</xsl:for-each>
|
213 |
|
|
|
214 |
|
|
</xsl:template>
|
215 |
|
|
|
216 |
553
|
tao
|
|
217 |
1645
|
tao
|
<xsl:template match="numHeaderLines">
|
218 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
219 |
553
|
tao
|
<tr>
|
220 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Number of Header Lines:</td>
|
221 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
222 |
|
|
</tr>
|
223 |
|
|
</xsl:template>
|
224 |
|
|
|
225 |
1645
|
tao
|
<xsl:template match="numFooterLines">
|
226 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
227 |
553
|
tao
|
<tr>
|
228 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Number of Foot Lines:</td>
|
229 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
230 |
|
|
</tr>
|
231 |
|
|
</xsl:template>
|
232 |
1645
|
tao
|
|
233 |
|
|
<xsl:template match="recordDelimiter">
|
234 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
235 |
553
|
tao
|
<tr>
|
236 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Record Delimiter:</td>
|
237 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
238 |
553
|
tao
|
</tr>
|
239 |
|
|
</xsl:template>
|
240 |
1645
|
tao
|
|
241 |
|
|
<xsl:template match="physicalLineDelimiter">
|
242 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
243 |
553
|
tao
|
<tr>
|
244 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Line Delimiter:</td>
|
245 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
246 |
|
|
</tr>
|
247 |
553
|
tao
|
</xsl:template>
|
248 |
1645
|
tao
|
|
249 |
|
|
<xsl:template match="numPhysicalLinePerRecord">
|
250 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
251 |
553
|
tao
|
<tr>
|
252 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Line Number For One Record:</td>
|
253 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
254 |
|
|
</tr>
|
255 |
|
|
</xsl:template>
|
256 |
1645
|
tao
|
|
257 |
|
|
<xsl:template match="maxRecordLength">
|
258 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
259 |
553
|
tao
|
<tr>
|
260 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Maximum Record Length:</td>
|
261 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
262 |
|
|
</tr>
|
263 |
|
|
</xsl:template>
|
264 |
1645
|
tao
|
|
265 |
|
|
<xsl:template match="attributeOrientation">
|
266 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
267 |
553
|
tao
|
<tr>
|
268 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Maximum Record Length:</td>
|
269 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
270 |
|
|
</tr>
|
271 |
|
|
</xsl:template>
|
272 |
1645
|
tao
|
|
273 |
|
|
<xsl:template match="simpleDelimited">
|
274 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
275 |
553
|
tao
|
<tr>
|
276 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Simple Delimited:</td>
|
277 |
1645
|
tao
|
<td width="{$secondColWidth}">
|
278 |
1696
|
tao
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
279 |
1645
|
tao
|
<xsl:apply-templates>
|
280 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
281 |
|
|
</xsl:apply-templates>
|
282 |
|
|
</table>
|
283 |
|
|
</td>
|
284 |
553
|
tao
|
</tr>
|
285 |
|
|
</xsl:template>
|
286 |
1645
|
tao
|
|
287 |
|
|
<xsl:template match="complex">
|
288 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
289 |
553
|
tao
|
<tr>
|
290 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Complex Delimited:</td>
|
291 |
1645
|
tao
|
<td width="{$secondColWidth}">
|
292 |
1696
|
tao
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
293 |
1645
|
tao
|
<xsl:call-template name="textFixed">
|
294 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
295 |
|
|
</xsl:call-template>
|
296 |
|
|
<xsl:call-template name="textDelimited">
|
297 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
298 |
|
|
</xsl:call-template>
|
299 |
|
|
</table>
|
300 |
|
|
</td>
|
301 |
553
|
tao
|
</tr>
|
302 |
|
|
</xsl:template>
|
303 |
1645
|
tao
|
|
304 |
|
|
|
305 |
|
|
<xsl:template name="textFixed">
|
306 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
307 |
|
|
<tr>
|
308 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Text Fixed:</td>
|
309 |
1645
|
tao
|
<td width="{$secondColWidth}">
|
310 |
1696
|
tao
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
311 |
1645
|
tao
|
<xsl:apply-templates>
|
312 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
313 |
|
|
</xsl:apply-templates>
|
314 |
|
|
</table>
|
315 |
|
|
</td>
|
316 |
|
|
</tr>
|
317 |
|
|
</xsl:template>
|
318 |
|
|
|
319 |
|
|
<xsl:template name="textDelimited">
|
320 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
321 |
|
|
<tr>
|
322 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Text Delimited:</td>
|
323 |
1645
|
tao
|
<td width="{$secondColWidth}">
|
324 |
1696
|
tao
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
325 |
1645
|
tao
|
<xsl:apply-templates>
|
326 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
327 |
|
|
</xsl:apply-templates>
|
328 |
|
|
</table>
|
329 |
|
|
</td>
|
330 |
|
|
</tr>
|
331 |
|
|
</xsl:template>
|
332 |
553
|
tao
|
|
333 |
|
|
<xsl:template match="quoteCharacter">
|
334 |
1645
|
tao
|
<xsl:param name="physicalfirstColStyle"/>
|
335 |
553
|
tao
|
<tr>
|
336 |
1696
|
tao
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Quote Character:</td>
|
337 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
338 |
|
|
</tr>
|
339 |
|
|
</xsl:template>
|
340 |
|
|
|
341 |
|
|
<xsl:template match="literalCharacter">
|
342 |
1645
|
tao
|
<xsl:param name="physicalfirstColStyle"/>
|
343 |
553
|
tao
|
<tr>
|
344 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Literal Character:</td>
|
345 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
346 |
|
|
</tr>
|
347 |
|
|
</xsl:template>
|
348 |
|
|
|
349 |
1645
|
tao
|
|
350 |
|
|
<xsl:template match="fieldDelimiter">
|
351 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
352 |
553
|
tao
|
<tr>
|
353 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Field Delimeter:</td>
|
354 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
355 |
|
|
</tr>
|
356 |
|
|
</xsl:template>
|
357 |
|
|
|
358 |
1645
|
tao
|
<xsl:template match="fieldWidth">
|
359 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
360 |
1696
|
tao
|
<tr><td class="{$firstColStyle}" width="{$firstColWidth}">Field Width:</td>
|
361 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
362 |
|
|
</tr>
|
363 |
|
|
</xsl:template>
|
364 |
|
|
|
365 |
|
|
<xsl:template match="lineNumber">
|
366 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
367 |
1696
|
tao
|
<tr><td class="{$firstColStyle}" width="{$firstColWidth}">Line Number:</td>
|
368 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
369 |
|
|
</tr>
|
370 |
|
|
</xsl:template>
|
371 |
553
|
tao
|
|
372 |
1645
|
tao
|
<xsl:template match="fieldStartColumn">
|
373 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
374 |
553
|
tao
|
<tr>
|
375 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Field Start Column:</td>
|
376 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
377 |
|
|
</tr>
|
378 |
|
|
</xsl:template>
|
379 |
1645
|
tao
|
|
380 |
|
|
|
381 |
|
|
<!--***********************************************************
|
382 |
|
|
externallyDefinedFormat templates
|
383 |
|
|
***********************************************************-->
|
384 |
|
|
<xsl:template name="physicalexternallyDefinedFormat">
|
385 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
386 |
|
|
<xsl:for-each select="dataFormat/externallyDefinedFormat">
|
387 |
|
|
<tr>
|
388 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
389 |
|
|
Externally Defined Format:</td>
|
390 |
1706
|
tao
|
<td width="{$secondColWidth}">
|
391 |
|
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault">
|
392 |
|
|
<xsl:apply-templates>
|
393 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
394 |
|
|
</xsl:apply-templates>
|
395 |
|
|
</table>
|
396 |
|
|
</td>
|
397 |
1645
|
tao
|
</tr>
|
398 |
1706
|
tao
|
</xsl:for-each>
|
399 |
1645
|
tao
|
</xsl:template>
|
400 |
|
|
|
401 |
|
|
<xsl:template match="formatName">
|
402 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
403 |
|
|
<tr>
|
404 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Format Name:</td>
|
405 |
553
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
406 |
|
|
</tr>
|
407 |
|
|
</xsl:template>
|
408 |
1645
|
tao
|
|
409 |
|
|
<xsl:template match="formatVersion">
|
410 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
411 |
|
|
<tr>
|
412 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Format Version:</td>
|
413 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
414 |
|
|
</tr>
|
415 |
|
|
</xsl:template>
|
416 |
|
|
|
417 |
|
|
<xsl:template match="citation">
|
418 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
419 |
|
|
<tr>
|
420 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Citation:</td>
|
421 |
1706
|
tao
|
<td class="{$secondColStyle}">
|
422 |
1645
|
tao
|
<xsl:call-template name="citation">
|
423 |
|
|
<xsl:with-param name="citationfirstColStyle" select="physicalfirstColStyle"/>
|
424 |
|
|
</xsl:call-template>
|
425 |
|
|
</td>
|
426 |
|
|
</tr>
|
427 |
|
|
</xsl:template>
|
428 |
|
|
|
429 |
|
|
<!--***********************************************************
|
430 |
|
|
binaryRasterFormat templates
|
431 |
|
|
***********************************************************-->
|
432 |
|
|
<xsl:template name="physicalbinaryRasterFormat">
|
433 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
434 |
|
|
<xsl:for-each select="dataFormat/binaryRasterFormat">
|
435 |
|
|
<tr>
|
436 |
|
|
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">
|
437 |
|
|
Binary Raster Format:</td>
|
438 |
1706
|
tao
|
<td width="{$secondColWidth}">
|
439 |
|
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault">
|
440 |
|
|
<xsl:apply-templates>
|
441 |
|
|
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
|
442 |
|
|
</xsl:apply-templates>
|
443 |
|
|
</table>
|
444 |
|
|
</td>
|
445 |
1645
|
tao
|
</tr>
|
446 |
1706
|
tao
|
|
447 |
1696
|
tao
|
</xsl:for-each>
|
448 |
1645
|
tao
|
</xsl:template>
|
449 |
|
|
|
450 |
|
|
<xsl:template match="rowColumnOrientation">
|
451 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
452 |
|
|
<tr>
|
453 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Orientation:</td>
|
454 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
455 |
|
|
<xsl:value-of select="."/>
|
456 |
|
|
</td>
|
457 |
|
|
</tr>
|
458 |
|
|
</xsl:template>
|
459 |
|
|
|
460 |
|
|
<xsl:template match="multiBand">
|
461 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
462 |
|
|
<tr>
|
463 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Multiple Bands:</td>
|
464 |
1706
|
tao
|
<td class="{$secondColStyle}">
|
465 |
1696
|
tao
|
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
466 |
1645
|
tao
|
<tr>
|
467 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Spectral Bands:</td>
|
468 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
469 |
|
|
<xsl:value-of select="./nbands"/>
|
470 |
|
|
</td>
|
471 |
|
|
</tr>
|
472 |
|
|
<tr>
|
473 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Layout:</td>
|
474 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
475 |
|
|
<xsl:value-of select="./layout"/>
|
476 |
|
|
</td>
|
477 |
|
|
</tr>
|
478 |
|
|
</table>
|
479 |
|
|
</td>
|
480 |
|
|
</tr>
|
481 |
|
|
</xsl:template>
|
482 |
|
|
|
483 |
|
|
|
484 |
|
|
<xsl:template match="nbits">
|
485 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
486 |
|
|
<tr>
|
487 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bits (/pixel/band):</td>
|
488 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
489 |
|
|
<xsl:value-of select="."/>
|
490 |
|
|
</td>
|
491 |
|
|
</tr>
|
492 |
|
|
</xsl:template>
|
493 |
|
|
|
494 |
|
|
<xsl:template match="byteorder">
|
495 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
496 |
|
|
<tr>
|
497 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Byte Order:</td>
|
498 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
499 |
|
|
<xsl:value-of select="."/>
|
500 |
|
|
</td>
|
501 |
|
|
</tr>
|
502 |
|
|
</xsl:template>
|
503 |
|
|
|
504 |
|
|
<xsl:template match="skipbytes">
|
505 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
506 |
|
|
<tr>
|
507 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Skipped Bytes:</td>
|
508 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
509 |
|
|
<xsl:value-of select="."/>
|
510 |
|
|
</td>
|
511 |
|
|
</tr>
|
512 |
|
|
</xsl:template>
|
513 |
|
|
|
514 |
|
|
<xsl:template match="bandrowbytes">
|
515 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
516 |
|
|
<tr>
|
517 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bytes (/band/row):</td>
|
518 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
519 |
|
|
<xsl:value-of select="."/>
|
520 |
|
|
</td>
|
521 |
|
|
</tr>
|
522 |
|
|
</xsl:template>
|
523 |
|
|
|
524 |
|
|
<xsl:template match="totalrowbytes">
|
525 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
526 |
|
|
<tr>
|
527 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Total Number of Byte (/row):</td>
|
528 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
529 |
|
|
<xsl:value-of select="."/>
|
530 |
|
|
</td>
|
531 |
|
|
</tr>
|
532 |
|
|
</xsl:template>
|
533 |
|
|
|
534 |
|
|
<xsl:template match="bandgapbytes">
|
535 |
|
|
<xsl:param name="physicalfirstColStyle"/>
|
536 |
|
|
<tr>
|
537 |
1696
|
tao
|
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bytes between Bands:</td>
|
538 |
1645
|
tao
|
<td class="{$secondColStyle}" width="{$secondColWidth}">
|
539 |
|
|
<xsl:value-of select="."/>
|
540 |
|
|
</td>
|
541 |
|
|
</tr>
|
542 |
|
|
</xsl:template>
|
543 |
|
|
|
544 |
553
|
tao
|
</xsl:stylesheet>
|