Revision 1645
Added by Jing Tao almost 21 years ago
lib/style/eml2/eml-physical-2.0.0.xsl | ||
---|---|---|
30 | 30 |
* suitable for rendering with modern web browsers. |
31 | 31 |
--> |
32 | 32 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
33 |
<!-- IMPORTANT: IMPORT EML-RESOURCE *AFTER* EML-COVERAGE!!! --> |
|
34 |
<xsl:import href="eml-settings-2.0.0beta6-@name@.xsl" /> |
|
35 |
<xsl:import href="eml-identifier-2.0.0beta6-@name@.xsl" /> |
|
36 | 33 |
|
37 | 34 |
<xsl:output method="html" encoding="iso-8859-1"/> |
38 | 35 |
|
39 |
<xsl:template match="/"> |
|
40 |
<html> |
|
41 |
<head> |
|
42 |
<link rel="stylesheet" type="text/css" href="{$stylePath}/{$qformat}.css" /> |
|
43 |
<style type="text/css"> |
|
44 |
@import url(@style-path@/sbclter-advanced.css); |
|
45 |
</style> |
|
46 |
<script language="JavaScript"> |
|
47 |
<![CDATA[ |
|
48 |
function submitform(action,form_ref) { |
|
49 |
form_ref.action.value=action; |
|
50 |
form_ref.abstractpath.value=""; |
|
51 |
form_ref.qformat.value="sbclter"; |
|
52 |
form_ref.submit(); |
|
53 |
} |
|
54 |
function submitform1(action, abstractpath, form_ref) { |
|
55 |
form_ref.action.value=action; |
|
56 |
form_ref.abstractpath.value=abstractpath; |
|
57 |
form_ref.qformat.value=""; |
|
58 |
form_ref.submit(); |
|
59 |
} |
|
60 |
function submitform2(action, qformat, form_ref) { |
|
61 |
form_ref.action.value=action; |
|
62 |
form_ref.qformat.value=qformat; |
|
63 |
form_ref.abstractpath.value=""; |
|
64 |
form_ref.submit(); |
|
65 |
} |
|
66 |
]]> |
|
67 |
</script> |
|
68 |
</head> |
|
69 |
<body> |
|
70 |
<!--<div class="header-logo"> |
|
71 |
<img src="/catalog/img/catalog/sbclter-logo.gif" alt="SBC LTER" border="0" /> |
|
72 |
</div>--> |
|
73 |
<div class="spacing" align="center"> |
|
74 |
<table cellspacing="0" width="100%" border="0"> |
|
75 |
<tr> |
|
76 |
<td class="header-title"> |
|
77 |
<div class="header-title"> |
|
78 |
@header-title@ |
|
79 |
</div> |
|
80 |
<div class="header-subtitle"> |
|
81 |
@header-subtitle@ |
|
82 |
</div> |
|
83 |
</td> |
|
84 |
<td class="header-image" rowspan="1"> |
|
85 |
<div class="header-image"> |
|
86 |
<img class="header" src="@html-path@/@header-image@" |
|
87 |
alt="@header-image-alt@" |
|
88 |
border="0" /> |
|
89 |
</div> |
|
90 |
</td> |
|
91 |
</tr> |
|
92 |
<tr> |
|
93 |
<td class="header-menu" colspan="2"> |
|
94 |
<div class="header-menu"> |
|
95 |
@header-menu@ |
|
96 |
</div> |
|
97 |
</td> |
|
98 |
</tr> |
|
99 |
<tr> |
|
100 |
<td class="header-submenu" colspan="2"> |
|
101 |
<div class="header-submenu"> |
|
102 |
  <!-- that is XML compliant --> |
