Revision 62
Added by bojilova over 24 years ago
xsqltest/eml-file-display.xsl | ||
---|---|---|
43 | 43 |
|
44 | 44 |
<table width="750" border="1" cellspacing="0" cellpadding="1" bgcolor="fffcfc"> |
45 | 45 |
<tr> |
46 |
<th width="25%" align="left" bgcolor="#ffffcc"><xsl:text>File Name</xsl:text></th>
|
|
47 |
<td bgcolor="#e0ffe0"><xsl:value-of select="file_name"/>
|
|
46 |
<th width="25%" align="left"><xsl:text>File Name</xsl:text></th> |
|
47 |
<td><xsl:value-of select="file_name"/> |
|
48 | 48 |
<xsl:text> </xsl:text></td> |
49 | 49 |
</tr> |
50 | 50 |
<tr> |
51 |
<th align="left" bgcolor="#ffffcc"><xsl:text>File Size</xsl:text></th>
|
|
52 |
<td bgcolor="#e0ffe0">
|
|
51 |
<th align="left"><xsl:text>File Size</xsl:text></th> |
|
52 |
<td> |
|
53 | 53 |
<xsl:value-of select="file_size/amount"/> |
54 | 54 |
<xsl:value-of select="file_size/unit"/> |
55 | 55 |
<xsl:cdata> </xsl:cdata></td> |
56 | 56 |
</tr> |
57 | 57 |
<tr> |
58 |
<th align="left" bgcolor="#ffffcc"><xsl:text>File Format</xsl:text></th>
|
|
59 |
<td bgcolor="#e0ffe0"><xsl:apply-templates select="format"/>
|
|
58 |
<th align="left"><xsl:text>File Format</xsl:text></th> |
|
59 |
<td><xsl:apply-templates select="format"/> |
|
60 | 60 |
<xsl:text> </xsl:text></td> |
61 | 61 |
</tr> |
62 | 62 |
<tr> |
63 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Orientation</xsl:text></th>
|
|
64 |
<td bgcolor="#e0ffe0"><xsl:apply-templates select="orientation"/>
|
|
63 |
<th align="left"><xsl:text>Orientation</xsl:text></th> |
|
64 |
<td><xsl:apply-templates select="orientation"/> |
|
65 | 65 |
<xsl:text> </xsl:text></td> |
66 | 66 |
</tr> |
67 | 67 |
<tr> |
68 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Header Lines</xsl:text></th>
|
|
69 |
<td bgcolor="#e0ffe0"><xsl:value-of select="header_lines"/>
|
|
68 |
<th align="left"><xsl:text>Header Lines</xsl:text></th> |
|
69 |
<td><xsl:value-of select="header_lines"/> |
|
70 | 70 |
<xsl:text> </xsl:text></td> |
71 | 71 |
</tr> |
72 | 72 |
<tr> |
73 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Case Sensitive</xsl:text></th>
|
|
74 |
<td bgcolor="#e0ffe0"><xsl:apply-templates select="case_sensitive"/>
|
|
73 |
<th align="left"><xsl:text>Case Sensitive</xsl:text></th> |
|
74 |
<td><xsl:apply-templates select="case_sensitive"/> |
|
75 | 75 |
<xsl:text> </xsl:text></td> |
76 | 76 |
</tr> |
77 | 77 |
<tr> |
78 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Geographic Coverage</xsl:text></th>
|
|
79 |
<td bgcolor="#e0ffe0">
|
|
78 |
<th align="left"><xsl:text>Geographic Coverage</xsl:text></th> |
|
79 |
<td> |
|
80 | 80 |
<xsl:if test="geographic_coverage/paragraph/text() or geographic_coverage/coordinates/lattitude/text() or geographic_coverage/coordinates/longitude/text()"><ul> |
81 | 81 |
<xsl:for-each select="geographic_coverage"> |
82 | 82 |
<li><xsl:for-each select="paragraph"> |
... | ... | |
92 | 92 |
<xsl:text> </xsl:text></td> |
93 | 93 |
</tr> |
94 | 94 |
<tr> |
95 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Temporal Coverage</xsl:text></th>
|
|
96 |
<td bgcolor="#e0ffe0">
|
|
95 |
<th align="left"><xsl:text>Temporal Coverage</xsl:text></th> |
|
96 |
<td> |
|
97 | 97 |
<xsl:if test="temporal_coverage/*/*/*/text()"><ul> |
98 | 98 |
<xsl:for-each select="temporal_coverage"> |
99 | 99 |
<li><xsl:text>Start Date </xsl:text> |
... | ... | |
106 | 106 |
<xsl:text><xsl:value-of select="string(' ')"/></xsl:text></td> |
107 | 107 |
</tr> |
108 | 108 |
<tr> |
109 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Authentication</xsl:text></th>
|
|
110 |
<td bgcolor="#e0ffe0"><xsl:for-each select="authentication">
|
|
109 |
<th align="left"><xsl:text>Authentication</xsl:text></th> |
|
110 |
<td><xsl:for-each select="authentication"> |
|
111 | 111 |
<xsl:value-of select="."/><br /> |
112 | 112 |
</xsl:for-each> |
113 | 113 |
<xsl:text> </xsl:text></td> |
114 | 114 |
</tr> |
115 | 115 |
<tr> |
116 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Data Problem</xsl:text></th>
|
|
117 |
<td bgcolor="#e0ffe0"><xsl:for-each select="data_problem">
|
|
116 |
<th align="left"><xsl:text>Data Problem</xsl:text></th> |
|
117 |
<td><xsl:for-each select="data_problem"> |
|
118 | 118 |
<xsl:for-each select="paragraph"> |
119 | 119 |
<xsl:value-of select="."/><br/> |
120 | 120 |
</xsl:for-each> |
lib/style/eml-file-display.xsl | ||
---|---|---|
43 | 43 |
|
44 | 44 |
<table width="750" border="1" cellspacing="0" cellpadding="1" bgcolor="fffcfc"> |
45 | 45 |
<tr> |
46 |
<th width="25%" align="left" bgcolor="#ffffcc"><xsl:text>File Name</xsl:text></th>
|
|
47 |
<td bgcolor="#e0ffe0"><xsl:value-of select="file_name"/>
|
|
46 |
<th width="25%" align="left"><xsl:text>File Name</xsl:text></th> |
|
47 |
<td><xsl:value-of select="file_name"/> |
|
48 | 48 |
<xsl:text> </xsl:text></td> |
49 | 49 |
</tr> |
50 | 50 |
<tr> |
51 |
<th align="left" bgcolor="#ffffcc"><xsl:text>File Size</xsl:text></th>
|
|
52 |
<td bgcolor="#e0ffe0">
|
|
51 |
<th align="left"><xsl:text>File Size</xsl:text></th> |
|
52 |
<td> |
|
53 | 53 |
<xsl:value-of select="file_size/amount"/> |
54 | 54 |
<xsl:value-of select="file_size/unit"/> |
55 | 55 |
<xsl:cdata> </xsl:cdata></td> |
56 | 56 |
</tr> |
57 | 57 |
<tr> |
58 |
<th align="left" bgcolor="#ffffcc"><xsl:text>File Format</xsl:text></th>
|
|
59 |
<td bgcolor="#e0ffe0"><xsl:apply-templates select="format"/>
|
|
58 |
<th align="left"><xsl:text>File Format</xsl:text></th> |
|
59 |
<td><xsl:apply-templates select="format"/> |
|
60 | 60 |
<xsl:text> </xsl:text></td> |
61 | 61 |
</tr> |
62 | 62 |
<tr> |
63 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Orientation</xsl:text></th>
|
|
64 |
<td bgcolor="#e0ffe0"><xsl:apply-templates select="orientation"/>
|
|
63 |
<th align="left"><xsl:text>Orientation</xsl:text></th> |
|
64 |
<td><xsl:apply-templates select="orientation"/> |
|
65 | 65 |
<xsl:text> </xsl:text></td> |
66 | 66 |
</tr> |
67 | 67 |
<tr> |
68 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Header Lines</xsl:text></th>
|
|
69 |
<td bgcolor="#e0ffe0"><xsl:value-of select="header_lines"/>
|
|
68 |
<th align="left"><xsl:text>Header Lines</xsl:text></th> |
|
69 |
<td><xsl:value-of select="header_lines"/> |
|
70 | 70 |
<xsl:text> </xsl:text></td> |
71 | 71 |
</tr> |
72 | 72 |
<tr> |
73 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Case Sensitive</xsl:text></th>
|
|
74 |
<td bgcolor="#e0ffe0"><xsl:apply-templates select="case_sensitive"/>
|
|
73 |
<th align="left"><xsl:text>Case Sensitive</xsl:text></th> |
|
74 |
<td><xsl:apply-templates select="case_sensitive"/> |
|
75 | 75 |
<xsl:text> </xsl:text></td> |
76 | 76 |
</tr> |
77 | 77 |
<tr> |
78 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Geographic Coverage</xsl:text></th>
|
|
79 |
<td bgcolor="#e0ffe0">
|
|
78 |
<th align="left"><xsl:text>Geographic Coverage</xsl:text></th> |
|
79 |
<td> |
|
80 | 80 |
<xsl:if test="geographic_coverage/paragraph/text() or geographic_coverage/coordinates/lattitude/text() or geographic_coverage/coordinates/longitude/text()"><ul> |
81 | 81 |
<xsl:for-each select="geographic_coverage"> |
82 | 82 |
<li><xsl:for-each select="paragraph"> |
... | ... | |
92 | 92 |
<xsl:text> </xsl:text></td> |
93 | 93 |
</tr> |
94 | 94 |
<tr> |
95 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Temporal Coverage</xsl:text></th>
|
|
96 |
<td bgcolor="#e0ffe0">
|
|
95 |
<th align="left"><xsl:text>Temporal Coverage</xsl:text></th> |
|
96 |
<td> |
|
97 | 97 |
<xsl:if test="temporal_coverage/*/*/*/text()"><ul> |
98 | 98 |
<xsl:for-each select="temporal_coverage"> |
99 | 99 |
<li><xsl:text>Start Date </xsl:text> |
... | ... | |
106 | 106 |
<xsl:text><xsl:value-of select="string(' ')"/></xsl:text></td> |
107 | 107 |
</tr> |
108 | 108 |
<tr> |
109 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Authentication</xsl:text></th>
|
|
110 |
<td bgcolor="#e0ffe0"><xsl:for-each select="authentication">
|
|
109 |
<th align="left"><xsl:text>Authentication</xsl:text></th> |
|
110 |
<td><xsl:for-each select="authentication"> |
|
111 | 111 |
<xsl:value-of select="."/><br /> |
112 | 112 |
</xsl:for-each> |
113 | 113 |
<xsl:text> </xsl:text></td> |
114 | 114 |
</tr> |
115 | 115 |
<tr> |
116 |
<th align="left" bgcolor="#ffffcc"><xsl:text>Data Problem</xsl:text></th>
|
|
117 |
<td bgcolor="#e0ffe0"><xsl:for-each select="data_problem">
|
|
116 |
<th align="left"><xsl:text>Data Problem</xsl:text></th> |
|
117 |
<td><xsl:for-each select="data_problem"> |
|
118 | 118 |
<xsl:for-each select="paragraph"> |
119 | 119 |
<xsl:value-of select="."/><br/> |
120 | 120 |
</xsl:for-each> |
Also available in: Unified diff
corrected error within the xsl file