Project

General

Profile

1
<?xml version="1.0"?>
2
<xsl:stylesheet 
3
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
4
    xmlns:gmd="http://www.isotc211.org/2005/gmd" version="1.0">
5
    <xsl:template match="gmd:URL">
6
        <xsl:variable name="url">
7
            <xsl:value-of select="./text()" />
8
        </xsl:variable>
9
        <xsl:element name="a">
10
            <xsl:attribute name="href">
11
                <xsl:value-of select="$url" />
12
            </xsl:attribute>
13
            <xsl:value-of select="$url" />
14
        </xsl:element>
15
    </xsl:template>
16
    <xsl:template match="gmd:date">
17
        <xsl:apply-templates />
18
    </xsl:template>
19
    <xsl:template match="gmd:dateStamp">
20
        <xsl:apply-templates />
21
    </xsl:template>
22
    <xsl:template match="gmd:dateType">
23
        <xsl:apply-templates />
24
    </xsl:template>
25
    <xsl:template match="gmd:resourceConstraints">
26
        <!-- Show the title if it's present -->
27
        <xsl:if test="../@xlink:title">
28
            <div class="control-group">
29
                <label class="control-label">Title</label>
30
                <div class="controls">
31
                    <div class="controls-well">
32
                        <xsl:apply-templates select="../@xlink:title" />
33
                    </div>
34
                </div>
35
            </div>
36
        </xsl:if>
37
        <xsl:apply-templates />
38
    </xsl:template>
39
</xsl:stylesheet>
(4-4/8)