Revision 64
Added by bojilova over 24 years ago
xsqltest/eml-variable-display.xsl | ||
---|---|---|
16 | 16 |
--> |
17 | 17 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
18 | 18 |
|
19 |
<xsl:output method="html"/> |
|
19 |
<xsl:output method="html" encoding="iso-8859-1"/>
|
|
20 | 20 |
|
21 | 21 |
<xsl:template match="/"> |
22 | 22 |
<html> |
23 | 23 |
<head> |
24 |
<link rel="stylesheet" type="text/css" href="./rowcol.css" />
|
|
24 |
<link rel="stylesheet" type="text/css" href="./rowcol.css" />
|
|
25 | 25 |
</head> |
26 | 26 |
<body class="emlbody"> |
27 |
<center>
|
|
27 |
<center>
|
|
28 | 28 |
<h1>Attribute structure description</h1> |
29 | 29 |
<h3>Ecological Metadata Language</h3> |
30 | 30 |
</center> |
... | ... | |
55 | 55 |
</xsl:attribute> |
56 | 56 |
|
57 | 57 |
<td><b><xsl:value-of select="variable_name"/></b> |
58 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
58 |
<xsl:text> ></xsl:text></td>
|
|
59 | 59 |
<td><xsl:value-of select="variable_definition"/> |
60 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
60 |
<xsl:text> ></xsl:text></td>
|
|
61 | 61 |
<td><xsl:value-of select="unit"/> |
62 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
62 |
<xsl:text> ></xsl:text></td>
|
|
63 | 63 |
<td><xsl:value-of select="storage_type"/> |
64 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
64 |
<xsl:text> ></xsl:text></td>
|
|
65 | 65 |
<td><ul> |
66 | 66 |
<xsl:for-each select="code_definition"> |
67 | 67 |
<li><xsl:value-of select="code"/> |
... | ... | |
70 | 70 |
</li> |
71 | 71 |
</xsl:for-each> |
72 | 72 |
</ul> |
73 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
73 |
<xsl:text> ></xsl:text></td>
|
|
74 | 74 |
<td><ul> |
75 | 75 |
<xsl:for-each select="numeric_range"> |
76 | 76 |
<li><xsl:value-of select="minimum"/> |
... | ... | |
79 | 79 |
</li> |
80 | 80 |
</xsl:for-each> |
81 | 81 |
</ul> |
82 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
82 |
<xsl:text> ></xsl:text></td>
|
|
83 | 83 |
<td><xsl:for-each select="missing_value_code"> |
84 | 84 |
<xsl:value-of select="."/><br /> |
85 | 85 |
</xsl:for-each> |
86 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
86 |
<xsl:text> ></xsl:text></td>
|
|
87 | 87 |
<td><xsl:value-of select="precision"/> |
88 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
88 |
<xsl:text> ></xsl:text></td>
|
|
89 | 89 |
<td><xsl:apply-templates select="field_format"/> |
90 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
90 |
<xsl:text> ></xsl:text></td>
|
|
91 | 91 |
</tr> |
92 | 92 |
</xsl:for-each> |
93 | 93 |
</table> |
... | ... | |
135 | 135 |
<xsl:text>)</xsl:text> |
136 | 136 |
</xsl:template> |
137 | 137 |
|
138 |
</xsl:stylesheet> |
|
138 |
</xsl:stylesheet> |
lib/style/eml-variable-display.xsl | ||
---|---|---|
16 | 16 |
--> |
17 | 17 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
18 | 18 |
|
19 |
<xsl:output method="html"/> |
|
19 |
<xsl:output method="html" encoding="iso-8859-1"/>
|
|
20 | 20 |
|
21 | 21 |
<xsl:template match="/"> |
22 | 22 |
<html> |
23 | 23 |
<head> |
24 |
<link rel="stylesheet" type="text/css" href="./rowcol.css" />
|
|
24 |
<link rel="stylesheet" type="text/css" href="./rowcol.css" />
|
|
25 | 25 |
</head> |
26 | 26 |
<body class="emlbody"> |
27 |
<center>
|
|
27 |
<center>
|
|
28 | 28 |
<h1>Attribute structure description</h1> |
29 | 29 |
<h3>Ecological Metadata Language</h3> |
30 | 30 |
</center> |
... | ... | |
55 | 55 |
</xsl:attribute> |
56 | 56 |
|
57 | 57 |
<td><b><xsl:value-of select="variable_name"/></b> |
58 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
58 |
<xsl:text> ></xsl:text></td>
|
|
59 | 59 |
<td><xsl:value-of select="variable_definition"/> |
60 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
60 |
<xsl:text> ></xsl:text></td>
|
|
61 | 61 |
<td><xsl:value-of select="unit"/> |
62 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
62 |
<xsl:text> ></xsl:text></td>
|
|
63 | 63 |
<td><xsl:value-of select="storage_type"/> |
64 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
64 |
<xsl:text> ></xsl:text></td>
|
|
65 | 65 |
<td><ul> |
66 | 66 |
<xsl:for-each select="code_definition"> |
67 | 67 |
<li><xsl:value-of select="code"/> |
... | ... | |
70 | 70 |
</li> |
71 | 71 |
</xsl:for-each> |
72 | 72 |
</ul> |
73 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
73 |
<xsl:text> ></xsl:text></td>
|
|
74 | 74 |
<td><ul> |
75 | 75 |
<xsl:for-each select="numeric_range"> |
76 | 76 |
<li><xsl:value-of select="minimum"/> |
... | ... | |
79 | 79 |
</li> |
80 | 80 |
</xsl:for-each> |
81 | 81 |
</ul> |
82 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
82 |
<xsl:text> ></xsl:text></td>
|
|
83 | 83 |
<td><xsl:for-each select="missing_value_code"> |
84 | 84 |
<xsl:value-of select="."/><br /> |
85 | 85 |
</xsl:for-each> |
86 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
86 |
<xsl:text> ></xsl:text></td>
|
|
87 | 87 |
<td><xsl:value-of select="precision"/> |
88 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
88 |
<xsl:text> ></xsl:text></td>
|
|
89 | 89 |
<td><xsl:apply-templates select="field_format"/> |
90 |
<xsl:text><![CDATA[ ]]></xsl:text></td>
|
|
90 |
<xsl:text> ></xsl:text></td>
|
|
91 | 91 |
</tr> |
92 | 92 |
</xsl:for-each> |
93 | 93 |
</table> |
... | ... | |
135 | 135 |
<xsl:text>)</xsl:text> |
136 | 136 |
</xsl:template> |
137 | 137 |
|
138 |
</xsl:stylesheet> |
|
138 |
</xsl:stylesheet> |
Also available in: Unified diff
corrected the problem with