|
103 |
</div> |
|
104 |
</td> |
|
105 |
</tr> |
|
106 |
</table> |
|
107 |
</div> |
|
108 |
<div class="content-spacing" align="center"> |
|
109 |
<table cellspacing="0" width="100%" height="100%" border="0"> |
|
110 |
<tr> |
|
111 |
<td class="content-area" colspan="2"> |
|
112 |
<!-- END SBCLTER PAGE TOP HTML --> |
|
113 |
<div class="content-area"> |
|
114 |
<center> |
|
115 |
<h1>Physical Structure Description</h1> |
|
116 |
<!--h3>Ecological Metadata Language</h3--><br /> |
|
117 |
</center> |
|
118 |
<table class="tabledefault" width="100%"> |
|
119 |
<!-- width needed for NN4 - doesn't recognize width in css --> |
|
120 |
<!--xsl:apply-templates select="eml-physical/identifier" |
|
121 |
mode="resource"/--> |
|
122 |
<tr> |
|
123 |
<td class="tablehead" colspan="2">Physical Structure:</td> |
|
124 |
</tr> |
|
125 |
<xsl:apply-templates select="eml-physical/*"/> |
|
126 |
</table> |
|
127 |
</div> |
|
128 |
</td> |
|
129 |
</tr> |
|
130 |
<tr> |
|
131 |
<td colspan="2"> |
|
132 |
<!--div class="nsf" >This material is based on the upon work |
|
133 |
supported by the National Science Foundation under Cooperative |
|
134 |
Agreement #OCE-9982105. Any opinions, findings, or recommendations |
|
135 |
expressed in the material are those of author(s) and do not |
|
136 |
necessarily reflect the view of the National Science Foundation. |
|
137 |
</div--> |
|
138 |
</td> |
|
139 |
</tr> |
|
140 |
<tr> |
|
141 |
<td class="footer-menu" colspan="2"> |
|
142 |
<div class="footer-menu"> |
|
143 |
@footer-menu@ |
|
144 |
</div> |
|
145 |
</td> |
|
146 |
</tr> |
|
147 |
<tr> |
|
148 |
<td class="footer-left"> |
|
149 |
<div class="footer-left"> |
|
150 |
@copyright@ |
|
151 |
</div> |
|
152 |
</td> |
|
153 |
<td class="footer-right"> |
|
154 |
<div class="footer-right"> |
|
155 |
Contact: <a class="footer-link" |
|
156 |
href="@mailto-address@"> |
|
157 |
@header-subtitle@data@nceas.ucsb.edu |
|
158 |
</a> | |
|
159 |
<a class="footer-link" |
|
160 |
href="@intranet-address@" |
|
161 |
target="offline">Internal Login |
|
162 |
</a> |
|
163 |
</div> |
|
164 |
</td> |
|
165 |
</tr> |
|
166 |
</table> |
|
167 |
</div> |
|
168 |
</body> |
|
169 |
</html> |
|
36 |
<xsl:template name="physical"> |
|
37 |
<xsl:param name="physicalfirstColStyle"/> |
|
38 |
<xsl:param name="notshowdistribution"/> |
|
39 |
<table class="tabledefault" width="100%"> |
|
40 |
<xsl:choose> |
|
41 |
<xsl:when test="references!=''"> |
|
42 |
<xsl:variable name="ref_id" select="references"/> |
|
43 |
<xsl:variable name="references" select="$ids[@id=$ref_id]" /> |
|
44 |
<xsl:for-each select="$references"> |
|
45 |
<xsl:call-template name="physicalcommon"> |
|
46 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
47 |
<xsl:with-param name="notshowdistribution" select="$notshowdistribution"/> |
|
48 |
</xsl:call-template> |
|
49 |
</xsl:for-each> |
|
50 |
</xsl:when> |
|
51 |
<xsl:otherwise> |
|
52 |
<xsl:call-template name="physicalcommon"> |
|
53 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
54 |
<xsl:with-param name="notshowdistribution" select="$notshowdistribution"/> |
|
55 |
</xsl:call-template> |
|
56 |
</xsl:otherwise> |
|
57 |
</xsl:choose> |
|
58 |
</table> |
|
170 | 59 |
</xsl:template> |
60 |
|
|
61 |
<xsl:template name="physicalcommon"> |
|
62 |
<xsl:param name="physicalfirstColStyle"/> |
|
63 |
<xsl:param name="notshowdistribution"/> |
|
64 |
<xsl:call-template name="physicalobjectName"> |
|
65 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
66 |
</xsl:call-template> |
|
67 |
<xsl:call-template name="physicalsize"> |
|
68 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
69 |
</xsl:call-template> |
|
70 |
<xsl:call-template name="physicalauthentication"> |
|
71 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
72 |
</xsl:call-template> |
|
73 |
<xsl:call-template name="physicalcompressionMethod"> |
|
74 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
75 |
</xsl:call-template> |
|
76 |
<xsl:call-template name="physicalencodingMethod"> |
|
77 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
78 |
</xsl:call-template> |
|
79 |
<xsl:call-template name="physicalcharacterEncoding"> |
|
80 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
81 |
</xsl:call-template> |
|
82 |
<xsl:call-template name="physicaltextFormat"> |
|
83 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
84 |
</xsl:call-template> |
|
85 |
</xsl:template> |
|
86 |
|
|
87 |
<xsl:template name="physicalobjectName"> |
|
88 |
<xsl:param name="physicalfirstColStyle"/> |
|
89 |
<xsl:for-each select="objectName"> |
|
90 |
<tr> |
|
91 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
92 |
Object Name</td> |
|
93 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
94 |
<xsl:value-of select="."/></td> |
|
95 |
</tr> |
|
96 |
</xsl:for-each> |
|
97 |
</xsl:template> |
|
98 |
|
|
99 |
<xsl:template name="physicalsize"> |
|
100 |
<xsl:param name="physicalfirstColStyle"/> |
|
101 |
<xsl:for-each select="size"> |
|
102 |
<tr> |
|
103 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
104 |
Size</td> |
|
105 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
106 |
<xsl:value-of select="."/></td> |
|
107 |
</tr> |
|
108 |
</xsl:for-each> |
|
109 |
</xsl:template> |
|
110 |
|
|
111 |
<xsl:template name="physicalauthentication"> |
|
112 |
<xsl:param name="physicalfirstColStyle"/> |
|
113 |
<xsl:for-each select="authentication"> |
|
114 |
<tr> |
|
115 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
116 |
Authentication</td> |
|
117 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
118 |
<xsl:value-of select="."/></td> |
|
119 |
</tr> |
|
120 |
</xsl:for-each> |
|
121 |
</xsl:template> |
|
122 |
|
|
123 |
<xsl:template name="physicalcompressionMethod"> |
|
124 |
<xsl:param name="physicalfirstColStyle"/> |
|
125 |
<xsl:for-each select="compressionMethod"> |
|
126 |
<tr> |
|
127 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
128 |
Compression Method</td> |
|
129 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
130 |
<xsl:value-of select="."/></td> |
|
131 |
</tr> |
|
132 |
</xsl:for-each> |
|
133 |
</xsl:template> |
|
134 |
|
|
135 |
<xsl:template name="physicalencodingMethod"> |
|
136 |
<xsl:param name="physicalfirstColStyle"/> |
|
137 |
<xsl:for-each select="encodingMethod"> |
|
138 |
<tr> |
|
139 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
140 |
Encoding Method</td> |
|
141 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
142 |
<xsl:value-of select="."/></td> |
|
143 |
</tr> |
|
144 |
</xsl:for-each> |
|
145 |
</xsl:template> |
|
146 |
|
|
147 |
<xsl:template name="physicalcharacterEncoding"> |
|
148 |
<xsl:param name="physicalfirstColStyle"/> |
|
149 |
<xsl:for-each select="characterEncoding"> |
|
150 |
<tr> |
|
151 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
152 |
Character Encoding</td> |
|
153 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
154 |
<xsl:value-of select="."/></td> |
|
155 |
</tr> |
|
156 |
</xsl:for-each> |
|
157 |
</xsl:template> |
|
158 |
|
|
159 |
<!--*********************************************************** |
|
160 |
TextFormat templates |
|
161 |
***********************************************************--> |
|
162 |
|
|
163 |
<xsl:template name="physicaltextFormat"> |
|
164 |
<xsl:param name="physicalfirstColStyle"/> |
|
165 |
<xsl:for-each select="dataFormat/textFormat"> |
|
166 |
<tr> |
|
167 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
168 |
Text Format:</td> |
|
169 |
<td class="{$physicalfirstColStyle}" width="{$secondColWidth}"> |
|
170 |
 </td> |
