Project

General

Profile

« Previous | Next » 

Revision 10059

Added by Bryce Mecum over 7 years ago

Continue work on ISO XSLTs

- We now have a template for CI_Citation
- I moved some templates into separate XSLTs
- Cleaned up overally structure/styling of translated output

View differences:

iso-md.xsl
2 2
<xsl:stylesheet
3 3
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 4
  xmlns:gmd="http://www.isotc211.org/2005/gmd"
5
  xmlns:gco="http://www.isotc211.org/2005/gco" 
6 5
  version="1.0">
7 6

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

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

  
12 15
  <xsl:template match="gmd:MD_Keywords">
13
    <div><strong>Type:</strong>&#xa0;<xsl:value-of select="./gmd:type/gmd:MD_KeywordTypeCode/text()" /></div>
14
    <div><strong>Thesaurus:&#xa0;</strong><xsl:value-of select="./gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString/text()" /></div>
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>
15 30

  
16
    <ul>
17
      <xsl:for-each select="./gmd:keyword">
18
        <li><xsl:apply-templates select="." /></li>
19
      </xsl:for-each>
20
    </ul>
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
      <div class="control-group">
43
          <label class="control-label">Thesaurus</label>
44
          <div class="controls">
45
              <div class="controls-well">
46
                  <xsl:apply-templates select="./gmd:thesaurusName/gmd:CI_Citation" />
47
              </div>
48
          </div>
49
      </div>
50

  
21 51
  </xsl:template>
52

  
53
    <!-- TODO: gmd:CI_PresentationFormCode-->
54
    <!-- TODO: gmd:CI_Series -->
22 55
</xsl:stylesheet>

Also available in: Unified diff