From d69ad4cff9b55992cb3f45f421b1d6553e50f4d6 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 9 Jul 2005 10:07:58 +0000 Subject: [PATCH] Checkpointing further ulink changes. All visible links are now displayed in the link list, and numbered. But it performance leaves something to be desired. And not working properly for case where document contains multiple Refentry. --- xsl/manpages/inline.xsl | 54 ++++++++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/xsl/manpages/inline.xsl b/xsl/manpages/inline.xsl index 6a9c80ff3..195d154e8 100644 --- a/xsl/manpages/inline.xsl +++ b/xsl/manpages/inline.xsl @@ -164,24 +164,19 @@ + - + @@ -219,7 +214,14 @@ and not(ancestor::refmeta) and not(ancestor::refnamediv) and not(ancestor::indexterm) - and not(@url = preceding::ulink/@url)]" + and not(@url = preceding::ulink[node() + and not(ancestor::refentryinfo) + and not(ancestor::info) + and not(ancestor::docinfo) + and not(ancestor::refmeta) + and not(ancestor::refnamediv) + and not(ancestor::indexterm) + and not(@url = preceding::ulink)]/@url)]" from="refentry" format="{$format}"/> @@ -242,7 +244,14 @@ and not(ancestor::refmeta) and not(ancestor::refnamediv) and not(ancestor::indexterm) - and not(@url = preceding::ulink/@url)]"/> + and not(@url = preceding::ulink[node() + and not(ancestor::refentryinfo) + and not(ancestor::info) + and not(ancestor::docinfo) + and not(ancestor::refmeta) + and not(ancestor::refnamediv) + and not(ancestor::indexterm) + and not(@url = preceding::ulink)]/@url)]"/> @@ -312,7 +321,14 @@ and not(ancestor::refmeta) and not(ancestor::refnamediv) and not(ancestor::indexterm) - and not(@url = preceding::ulink/@url)]" + and not(@url = preceding::ulink[node() + and not(ancestor::refentryinfo) + and not(ancestor::info) + and not(ancestor::docinfo) + and not(ancestor::refmeta) + and not(ancestor::refnamediv) + and not(ancestor::indexterm) + and not(@url = preceding::ulink)]/@url)]" mode="links.list"> -- 2.40.0