[yelp-xsl] mal-cache.xsl: Copy page/section attributes to cache
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal-cache.xsl: Copy page/section attributes to cache
- Date: Mon, 21 Nov 2011 19:04:33 +0000 (UTC)
commit b285b7ad452a40ad76d8be6518ed0abe844fcb56
Author: Shaun McCance <shaunm gnome org>
Date: Mon Nov 21 14:04:17 2011 -0500
mal-cache.xsl: Copy page/section attributes to cache
xslt/mallard/cache/mal-cache.xsl | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/xslt/mallard/cache/mal-cache.xsl b/xslt/mallard/cache/mal-cache.xsl
index e480b66..03fd4cb 100644
--- a/xslt/mallard/cache/mal-cache.xsl
+++ b/xslt/mallard/cache/mal-cache.xsl
@@ -109,11 +109,11 @@ mal.cache.info
<xsl:call-template name="mal.cache.id">
<xsl:with-param name="node_in" select="$node_in"/>
</xsl:call-template>
- <xsl:if test="@type">
- <xsl:attribute name="type">
- <xsl:value-of select="@type"/>
- </xsl:attribute>
- </xsl:if>
+ <xsl:for-each select="@*">
+ <xsl:if test="not(self::cache:href) and not(self::id)">
+ <xsl:copy-of select="."/>
+ </xsl:if>
+ </xsl:for-each>
<xsl:call-template name="mal.cache.info">
<xsl:with-param name="node_in" select="$node_in"/>
</xsl:call-template>
@@ -130,6 +130,11 @@ mal.cache.info
<xsl:call-template name="mal.cache.id">
<xsl:with-param name="node_in" select="$node_in"/>
</xsl:call-template>
+ <xsl:for-each select="@*">
+ <xsl:if test="not(self::id)">
+ <xsl:copy-of select="."/>
+ </xsl:if>
+ </xsl:for-each>
<xsl:call-template name="mal.cache.info">
<xsl:with-param name="node_in" select="$node_in"/>
</xsl:call-template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]