Project

General

Profile

metacat / lib / style / skins / metacatui / iso19115 / iso-md.xsl @ 10384

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

    
7
  <xsl:template match="gmd:MD_Identifier">
8
    <xsl:apply-templates select="./gmd:code" />
9
  </xsl:template>
10

    
11
    <xsl:template match="gmd:MD_TopicCategoryCode">
12
        <xsl:apply-templates />
13
    </xsl:template>
14

    
15
  <xsl:template match="gmd:MD_Keywords">
16
      <table class="table table-condensed">
17
          <thead>
18
              <tr>
19
                  <th>Keyword</th>
20
              </tr>
21
          </thead>
22
          <tbody>
23
              <xsl:for-each select="./gmd:keyword">
24
                  <tr>
25
                    <td><xsl:apply-templates select="." /></td>
26
                  </tr>
27
              </xsl:for-each>
28
          </tbody>
29
      </table>
30

    
31
      <xsl:if test="./gmd:type">
32
          <div class="control-group">
33
              <label class="control-label">Type</label>
34
              <div class="controls">
35
                  <div class="controls-well">
36
                      <xsl:value-of select="./gmd:type/gmd:MD_KeywordTypeCode/text()" />
37
                  </div>
38
              </div>
39
          </div>
40
      </xsl:if>
41

    
42
        <xsl:if test="./gmd:thesaurusName">
43
            <div class="control-group">
44
                <label class="control-label">Thesaurus</label>
45
                <div class="controls">
46
                    <div class="controls-well">
47
                        <xsl:apply-templates select="./gmd:thesaurusName" />
48
                    </div>
49
                </div>
50
            </div>
51
        </xsl:if>
52

    
53
  </xsl:template>
54

    
55
    <!-- TODO: gmd:CI_PresentationFormCode-->
56
    <!-- TODO: gmd:CI_Series -->
57
</xsl:stylesheet>