|
171 |
</tr> |
|
172 |
<xsl:apply-templates> |
|
173 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
174 |
</xsl:apply-templates> |
|
175 |
<tr> |
|
176 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
177 |
 </td> |
|
178 |
<td class="{$physicalfirstColStyle}" width="{$secondColWidth}"> |
|
179 |
 </td> |
|
180 |
</tr> |
|
181 |
</xsl:for-each> |
|
182 |
|
|
183 |
</xsl:template> |
|
184 |
|
|
171 | 185 |
|
172 |
|
|
173 |
<xsl:template match="format">
|
|
186 |
<xsl:template match="numHeaderLines"> |
|
187 |
<xsl:param name="physicalfirstColStyle"/>
|
|
174 | 188 |
<tr> |
175 |
<td class="{$firstColStyle}" width="{$firstColWidth}">File Format</td>
|
|
189 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Number of Header Lines</td>
|
|
176 | 190 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
177 | 191 |
</tr> |
178 | 192 |
</xsl:template> |
179 | 193 |
|
180 |
<xsl:template match="characterEncoding"> |
|
194 |
<xsl:template match="numFooterLines"> |
|
195 |
<xsl:param name="physicalfirstColStyle"/> |
|
181 | 196 |
<tr> |
182 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Character Encoding</td>
|
|
197 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Number of Foot Lines</td>
|
|
183 | 198 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
184 | 199 |
</tr> |
185 | 200 |
</xsl:template> |
186 |
|
|
187 |
<xsl:template match="size"> |
|
201 |
|
|
202 |
<xsl:template match="recordDelimiter"> |
|
203 |
<xsl:param name="physicalfirstColStyle"/> |
|
188 | 204 |
<tr> |
189 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Size</td> |
|
190 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/> |
|
191 |
<xsl:if test="normalize-space(./@units)!=''"> |
|
192 |
( <xsl:value-of select="./@units"/> ) |
|
193 |
</xsl:if></td> |
|
205 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Record Delimiter</td> |
|
206 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
|
194 | 207 |
</tr> |
195 | 208 |
</xsl:template> |
196 |
|
|
197 |
<xsl:template match="authentication"> |
|
209 |
|
|
210 |
<xsl:template match="physicalLineDelimiter"> |
|
211 |
<xsl:param name="physicalfirstColStyle"/> |
|
198 | 212 |
<tr> |
199 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Authentication (checksum value & method)</td>
|
|
200 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
201 |
<xsl:value-of select="."/> (method: <xsl:value-of select="./@method"/>)</td></tr>
|
|
213 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Line Delimiter</td>
|
|
214 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td>
|
|
215 |
</tr> |
|
202 | 216 |
</xsl:template> |
203 |
|
|
204 |
<xsl:template match="compressionMethod"> |
|
217 |
|
|
218 |
<xsl:template match="numPhysicalLinePerRecord"> |
|
219 |
<xsl:param name="physicalfirstColStyle"/> |
|
205 | 220 |
<tr> |
206 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Compression Method</td>
|
|
221 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Line Number For One Record</td>
|
|
207 | 222 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
208 | 223 |
</tr> |
209 | 224 |
</xsl:template> |
210 |
|
|
211 |
<xsl:template match="encodingMethod"> |
|
225 |
|
|
226 |
<xsl:template match="maxRecordLength"> |
|
227 |
<xsl:param name="physicalfirstColStyle"/> |
|
212 | 228 |
<tr> |
213 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Encoding Method</td>
|
|
229 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Maximum Record Length</td>
|
|
214 | 230 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
215 | 231 |
</tr> |
216 | 232 |
</xsl:template> |
217 |
|
|
218 |
<xsl:template match="numHeaderLines"> |
|
233 |
|
|
234 |
<xsl:template match="attributeOrientation"> |
|
235 |
<xsl:param name="physicalfirstColStyle"/> |
|
219 | 236 |
<tr> |
220 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Header Lines</td>
|
|
237 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Maximum Record Length</td>
|
|
221 | 238 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
222 | 239 |
</tr> |
223 | 240 |
</xsl:template> |
224 |
|
|
225 |
<xsl:template match="recordDelimiter"> |
|
241 |
|
|
242 |
<xsl:template match="simpleDelimited"> |
|
243 |
<xsl:param name="physicalfirstColStyle"/> |
|
226 | 244 |
<tr> |
227 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Record Delimiter</td> |
|
228 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
|
245 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Simple Delimited</td> |
|
246 |
<td width="{$secondColWidth}"> |
|
247 |
<table width="100%"> |
|
248 |
<xsl:apply-templates> |
|
249 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
250 |
</xsl:apply-templates> |
|
251 |
</table> |
|
252 |
</td> |
|
229 | 253 |
</tr> |
230 | 254 |
</xsl:template> |
231 |
|
|
232 |
<xsl:template match="maxRecordLength"> |
|
255 |
|
|
256 |
<xsl:template match="complex"> |
|
257 |
<xsl:param name="physicalfirstColStyle"/> |
|
233 | 258 |
<tr> |
234 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Maximum Record Length</td> |
|
235 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
|
259 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Complex Delimited</td> |
|
260 |
<td width="{$secondColWidth}"> |
|
261 |
<table width="100%"> |
|
262 |
<xsl:call-template name="textFixed"> |
|
263 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
264 |
</xsl:call-template> |
|
265 |
<xsl:call-template name="textDelimited"> |
|
266 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
267 |
</xsl:call-template> |
|
268 |
</table> |
|
269 |
</td> |
|
236 | 270 |
</tr> |
237 | 271 |
</xsl:template> |
272 |
|
|
273 |
|
|
274 |
<xsl:template name="textFixed"> |
|
275 |
<xsl:param name="physicalfirstColStyle"/> |
|
276 |
<tr> |
|
277 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Text Fixed</td> |
|
278 |
<td width="{$secondColWidth}"> |
|
279 |
<table width="100%"> |
|
280 |
<xsl:apply-templates> |
|
281 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
282 |
</xsl:apply-templates> |
|
283 |
</table> |
|
284 |
</td> |
|
285 |
</tr> |
|
286 |
</xsl:template> |
|
287 |
|
|
288 |
<xsl:template name="textDelimited"> |
|
289 |
<xsl:param name="physicalfirstColStyle"/> |
|
290 |
<tr> |
|
291 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Text Delimited</td> |
|
292 |
<td width="{$secondColWidth}"> |
|
293 |
<table width="100%"> |
|
294 |
<xsl:apply-templates> |
|
295 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
296 |
</xsl:apply-templates> |
|
297 |
</table> |
|
298 |
</td> |
|
299 |
</tr> |
|
300 |
</xsl:template> |
|
238 | 301 |
|
239 | 302 |
<xsl:template match="quoteCharacter"> |
303 |
<xsl:param name="physicalfirstColStyle"/> |
|
240 | 304 |
<tr> |
241 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Quote Character</td> |
|
305 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}">Quote Character</td>
|
|
242 | 306 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
243 | 307 |
</tr> |
244 | 308 |
</xsl:template> |
245 | 309 |
|
246 | 310 |
<xsl:template match="literalCharacter"> |
311 |
<xsl:param name="physicalfirstColStyle"/> |
|
247 | 312 |
<tr> |
248 | 313 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Literal Character</td> |
249 | 314 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
250 | 315 |
</tr> |
251 | 316 |
</xsl:template> |
252 | 317 |
|
253 |
<xsl:template match="fieldStartColumn"> |
|
318 |
|
|
319 |
<xsl:template match="fieldDelimiter"> |
|
320 |
<xsl:param name="physicalfirstColStyle"/> |
|
254 | 321 |
<tr> |
255 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Field Start Column</td>
|
|
322 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Field Delimeter</td>
|
|
256 | 323 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
257 | 324 |
</tr> |
258 | 325 |
</xsl:template> |
259 | 326 |
|
327 |
<xsl:template match="fieldWidth"> |
|
328 |
<xsl:param name="physicalfirstColStyle"/> |
|
329 |
<tr><td class="{$firstColStyle}" width="{$firstColWidth}">Field Width</td> |
|
330 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
|
331 |
</tr> |
|
332 |
</xsl:template> |
|
333 |
|
|
334 |
<xsl:template match="lineNumber"> |
|
335 |
<xsl:param name="physicalfirstColStyle"/> |
|
336 |
<tr><td class="{$firstColStyle}" width="{$firstColWidth}">Line Number</td> |
|
337 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
|
338 |
</tr> |
|
339 |
</xsl:template> |
|
260 | 340 |
|
261 |
<xsl:template match="fieldDelimiter"> |
|
341 |
<xsl:template match="fieldStartColumn"> |
|
342 |
<xsl:param name="physicalfirstColStyle"/> |
|
262 | 343 |
<tr> |
263 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Field Delimeter</td>
|
|
344 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Field Start Column</td>
|
|
264 | 345 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
265 | 346 |
</tr> |
266 | 347 |
</xsl:template> |
267 |
|
|
268 |
<xsl:template match="fieldWidth"> |
|
269 |
<tr><td class="{$firstColStyle}" width="{$firstColWidth}">Field Width</td> |
|
348 |
|
|
349 |
|
|
350 |
<!--*********************************************************** |
|
351 |
externallyDefinedFormat templates |
|
352 |
***********************************************************--> |
|
353 |
<xsl:template name="physicalexternallyDefinedFormat"> |
|
354 |
<xsl:param name="physicalfirstColStyle"/> |
|
355 |
<xsl:for-each select="dataFormat/externallyDefinedFormat"> |
|
356 |
<tr> |
|
357 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
358 |
Externally Defined Format:</td> |
|
359 |
<td class="{$physicalfirstColStyle}" width="{$secondColWidth}"> |
|
360 |
 </td> |
