8 |
8 |
<xsl:output method="html" encoding="UTF-8"
|
9 |
9 |
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
|
10 |
10 |
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
|
11 |
|
indent="yes" />
|
|
11 |
indent="yes" />
|
12 |
12 |
|
13 |
|
<!-- EX_BoundingPolygon-->
|
14 |
|
<!-- TODO: This whole thing -->
|
15 |
|
<xsl:template name="ex_boundingpolygon" match="gmd:EX_BoundingPolygon">
|
16 |
|
<xsl:apply-templates />
|
17 |
|
</xsl:template>
|
|
13 |
<xsl:template match="gmd:EX_Extent">
|
|
14 |
<h4>Extent</h4>
|
18 |
15 |
|
19 |
|
<!-- EX_Extent-->
|
20 |
|
<!-- TODO: Convert this to EX_Extent and use apply-templates elsewhere-->
|
21 |
|
<xsl:template name="extent">
|
22 |
|
<!-- description -->
|
23 |
|
<xsl:if test=".//gmd:description">
|
24 |
|
<div class="control-group">
|
25 |
|
<label class="control-label">Description</label>
|
26 |
|
<div class="controls">
|
27 |
|
<div class="controls-well">
|
28 |
|
<xsl:value-of select=".//gmd:description/gco:CharacterString/text()" />
|
|
16 |
<!-- description -->
|
|
17 |
<xsl:if test=".//gmd:description">
|
|
18 |
<div class="control-group">
|
|
19 |
<label class="control-label">Description</label>
|
|
20 |
<div class="controls">
|
|
21 |
<div class="controls-well">
|
|
22 |
<xsl:apply-templates />
|
|
23 |
</div>
|
29 |
24 |
</div>
|
30 |
25 |
</div>
|
31 |
|
</div>
|
32 |
|
</xsl:if>
|
|
26 |
</xsl:if>
|
33 |
27 |
|
34 |
|
<!-- Geographic -->
|
35 |
|
<xsl:for-each select=".//gmd:geographicElement">
|
36 |
|
<div class="control-group">
|
37 |
|
<label class="control-label">Geographic</label>
|
38 |
|
<div class="controls">
|
39 |
|
<div class="controls-well">
|
40 |
|
<xsl:apply-templates />
|
|
28 |
<!-- Geographic -->
|
|
29 |
<xsl:for-each select=".//gmd:geographicElement">
|
|
30 |
<div class="control-group">
|
|
31 |
<label class="control-label">Geographic</label>
|
|
32 |
<div class="controls">
|
|
33 |
<div class="controls-well">
|
|
34 |
<xsl:apply-templates />
|
|
35 |
</div>
|
41 |
36 |
</div>
|
42 |
37 |
</div>
|
43 |
|
</div>
|
44 |
|
</xsl:for-each>
|
|
38 |
</xsl:for-each>
|
45 |
39 |
|
46 |
|
<!-- Temporal -->
|
47 |
|
<xsl:for-each select=".//gmd:temporalElement">
|
48 |
|
<div class="control-group">
|
49 |
|
<label class="control-label">Temporal</label>
|
50 |
|
<div class="controls">
|
51 |
|
<div class="controls-well">
|
52 |
|
<xsl:apply-templates />
|
|
40 |
<!-- Temporal -->
|
|
41 |
<xsl:for-each select=".//gmd:temporalElement">
|
|
42 |
<div class="control-group">
|
|
43 |
<label class="control-label">Temporal</label>
|
|
44 |
<div class="controls">
|
|
45 |
<div class="controls-well">
|
|
46 |
<xsl:apply-templates />
|
|
47 |
</div>
|
53 |
48 |
</div>
|
54 |
49 |
</div>
|
55 |
|
</div>
|
56 |
|
</xsl:for-each>
|
|
50 |
</xsl:for-each>
|
57 |
51 |
|
58 |
|
<!-- Vertical -->
|
59 |
|
<xsl:for-each select=".//gmd:verticalElement">
|
60 |
|
<div class="control-group">
|
61 |
|
<label class="control-label">Vertical</label>
|
62 |
|
<div class="controls">
|
63 |
|
<div class="controls-well">
|
64 |
|
<xsl:apply-templates />
|
|
52 |
<!-- Vertical -->
|
|
53 |
<xsl:for-each select=".//gmd:verticalElement">
|
|
54 |
<div class="control-group">
|
|
55 |
<label class="control-label">Vertical</label>
|
|
56 |
<div class="controls">
|
|
57 |
<div class="controls-well">
|
|
58 |
<xsl:apply-templates />
|
|
59 |
</div>
|
65 |
60 |
</div>
|
66 |
61 |
</div>
|
67 |
|
</div>
|
68 |
|
</xsl:for-each>
|
|
62 |
</xsl:for-each>
|
|
63 |
</xsl:template>
|
|
64 |
|
|
65 |
<!-- EX_GeographicExtent-->
|
|
66 |
<xsl:template match="gmd:EX_GeographicExtent">
|
|
67 |
<xsl:apply-templates />
|
69 |
68 |
</xsl:template>
|
70 |
69 |
|
|
70 |
<!-- EX_BoundingPolygon-->
|
|
71 |
<xsl:template match="gmd:EX_BoundingPolygon">
|
|
72 |
<xsl:apply-templates />
|
|
73 |
</xsl:template>
|
|
74 |
|
|
75 |
<!-- EX_GeographicDescription-->
|
|
76 |
<xsl:template match="gmd:EX_GeographicDescription">
|
|
77 |
<xsl:apply-templates />
|
|
78 |
</xsl:template>
|
|
79 |
|
|
80 |
|
|
81 |
|
71 |
82 |
<!-- EX_GeographicBoundingBox-->
|
72 |
|
<xsl:template name="ex_geographicboundingbox" match="gmd:EX_GeographicBoundingBox">
|
73 |
|
<xsl:variable name="north"><xsl:value-of select="./gmd:northBoundLongitude/gco:Decimal" /></xsl:variable>
|
74 |
|
<xsl:variable name="east"><xsl:value-of select="./gmd:eastBoundLongitude/gco:Decimal" /></xsl:variable>
|
75 |
|
<xsl:variable name="south"><xsl:value-of select="./gmd:southBoundLongitude/gco:Decimal" /></xsl:variable>
|
76 |
|
<xsl:variable name="west"><xsl:value-of select="./gmd:westBoundLongitude/gco:Decimal" /></xsl:variable>
|
|
83 |
<xsl:template match="gmd:EX_GeographicBoundingBox">
|
|
84 |
<!-- Set up variables for N E S W -->
|
|
85 |
<xsl:variable name="north"><xsl:value-of select="./gmd:northBoundLatitude/gco:Decimal/text()" /></xsl:variable>
|
|
86 |
<xsl:variable name="east"><xsl:value-of select="./gmd:eastBoundLongitude/gco:Decimal/text())" /></xsl:variable>
|
|
87 |
<xsl:variable name="south"><xsl:value-of select="./gmd:southBoundLatitude/gco:Decimal/text()" /></xsl:variable>
|
|
88 |
<xsl:variable name="west"><xsl:value-of select="./gmd:westBoundLongitude/gco:Decimal/text()" /></xsl:variable>
|
77 |
89 |
|
78 |
|
|
79 |
90 |
<div data-value="{$north}" data-content="northBoundingCoordinate" class="control-group northBoundingCoordinate">
|
80 |
91 |
<label class="control-label">North</label>
|
81 |
92 |
<div class="controls"><xsl:value-of select="$north" />  degrees</div>
|
... | ... | |
96 |
107 |
<div class="controls"><xsl:value-of select="$west" />  degrees</div>
|
97 |
108 |
</div>
|
98 |
109 |
|
99 |
|
<span>
|
100 |
|
<xsl:apply-templates select="./gmd:extentTypeCode" />
|
101 |
|
</span>
|
|
110 |
<xsl:apply-templates select="./gmd:extentTypeCode" />
|
102 |
111 |
</xsl:template>
|
103 |
112 |
|
104 |
|
<!-- EX_GeographicDescription-->
|
105 |
|
<xsl:template name="ex_geographicdescription" match="gmd:EX_GeographicDescription">
|
106 |
|
<xsl:apply-templates />
|
|
113 |
<xsl:template match="gmd:polygon">
|
|
114 |
<div class="control-group">
|
|
115 |
<label class="control-label">Polygon</label>
|
|
116 |
<div class="controls">
|
|
117 |
<div class="controls-well">
|
|
118 |
<xsl:apply-templates />
|
|
119 |
</div>
|
|
120 |
</div>
|
|
121 |
</div>
|
107 |
122 |
</xsl:template>
|
108 |
123 |
|
109 |
|
<!-- EX_GeographicExtent-->
|
110 |
|
<xsl:template name="ex_geographicextent" match="gmd:EX_GeographicExtent">
|
111 |
|
<xsl:apply-templates />
|
112 |
|
</xsl:template>
|
113 |
|
|
114 |
124 |
<!-- EX_TemporalExtent -->
|
115 |
|
<xsl:template name="ex_temporalextent" match="gmd:EX_TemporalExtent">
|
|
125 |
<xsl:template match="gmd:EX_TemporalExtent">
|
116 |
126 |
<span>temporal extent
|
117 |
127 |
<xsl:apply-templates select=".//gmd:extent/*" />
|
118 |
128 |
</span>
|
... | ... | |
213 |
223 |
</xsl:template>
|
214 |
224 |
|
215 |
225 |
<!-- extentTypeCode -->
|
216 |
|
<!-- TODO: Work on language. Not sure what I want here.-->
|
217 |
|
<xsl:template name="gmd_extent_type_code" match="gmd:extentTypeCode">
|
218 |
|
<span>extentTypeCode:
|
219 |
|
<xsl:choose>
|
220 |
|
<xsl:when test="./gco:Boolean = 0"><span>Exclusion</span></xsl:when>
|
221 |
|
<xsl:when test="./gco:Boolean = 1"><span>Inclusion</span></xsl:when>
|
222 |
|
</xsl:choose>
|
223 |
|
</span>
|
|
226 |
<xsl:template match="gmd:extentTypeCode">
|
|
227 |
<div class="control-group extentTypeCode">
|
|
228 |
<label class="control-label">Type</label>
|
|
229 |
<div class="controls">
|
|
230 |
<xsl:choose>
|
|
231 |
<xsl:when test="./gco:Boolean = 0">Exclusion</xsl:when>
|
|
232 |
<xsl:when test="./gco:Boolean = 1">Inclusion</xsl:when>
|
|
233 |
<xsl:when test="./@nilReason"><xsl:value-of select="./@nilReason" /></xsl:when>
|
|
234 |
</xsl:choose>
|
|
235 |
</div>
|
|
236 |
</div>
|
224 |
237 |
</xsl:template>
|
225 |
238 |
</xsl:stylesheet>
|
Include the files that were totally supposed to go in the last commit