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

    
6
    <xsl:template match="gmd:URL">
7
        <xsl:variable name="url">
8
            <xsl:value-of select="./text()" />
9
        </xsl:variable>
10
        <xsl:element name="a">
11
            <xsl:attribute name="href">
12
                <xsl:value-of select="$url" />
13
            </xsl:attribute>
14
            <xsl:value-of select="$url" />
15
        </xsl:element>
16
    </xsl:template>
17

    
18
    <xsl:template match="gmd:date">
19
        <xsl:apply-templates />
20
    </xsl:template>
21

    
22
    <xsl:template match="gmd:dateStamp">
23
        <xsl:apply-templates />
24
    </xsl:template>
25

    
26
    <xsl:template match="gmd:dateType">
27
        <xsl:apply-templates />
28
    </xsl:template>
29

    
30
    <xsl:template match="gmd:resourceConstraints">
31
        <!-- Show the title if it's present -->
32
        <xsl:if test="../@xlink:title">
33
            <div class="control-group">
34
                <label class="control-label">Title</label>
35
                <div class="controls">
36
                    <div class="controls-well">
37
                        <xsl:apply-templates select="../@xlink:title" />
38
                    </div>
39
                </div>
40
            </div>
41
        </xsl:if>
42
        <xsl:apply-templates />
43
    </xsl:template>
44

    
45
    <xsl:template match="gmd:distributionInfo">
46
        <xsl:apply-templates />
47
    </xsl:template>
48
</xsl:stylesheet>
(4-4/8)