Remove unused named templates
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 12 Sep 2011 10:32:33 +0000 (12:32 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 12 Sep 2011 10:32:33 +0000 (12:32 +0200)
etc/tmarc.xsl

index ff2af3e..d0a43c9 100644 (file)
 
   <xsl:template match="text()" />
 
-  <!-- TODO Does not work anymore -->
-  <xsl:template name="shortTitle">
-    <xsl:param name="tag" />
-    <xsl:for-each select="tmarc:d">
-      <xsl:value-of select="tmarc:sa" />
-      <xsl:value-of select="tmarc:sm" />
-      <xsl:value-of select="tmarc:sn" />
-      <xsl:value-of select="tmarc:sp" />
-      <xsl:value-of select="tmarc:sr" />
-    </xsl:for-each>
-  </xsl:template>
-
-  <!-- No working as expected -->
-  <xsl:template name="description">
-    <xsl:param name="element" />
-    <xsl:for-each select="$element">
-      <pz:metadata type="description">
-        <xsl:for-each select="node()">
-          <xsl:value-of select="text()" />
-        </xsl:for-each>
-      </pz:metadata>
-    </xsl:for-each>
-    <xsl:apply-templates />
-  </xsl:template>
-
-  <!-- <xsl:for-each select="tmarc:d500"> <pz:metadata type="description"> 
-    <xsl:for-each select="node()"> <xsl:value-of select="text()"/> </xsl:for-each> 
-    </pz:metadata> </xsl:for-each> -->
-
-
-
-  <xsl:template name="subject">
-    <xsl:param name="element" />
-    <xsl:for-each select="$element">
-      <pz:metadata type="subject">
-        <xsl:value-of select="tmarc:sa" />
-      </pz:metadata>
-      <pz:metadata type="subject-long">
-        <xsl:for-each select="node()/text()">
-          <xsl:if test="position() > 1">
-            <xsl:text>, </xsl:text>
-          </xsl:if>
-          <xsl:value-of select="." />
-        </xsl:for-each>
-      </pz:metadata>
-    </xsl:for-each>
-  </xsl:template>
-
-
 </xsl:stylesheet>