[yelp-xsl/wip/html5] mal-cache.xsl: Don't force xref attribute on info links



commit feb0cdaec412a8be2151b4899d248b155eed4532
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Feb 9 11:01:57 2016 -0500

    mal-cache.xsl: Don't force xref attribute on info links

 xslt/mallard/cache/mal-cache.xsl |   28 +---------------------------
 1 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/xslt/mallard/cache/mal-cache.xsl b/xslt/mallard/cache/mal-cache.xsl
index a79a4aa..3439f70 100644
--- a/xslt/mallard/cache/mal-cache.xsl
+++ b/xslt/mallard/cache/mal-cache.xsl
@@ -48,18 +48,6 @@ mal.cache.id
 
 
 <!--**==========================================================================
-mal.cache.xref
--->
-<xsl:template name="mal.cache.xref">
-  <xsl:param name="node" select="."/>
-  <xsl:param name="node_in"/>
-  <xsl:attribute name="xref">
-    <xsl:value-of select="$node/@xref"/>
-  </xsl:attribute>
-</xsl:template>
-
-
-<!--**==========================================================================
 mal.cache.info
 -->
 <xsl:template name="mal.cache.info">
@@ -68,21 +56,7 @@ mal.cache.info
   <xsl:param name="node_in"/>
   <info>
     <xsl:for-each select="$info/*">
-      <xsl:choose>
-        <xsl:when test="self::mal:link">
-          <link>
-            <xsl:call-template name="mal.cache.xref">
-              <xsl:with-param name="node_in" select="$node_in"/>
-            </xsl:call-template>
-            <xsl:for-each select="attribute::*[not(name(.) = 'xref')] | *">
-              <xsl:copy-of select="."/>
-            </xsl:for-each>
-          </link>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:copy-of select="."/>
-        </xsl:otherwise>
-      </xsl:choose>
+      <xsl:copy-of select="."/>
     </xsl:for-each>
   </info>
 </xsl:template>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]