Project

General

Profile

« Previous | Next » 

Revision 10159

Added by Bryce Mecum over 7 years ago

Minor tweaks and code cleanup to ISO XSLT

- Renamed the folder once more to be more correct

View differences:

iso-gmd.xsl
1 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"
5
        version="1.0">
6

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

Also available in: Unified diff