|
361 |
</tr> |
|
362 |
<xsl:apply-templates> |
|
363 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
364 |
</xsl:apply-templates> |
|
365 |
<tr> |
|
366 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
367 |
 </td> |
|
368 |
<td class="{$physicalfirstColStyle}" width="{$secondColWidth}"> |
|
369 |
 </td> |
|
370 |
</tr> |
|
371 |
</xsl:for-each> |
|
372 |
</xsl:template> |
|
373 |
|
|
374 |
<xsl:template match="formatName"> |
|
375 |
<xsl:param name="physicalfirstColStyle"/> |
|
376 |
<tr> |
|
377 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Format Name</td> |
|
270 | 378 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
271 | 379 |
</tr> |
272 | 380 |
</xsl:template> |
273 |
|
|
381 |
|
|
382 |
<xsl:template match="formatVersion"> |
|
383 |
<xsl:param name="physicalfirstColStyle"/> |
|
384 |
<tr> |
|
385 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Format Version</td> |
|
386 |
<td class="{$secondColStyle}" width="{$secondColWidth}"><xsl:value-of select="."/></td> |
|
387 |
</tr> |
|
388 |
</xsl:template> |
|
389 |
|
|
390 |
<xsl:template match="citation"> |
|
391 |
<xsl:param name="physicalfirstColStyle"/> |
|
392 |
<tr> |
|
393 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Citation</td> |
|
394 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
395 |
<xsl:call-template name="citation"> |
|
396 |
<xsl:with-param name="citationfirstColStyle" select="physicalfirstColStyle"/> |
|
397 |
</xsl:call-template> |
|
398 |
</td> |
|
399 |
</tr> |
|
400 |
</xsl:template> |
|
401 |
|
|
402 |
<!--*********************************************************** |
|
403 |
binaryRasterFormat templates |
|
404 |
***********************************************************--> |
|
405 |
<xsl:template name="physicalbinaryRasterFormat"> |
|
406 |
<xsl:param name="physicalfirstColStyle"/> |
|
407 |
<xsl:for-each select="dataFormat/binaryRasterFormat"> |
|
408 |
<tr> |
|
409 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
410 |
Binary Raster Format:</td> |
|
411 |
<td class="{$physicalfirstColStyle}" width="{$secondColWidth}"> |
|
412 |
 </td> |
