[yelp-xsl] [mal-link] Use link IDs correctly in mal.link.guidelinks
- From: Shaun McCance <shaunm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [yelp-xsl] [mal-link] Use link IDs correctly in mal.link.guidelinks
- Date: Tue, 5 Jan 2010 02:44:48 +0000 (UTC)
commit 072961626d063ed261aebe50005e6307fce21f6d
Author: Shaun McCance <shaunm gnome org>
Date: Sun Jan 3 12:43:20 2010 -0600
[mal-link] Use link IDs correctly in mal.link.guidelinks
xslt/mallard/common/mal-link.xsl | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/xslt/mallard/common/mal-link.xsl b/xslt/mallard/common/mal-link.xsl
index c082c16..e272af6 100644
--- a/xslt/mallard/common/mal-link.xsl
+++ b/xslt/mallard/common/mal-link.xsl
@@ -315,19 +315,23 @@ The output is a result tree fragment. To use these results, call
</xsl:call-template>
</xsl:variable>
<xsl:for-each select="$node/mal:info/mal:link[ type = 'guide']">
- <xsl:variable name="xref" select="@xref"/>
- <mal:link xref="{$xref}">
+ <xsl:variable name="linkid">
+ <xsl:call-template name="mal.link.xref.linkid"/>
+ </xsl:variable>
+ <mal:link xref="{$linkid}">
<mal:title type="sort">
<xsl:for-each select="$mal.cache">
- <xsl:value-of select="key('mal.cache.key', $xref)/mal:info/mal:title[ type = 'sort'][1]"/>
+ <xsl:value-of select="key('mal.cache.key', $linkid)/mal:info/mal:title[ type = 'sort'][1]"/>
</xsl:for-each>
</mal:title>
</mal:link>
</xsl:for-each>
<xsl:for-each select="$mal.cache//*[mal:info/mal:link[ type = 'topic'][ xref = $linkid]]">
- <xsl:variable name="xref" select="@id"/>
- <xsl:if test="not($node/mal:info/mal:link[ type = 'guide'][ xref = $xref])">
- <mal:link xref="{$xref}">
+ <xsl:variable name="linkid">
+ <xsl:call-template name="mal.link.linkid"/>
+ </xsl:variable>
+ <xsl:if test="not($node/mal:info/mal:link[ type = 'guide'][ xref = $linkid])">
+ <mal:link xref="{$linkid}">
<mal:title type="sort">
<xsl:value-of select="mal:info/mal:title[ type = 'sort'][1]"/>
</mal:title>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]