[yelp-xsl] mal-link: Only output shortest link trails
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal-link: Only output shortest link trails
- Date: Fri, 10 Jun 2011 19:10:13 +0000 (UTC)
commit 9c8108b48b70ea6be62bc669ff908ee8cb6ff477
Author: Shaun McCance <shaunm gnome org>
Date: Fri Jun 10 15:13:53 2011 -0400
mal-link: Only output shortest link trails
xslt/mallard/common/mal-link.xsl | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/xslt/mallard/common/mal-link.xsl b/xslt/mallard/common/mal-link.xsl
index 1e7eb25..c45b89b 100644
--- a/xslt/mallard/common/mal-link.xsl
+++ b/xslt/mallard/common/mal-link.xsl
@@ -678,6 +678,12 @@ FIXME:
</xsl:otherwise>
</xsl:choose>
</xsl:when>
+ <xsl:when test="$guidenodes[ xref = $root]">
+ <mal:link xref="{$root}">
+ <xsl:copy-of select="$guidenodes[ xref = $root][1]/mal:title"/>
+ <xsl:copy-of select="$trail"/>
+ </mal:link>
+ </xsl:when>
<xsl:otherwise>
<xsl:for-each select="$guidenodes">
<xsl:variable name="self" select="."/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]