|
413 |
</tr> |
|
414 |
<xsl:apply-templates> |
|
415 |
<xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/> |
|
416 |
</xsl:apply-templates> |
|
417 |
<tr> |
|
418 |
<td class="{$physicalfirstColStyle}" width="{$firstColWidth}"> |
|
419 |
 </td> |
|
420 |
<td class="{$physicalfirstColStyle}" width="{$secondColWidth}"> |
|
421 |
 </td> |
|
422 |
</tr> |
|
423 |
</xsl:for-each> |
|
424 |
</xsl:template> |
|
425 |
|
|
426 |
<xsl:template match="rowColumnOrientation"> |
|
427 |
<xsl:param name="physicalfirstColStyle"/> |
|
428 |
<tr> |
|
429 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Orientation</td> |
|
430 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
431 |
<xsl:value-of select="."/> |
|
432 |
</td> |
|
433 |
</tr> |
|
434 |
</xsl:template> |
|
435 |
|
|
436 |
<xsl:template match="multiBand"> |
|
437 |
<xsl:param name="physicalfirstColStyle"/> |
|
438 |
<tr> |
|
439 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Multiple Bands</td> |
|
440 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
441 |
<table width="100%"> |
|
442 |
<tr> |
|
443 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Spectral Bands</td> |
|
444 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
445 |
<xsl:value-of select="./nbands"/> |
|
446 |
</td> |
|
447 |
</tr> |
|
448 |
<tr> |
|
449 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Layout</td> |
|
450 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
451 |
<xsl:value-of select="./layout"/> |
|
452 |
</td> |
|
453 |
</tr> |
|
454 |
</table> |
|
455 |
</td> |
|
456 |
</tr> |
|
457 |
</xsl:template> |
|
458 |
|
|
459 |
|
|
460 |
<xsl:template match="nbits"> |
|
461 |
<xsl:param name="physicalfirstColStyle"/> |
|
462 |
<tr> |
|
463 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bits (/pixel/band)</td> |
|
464 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
465 |
<xsl:value-of select="."/> |
|
466 |
</td> |
|
467 |
</tr> |
|
468 |
</xsl:template> |
|
469 |
|
|
470 |
<xsl:template match="byteorder"> |
|
471 |
<xsl:param name="physicalfirstColStyle"/> |
|
472 |
<tr> |
|
473 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Byte Order</td> |
|
474 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
475 |
<xsl:value-of select="."/> |
|
476 |
</td> |
|
477 |
</tr> |
|
478 |
</xsl:template> |
|
479 |
|
|
480 |
<xsl:template match="skipbytes"> |
|
481 |
<xsl:param name="physicalfirstColStyle"/> |
|
482 |
<tr> |
|
483 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Skipped Bytes</td> |
|
484 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
485 |
<xsl:value-of select="."/> |
|
486 |
</td> |
|
487 |
</tr> |
|
488 |
</xsl:template> |
|
489 |
|
|
490 |
<xsl:template match="bandrowbytes"> |
|
491 |
<xsl:param name="physicalfirstColStyle"/> |
|
492 |
<tr> |
|
493 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bytes (/band/row)</td> |
|
494 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
495 |
<xsl:value-of select="."/> |
|
496 |
</td> |
|
497 |
</tr> |
|
498 |
</xsl:template> |
|
499 |
|
|
500 |
<xsl:template match="totalrowbytes"> |
|
501 |
<xsl:param name="physicalfirstColStyle"/> |
|
502 |
<tr> |
|
503 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Total Number of Byte (/row)</td> |
|
504 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
505 |
<xsl:value-of select="."/> |
|
506 |
</td> |
|
507 |
</tr> |
|
508 |
</xsl:template> |
|
509 |
|
|
510 |
<xsl:template match="bandgapbytes"> |
|
511 |
<xsl:param name="physicalfirstColStyle"/> |
|
512 |
<tr> |
|
513 |
<td class="{$firstColStyle}" width="{$firstColWidth}">Number of Bytes between Bands</td> |
|
514 |
<td class="{$secondColStyle}" width="{$secondColWidth}"> |
|
515 |
<xsl:value-of select="."/> |
|
516 |
</td> |
|
517 |
</tr> |
|
518 |
</xsl:template> |
|
519 |
|
|
274 | 520 |
</xsl:stylesheet> |
Also available in: Unified diff
Add templates in this module.