Revision 10169
Added by Bryce Mecum over 6 years ago
isoroot.xsl | ||
---|---|---|
3 | 3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
4 | 4 |
xmlns:gmd="http://www.isotc211.org/2005/gmd" |
5 | 5 |
xmlns:gco="http://www.isotc211.org/2005/gco" |
6 |
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0"> |
|
6 |
version="1.0"> |
|
7 |
|
|
7 | 8 |
<xsl:import href="iso-md.xsl"/> |
8 | 9 |
<xsl:import href="iso-ci.xsl"/> |
9 | 10 |
<xsl:import href="iso-ex.xsl"/> |
... | ... | |
11 | 12 |
<xsl:import href="iso-gmd.xsl"/> |
12 | 13 |
<xsl:import href="iso-gml.xsl"/> |
13 | 14 |
<xsl:import href="iso-gmx.xsl"/> |
14 |
<xsl:output method="html" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" indent="yes" /> |
|
15 |
|
|
16 |
<xsl:output method="html" |
|
17 |
encoding="UTF-8" |
|
18 |
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" |
|
19 |
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" |
|
20 |
indent="yes" /> |
|
21 |
|
|
15 | 22 |
<!-- TODO: Figure out how to set the output method to get what I want --> |
16 | 23 |
<!-- TODO: ^ Figure out what I want to output --> |
17 | 24 |
<!-- TODO: Figuer out what this match statement should have in it --> |
18 | 25 |
<!-- TODO: Cover gmd:identificationInfo/SV_ServiceIdentification --> |
26 |
|
|
19 | 27 |
<xsl:template match="*[local-name()='MD_Metadata'] | *[local-name()='MI_Metadata']"> |
20 | 28 |
<form class="form-horizontal"> |
21 | 29 |
<div class="control-group entity"> |
... | ... | |
29 | 37 |
</div> |
30 | 38 |
</div> |
31 | 39 |
</div> |
40 |
|
|
32 | 41 |
<!-- TODO: language 1:1 --> |
33 | 42 |
<!-- TODO: characterSet 1:1 --> |
43 |
|
|
34 | 44 |
<!-- Parent Identifier 1:1 conditional --> |
35 | 45 |
<xsl:if test="//gmd:parentIdentifier"> |
36 | 46 |
<div class="control-group"> |
... | ... | |
42 | 52 |
</div> |
43 | 53 |
</div> |
44 | 54 |
</xsl:if> |
55 |
|
|
45 | 56 |
<!-- TODO: hierarchyLevel 0:inf --> |
46 | 57 |
<!-- TODO: hierarchyLevelName 0:inf --> |
58 |
|
|
47 | 59 |
<!-- Alternate identifier(s) 0:inf--> |
48 |
<!-- gmd:identifier is an optional aprt of the CI_Citation element -->
|
|
60 |
<!-- gmd:identifier is an optional part of the CI_Citation element -->
|
|
49 | 61 |
<xsl:for-each select="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:identifier"> |
50 | 62 |
<div class="control-group"> |
51 | 63 |
<label class="control-label">Cited Identifier</label> |
... | ... | |
56 | 68 |
</div> |
57 | 69 |
</div> |
58 | 70 |
</xsl:for-each> |
71 |
|
|
59 | 72 |
<!-- Abstract 1:inf--> |
60 | 73 |
<xsl:for-each select="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract"> |
61 | 74 |
<div class="control-group"> |
... | ... | |
67 | 80 |
</div> |
68 | 81 |
</div> |
69 | 82 |
</xsl:for-each> |
83 |
|
|
70 | 84 |
<!-- Publication (dateStamp) date 1:1 --> |
71 | 85 |
<div class="control-group"> |
72 | 86 |
<label class="control-label">Publication Date</label> |
... | ... | |
76 | 90 |
</div> |
77 | 91 |
</div> |
78 | 92 |
</div> |
79 |
<!-- Topic Categories --> |
|
93 |
|
|
94 |
<!-- Topic Categories --> |
|
80 | 95 |
<xsl:if test="//gmd:topicCategory"> |
81 | 96 |
<div class="control-group"> |
82 | 97 |
<label class="control-label">Topic Categories</label> |
... | ... | |
102 | 117 |
</div> |
103 | 118 |
</div> |
104 | 119 |
</xsl:if> |
120 |
|
|
105 | 121 |
<!-- Keywords |
106 | 122 |
|
107 |
Each <gmd:descriptiveKeywords> block should have one or more keywords in it |
|
108 |
with one thesaurus. So we render keywords from the same thesaurus together. |
|
109 |
--> |
|
123 |
Each <gmd:descriptiveKeywords> block should have one or more keywords in it
|
|
124 |
with one thesaurus. So we render keywords from the same thesaurus together.
|
|
125 |
-->
|
|
110 | 126 |
<xsl:if test="//gmd:descriptiveKeywords"> |
111 | 127 |
<div class="control-group"> |
112 | 128 |
<label class="control-label">Descriptive Keywords</label> |
... | ... | |
120 | 136 |
</div> |
121 | 137 |
</xsl:if> |
122 | 138 |
</div> |
139 |
|
|
123 | 140 |
<div class="control-group entity"> |
124 | 141 |
<h4>People and Associated Parties</h4> |
125 | 142 |
<!-- Metadata Contact(s) 1:inf --> |
... | ... | |
133 | 150 |
</div> |
134 | 151 |
</div> |
135 | 152 |
</div> |
153 |
|
|
136 | 154 |
<!-- Data Set Contact(s) --> |
137 | 155 |
<div class="control-group"> |
138 | 156 |
<label class="control-label">Data Set Contacts</label> |
... | ... | |
142 | 160 |
</div> |
143 | 161 |
</div> |
144 | 162 |
</div> |
163 |
|
|
145 | 164 |
<!-- Cited responsible parties--> |
146 | 165 |
<div class="control-group"> |
147 | 166 |
<label class="control-label">Associated Parties</label> |
... | ... | |
165 | 184 |
<xsl:for-each select="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent"> |
166 | 185 |
<xsl:apply-templates /> |
167 | 186 |
</xsl:for-each> |
187 |
|
|
168 | 188 |
<!-- TODO Methods --> |
189 |
|
|
169 | 190 |
<div class="control-group entity"> |
170 | 191 |
<h4>Other Information</h4> |
171 | 192 |
<!-- Data usage rights (resourceConstraints) --> |
... | ... | |
177 | 198 |
</div> |
178 | 199 |
</form> |
179 | 200 |
</xsl:template> |
201 |
|
|
180 | 202 |
<!-- General, high-level templates --> |
181 | 203 |
<!-- TODO: Figure out how to do this: I want to capture the scenario where |
182 |
an element like gmd:individualName has no child gco:CharacterString or
|
|
183 |
equivalent but has a nilReason attribute. --> |
|
184 |
<xsl:template match="*[not(*) and ./@nilReason]"> nilReason!
|
|
204 |
an element like gmd:individualName has no child gco:CharacterString or
|
|
205 |
equivalent but has a nilReason attribute. -->
|
|
206 |
<xsl:template match="*[not(*) and ./@nilReason]"> |
|
185 | 207 |
<xsl:value-of select="@nilReason" /> |
186 | 208 |
</xsl:template> |
187 | 209 |
</xsl:stylesheet> |
Also available in: Unified diff
Clean up ISO stylesheet formatting