From d7fc7f6db9c1be8feb5a78c58b2a4945aa58c25b Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 21 Aug 2006 05:04:47 +0000 Subject: [PATCH] Don't number or link-list any Ulink instance whose string value is identical to the value of its url attribute. Just display it inline. --- xsl/manpages/links.xsl | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/xsl/manpages/links.xsl b/xsl/manpages/links.xsl index f8c672816..078c410fc 100644 --- a/xsl/manpages/links.xsl +++ b/xsl/manpages/links.xsl @@ -16,7 +16,8 @@ - + + @@ -52,6 +53,7 @@ and not(ancestor::refmeta) and not(ancestor::refnamediv) and not(ancestor::indexterm) + and not(. = @url) and not(@url = preceding::ulink[node() and not(ancestor::refentryinfo) @@ -81,14 +83,15 @@ - - - + + + + - - - - + + + + @@ -118,7 +121,7 @@ - + @@ -141,9 +144,10 @@ - - - + + + + @@ -227,6 +231,7 @@ and not(ancestor::refmeta) and not(ancestor::refnamediv) and not(ancestor::indexterm) + and not(. = @url) and not(@url = preceding::ulink[node() and not(ancestor::refentryinfo) @@ -259,6 +264,7 @@ and not(ancestor::refmeta) and not(ancestor::refnamediv) and not(ancestor::indexterm) + and not(. = @url) and not(@url = preceding::ulink[node() and not(ancestor::refentryinfo) -- 2.40.0