Revision 10056
Added by Bryce Mecum over 7 years ago
iso-md.xsl | ||
---|---|---|
1 | 1 |
<?xml version="1.0"?> |
2 |
<xsl:stylesheet
|
|
2 |
<xsl:stylesheet |
|
3 | 3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
4 |
xmlns:gmd="http://www.isotc211.org/2005/gmd" |
|
5 |
xmlns:gco="http://www.isotc211.org/2005/gco" |
|
4 | 6 |
version="1.0"> |
5 |
|
|
6 |
<!-- TODO: This module --> |
|
7 |
|
|
8 |
<xsl:template match="gmd:MD_Identifier"> |
|
9 |
<xsl:apply-templates select="./gmd:code" /> |
|
10 |
</xsl:template> |
|
11 |
|
|
12 |
<xsl:template match="gmd:MD_Keywords"> |
|
13 |
<div><strong>Type:</strong> <xsl:value-of select="./gmd:type/gmd:MD_KeywordTypeCode/text()" /></div> |
|
14 |
<div><strong>Thesaurus: </strong><xsl:value-of select="./gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString/text()" /></div> |
|
15 |
|
|
16 |
<ul> |
|
17 |
<xsl:for-each select="./gmd:keyword"> |
|
18 |
<li><xsl:apply-templates select="." /></li> |
|
19 |
</xsl:for-each> |
|
20 |
</ul> |
|
21 |
</xsl:template> |
|
7 | 22 |
</xsl:stylesheet> |
Also available in: Unified diff
Continue work on ISO XSLT
- Cleans up the root element to better match what we want in the end (looks like the EML XSLT)
- Switches a lot of calls to call-template over to apply-templates. I think this is a good idea because the ISO standards use XSD type equivalence to extend existing schemas. e.g., gmx:Anchors can show up when the gmd schema says only a gco:CharacterString should go there
- Adds support for a lot more element types
- Cleans up indentation. I'm probably going to want to change this later but oh well. At least it's the same across files. Sorry if you don't like two-space soft tabs.
- Removes numerous unused templates and puts some into the iso-md XSLT which should probably get called something else anyways