diff options
author | Shaun McCance <shaunm@gnome.org> | 2011-11-21 14:04:17 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2011-11-21 14:04:17 -0500 |
commit | b285b7ad452a40ad76d8be6518ed0abe844fcb56 (patch) | |
tree | a33402549e95d25137bc814d71fc219a24688089 | |
parent | 6e25c35fb10b376f511492408194f8da25a5cfe9 (diff) | |
download | yelp-xsl-b285b7ad452a40ad76d8be6518ed0abe844fcb56.tar.gz |
mal-cache.xsl: Copy page/section attributes to cache
-rw-r--r-- | 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 e480b668..03fd4cb6 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> |