Project

General

Profile

metacat / lib / style / skins / metacatui / iso19115 / iso-gmx.xsl @ 10194

1
<?xml version="1.0"?>
2
<xsl:stylesheet
3
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
        xmlns:gmx="http://www.isotc211.org/2005/gmx"
5
        xmlns:xlink="http://www.w3.org/1999/xlink"
6
        version="1.0">
7

    
8
    <xsl:template match="gmx:Anchor">
9
        <xsl:element name="a">
10
            <xsl:attribute name="href">
11
                <xsl:value-of select="./@xlink:href" />
12
            </xsl:attribute>
13

    
14
            <!-- Create the attributes for a Bootstrap tooltip to hold the title -->
15
            <xsl:if test="./@xlink:title">
16
                <xsl:attribute name="data-toggle">tooltip</xsl:attribute>
17
                <xsl:attribute name="data-placement">top</xsl:attribute>
18
                <xsl:attribute name="title"><xsl:value-of select="./@xlink:title" /></xsl:attribute>
19
            </xsl:if>
20

    
21
            <xsl:value-of select="./text()" />
22
        </xsl:element>
23
    </xsl:template>
24
</xsl:stylesheet>