Revision 10049
Added by Bryce Mecum almost 7 years ago
iso-ex.xsl | ||
---|---|---|
5 | 5 |
xmlns:gco="http://www.isotc211.org/2005/gco" |
6 | 6 |
xmlns:gml="http://www.opengis.net/gml/3.2" version="1.0"> |
7 | 7 |
|
8 |
<xsl:output method="html" encoding="UTF-8" |
|
9 |
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" |
|
10 |
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" |
|
11 |
indent="yes" /> |
|
12 |
|
|
8 | 13 |
<!-- EX_BoundingPolygon--> |
9 | 14 |
<!-- TODO: This whole thing --> |
10 | 15 |
<xsl:template name="ex_boundingpolygon" match="gmd:EX_BoundingPolygon"> |
... | ... | |
49 | 54 |
</div> |
50 | 55 |
</div> |
51 | 56 |
</xsl:for-each> |
57 |
|
|
52 | 58 |
<!-- Vertical --> |
53 | 59 |
<xsl:for-each select=".//gmd:verticalElement"> |
54 | 60 |
<div class="control-group"> |
... | ... | |
64 | 70 |
|
65 | 71 |
<!-- EX_GeographicBoundingBox--> |
66 | 72 |
<xsl:template name="ex_geographicboundingbox" match="gmd:EX_GeographicBoundingBox"> |
67 |
<span>westBoundingLongitude: |
|
68 |
<xsl:value-of select="./gmd:westBoundLongitude/gco:Decimal" /> |
|
69 |
</span> |
|
70 |
<span>eastBoundLongitude: |
|
71 |
<xsl:value-of select="./gmd:eastBoundLongitude/gco:Decimal" /> |
|
72 |
</span> |
|
73 |
<span>southBoundLatitude: |
|
74 |
<xsl:value-of select="./gmd:southBoundLatitude/gco:Decimal" /> |
|
75 |
</span> |
|
76 |
<span>northBoundLatitude: |
|
77 |
<xsl:value-of select="./gmd:northBoundLatitude/gco:Decimal" /> |
|
78 |
</span> |
|
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> |
|
77 |
|
|
78 |
|
|
79 |
<div data-value="{$north}" data-content="northBoundingCoordinate" class="control-group northBoundingCoordinate"> |
|
80 |
<label class="control-label">North</label> |
|
81 |
<div class="controls"><xsl:value-of select="$north" />  degrees</div> |
|
82 |
</div> |
|
83 |
|
|
84 |
<div data-value="{$east}" data-content="eastBoundingCoordinate" class="control-group eastBoundingCoordinate"> |
|
85 |
<label class="control-label">East</label> |
|
86 |
<div class="controls"><xsl:value-of select="$east" />  degrees</div> |
|
87 |
</div> |
|
88 |
|
|
89 |
<div data-value="{$south}" data-content="southBoundingCoordinate" class="control-group southBoundingCoordinate"> |
|
90 |
<label class="control-label">South</label> |
|
91 |
<div class="controls"><xsl:value-of select="$south" />  degrees</div> |
|
92 |
</div> |
|
93 |
|
|
94 |
<div data-value="{$west}" data-content="westBoundingCoordinate" class="control-group westBoundingCoordinate"> |
|
95 |
<label class="control-label">West</label> |
|
96 |
<div class="controls"><xsl:value-of select="$west" />  degrees</div> |
|
97 |
</div> |
|
98 |
|
|
79 | 99 |
<span> |
80 | 100 |
<xsl:apply-templates select="./gmd:extentTypeCode" /> |
81 | 101 |
</span> |
... | ... | |
145 | 165 |
- timeInterval units, radix, factor |
146 | 166 |
--> |
147 | 167 |
<xsl:template name="timeperiod" match="gml:TimePeriod"> |
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
148 | 172 |
<xsl:if test=".//gml:beginPosition"> |
149 |
<span>beginPosition: |
|
150 |
<xsl:value-of select=".//gml:beginPosition" /></span> |
|
151 |
<xsl:if test=".//gml:beginPosition/@calendarEraName"> |
|
152 |
<span><xsl:value-of select=".//gml:beginPosition/@calendarEraName" /> (calendarEraName)</span> |
|
153 |
</xsl:if> |
|
154 |
<xsl:if test=".//gml:beginPosition/@indeterminatePosition"> |
|
155 |
<span><xsl:value-of select=".//gml:beginPosition/@indeterminatePosition" /> (indeterminatePosition)</span> |
|
156 |
</xsl:if> |
|
157 |
</span> |
|
173 |
<div class="control-group"> |
|
174 |
<label class="control-label">Begin</label> |
|
175 |
<div class="controls"> |
|
176 |
<span><xsl:value-of select=".//gml:beginPosition" /></span> |
|
177 |
<xsl:if test=".//gml:beginPosition/@calendarEraName"> |
|
178 |
<span><xsl:value-of select=".//gml:beginPosition/@calendarEraName" /> (calendarEraName)</span> |
|
179 |
</xsl:if> |
|
180 |
<xsl:if test=".//gml:beginPosition/@indeterminatePosition"> |
|
181 |
<span><xsl:value-of select=".//gml:beginPosition/@indeterminatePosition" /> (indeterminatePosition)</span> |
|
182 |
</xsl:if> |
|
183 |
</div> |
|
184 |
</div> |
|
158 | 185 |
</xsl:if> |
159 | 186 |
|
160 | 187 |
<xsl:if test=".//gml:endPosition"> |
161 |
<span>endPosition: |
|
162 |
<xsl:value-of select=".//gml:endPosition" /></span> |
|
163 |
<xsl:if test=".//gml:endPosition/@calendarEraName"> |
|
164 |
<span><xsl:value-of select=".//gml:endPosition/@calendarEraName" /> (calendarEraName)</span> |
|
165 |
</xsl:if> |
|
166 |
<xsl:if test=".//gml:endPosition/@indeterminatePosition"> |
|
167 |
<span><xsl:value-of select=".//gml:endPosition/@indeterminatePosition" /> (indeterminatePosition)</span> |
|
168 |
</xsl:if> |
|
169 |
</span> |
|
188 |
<div class="control-group"> |
|
189 |
<label class="control-label">End</label> |
|
190 |
<div class="controls"> |
|
191 |
<span><xsl:value-of select=".//gml:endPosition" /></span> |
|
192 |
<xsl:if test=".//gml:endPosition/@calendarEraName"> |
|
193 |
<span><xsl:value-of select=".//gml:endPosition/@calendarEraName" /> (calendarEraName)</span> |
|
194 |
</xsl:if> |
|
195 |
<xsl:if test=".//gml:endPosition/@indeterminatePosition"> |
|
196 |
<span><xsl:value-of select=".//gml:endPosition/@indeterminatePosition" /> (indeterminatePosition)</span> |
|
197 |
</xsl:if> |
|
198 |
</div> |
|
199 |
</div> |
|
170 | 200 |
</xsl:if> |
171 | 201 |
|
172 | 202 |
<xsl:if test=".//gml:duration"> |
... | ... | |
185 | 215 |
<!-- extentTypeCode --> |
186 | 216 |
<!-- TODO: Work on language. Not sure what I want here.--> |
187 | 217 |
<xsl:template name="gmd_extent_type_code" match="gmd:extentTypeCode"> |
188 |
<span>extentTypeCode:
|
|
218 |
<span>extentTypeCode: |
|
189 | 219 |
<xsl:choose> |
190 |
<xsl:when test="./gco:Boolean = 0"><span>Exclusion<span></xsl:when> |
|
191 |
<xsl:when test="./gco:Boolean = 1"><span>Inclusion<span></xsl:when> |
|
220 |
<xsl:when test="./gco:Boolean = 0"><span>Exclusion</span></xsl:when>
|
|
221 |
<xsl:when test="./gco:Boolean = 1"><span>Inclusion</span></xsl:when>
|
|
192 | 222 |
</xsl:choose> |
193 | 223 |
</span> |
194 | 224 |
</xsl:template> |
Also available in: Unified diff
Improve output of ISO XSLT