summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2016-02-09 11:01:57 -0500
committerShaun McCance <shaunm@gnome.org>2016-02-09 11:01:57 -0500
commitfeb0cdaec412a8be2151b4899d248b155eed4532 (patch)
treecc2daef2cce66dc3f965caf7ea054fc48f0a2df5 /xslt
parent3e5f1d0e8c543eadae86a2a816967d205d526913 (diff)
downloadyelp-xsl-feb0cdaec412a8be2151b4899d248b155eed4532.tar.gz
mal-cache.xsl: Don't force xref attribute on info links
Diffstat (limited to 'xslt')
-rw-r--r--xslt/mallard/cache/mal-cache.xsl28
1 files changed, 1 insertions, 27 deletions
diff --git a/xslt/mallard/cache/mal-cache.xsl b/xslt/mallard/cache/mal-cache.xsl
index a79a4aaf..3439f705 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>