1
|
<?xml version="1.0"?>
|
2
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
3
|
<HTML>
|
4
|
<HEAD>
|
5
|
<STYLE>
|
6
|
BODY {margin:0}
|
7
|
.bg {font:8pt Verdana; background-color:purple; color:white}
|
8
|
H1 {font:bold 14pt Verdana; width:100%; margin-top:1em}
|
9
|
.row {font:8pt Verdana; border-bottom:1px solid #CC88CC}
|
10
|
.header {font:bold 9pt Verdana; cursor:hand; padding:2px; border:2px outset gray}
|
11
|
</STYLE>
|
12
|
<XML id="eml_variable">
|
13
|
<xsl:apply-templates select="eml_variable">
|
14
|
<xsl:template><xsl:copy><xsl:apply-templates select="@*"/><xsl:apply-templates/></xsl:copy></xsl:template>
|
15
|
</xsl:apply-templates>
|
16
|
</XML>
|
17
|
<XML id="sorted"><xsl:eval/></XML>
|
18
|
<XML id="sortVars" src="eml-variable-sort.xsl"><xsl:eval/></XML>
|
19
|
</HEAD>
|
20
|
|
21
|
<SCRIPT><xsl:comment><![CDATA[
|
22
|
function sort(field)
|
23
|
{
|
24
|
sortField.value=field;
|
25
|
sorted.XMLDocument.loadXML(eml_variable.transformNode(sortVars.XMLDocument));
|
26
|
}
|
27
|
]]></xsl:comment></SCRIPT>
|
28
|
|
29
|
<SCRIPT for="window" event="onload"><xsl:comment><![CDATA[
|
30
|
sortField = sortVars.selectSingleNode("//@order-by");
|
31
|
sort("variable_name");
|
32
|
]]></xsl:comment></SCRIPT>
|
33
|
|
34
|
<BODY>
|
35
|
<TABLE width="100%" cellspacing="0">
|
36
|
<TR><TD class="bg"/><TD class="bg"><H1>Variable listing for <U><xsl:value-of select="eml_variable/meta_file_id"/></U></H1></TD></TR>
|
37
|
<TR>
|
38
|
<TD class="bg" width="120" valign="top">
|
39
|
<P>Click on the column headings to sort by that field.</P>
|
40
|
<P>Note that sorting is by string value only and not numeric</P>
|
41
|
</TD>
|
42
|
<TD valign="top">
|
43
|
<TABLE class="listing" datasrc="#sorted">
|
44
|
<THEAD>
|
45
|
<TD width="200"><DIV class="header" onClick="sort('variable_name')">Variable</DIV></TD>
|
46
|
<TD width="80"><DIV class="header" onClick="sort('variable_definition')">Description</DIV></TD>
|
47
|
<TD width="80"><DIV class="header" onClick="sort('storage_type')">Type</DIV></TD>
|
48
|
</THEAD>
|
49
|
<TR>
|
50
|
<TD><DIV class="row" datafld="variable_name"><xsl:eval/></DIV></TD>
|
51
|
<TD><DIV class="row" datafld="variable_definition"><xsl:eval/></DIV></TD>
|
52
|
<TD><DIV class="row" datafld="storage_type" STYLE="text-align:right"><xsl:eval/></DIV></TD>
|
53
|
</TR>
|
54
|
</TABLE>
|
55
|
</TD>
|
56
|
</TR>
|
57
|
</TABLE>
|
58
|
</BODY>
|
59
|
</HTML>
|
60
|
</xsl:stylesheet>
|