[yelp-xsl/gnome-3-20: 2/2] mal-cache.xsl: Don't force xref attribute on info links
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl/gnome-3-20: 2/2] mal-cache.xsl: Don't force xref attribute on info links
- Date: Sat, 13 Feb 2016 17:41:43 +0000 (UTC)
commit e8cd693ac57869aa80507f7f128a290b46790f5a
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]