[yelp-xsl] mal-sort: Don't include sections in list of pages
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] mal-sort: Don't include sections in list of pages
- Date: Sun, 15 May 2011 18:21:52 +0000 (UTC)
commit a478445d6abb3c26a2cae854f0669865fd5895e9
Author: Shaun McCance <shaunm gnome org>
Date: Sun May 15 14:25:58 2011 -0400
mal-sort: Don't include sections in list of pages
xslt/mallard/common/mal-sort.xsl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xslt/mallard/common/mal-sort.xsl b/xslt/mallard/common/mal-sort.xsl
index ef7f772..d8ebad9 100644
--- a/xslt/mallard/common/mal-sort.xsl
+++ b/xslt/mallard/common/mal-sort.xsl
@@ -27,7 +27,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
<!--!!==========================================================================
Mallard Topological Sort
Sort a Mallard document.
-:Requires:yelp-links
+:Requires: mal-link
:Revision:version="1.0" date="2010-07-08"
This stylesheet contains utilities for sorting the pages in a Mallard
@@ -66,7 +66,7 @@ topic or next links.
<xsl:variable name="nodes" select="exsl:node-set($sorted)/mal:link"/>
<xsl:for-each select="$nodes">
<xsl:variable name="xref" select="@xref"/>
- <xsl:if test="not(preceding::*[string(@xref) = $xref])">
+ <xsl:if test="not(preceding::*[string(@xref) = $xref]) and not(contains($xref, '#'))">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]