From fa685b0a0dbe056001cf80c3930ba25ea932ec82 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 20 Mar 2006 06:47:27 +0000 Subject: [PATCH] Added support for *info gathering all the way up to root element. Problem:: Existing stylesheets only gathered the *info child of each Refentry, plus *info child of its parent. Change:: For each Refentry, the stylesheets now contstruct a node set that contains the entire contents of *info children of all ancestors of that Refentry, as well as its own *info child. Closes #1243035. Thanks to Joe Orton for the feature request. --- xsl/manpages/docbook.xsl | 26 ++-- xsl/manpages/info.xsl | 269 ++++++++++++++++++++------------------- xsl/manpages/other.xsl | 25 ++-- 3 files changed, 161 insertions(+), 159 deletions(-) diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index 984324f3c..7a4e86f92 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -87,28 +87,20 @@ - - + + - + + select="ancestor-or-self::*/*[substring(local-name(), + string-length(local-name()) - 3) = 'info']" + /> diff --git a/xsl/manpages/info.xsl b/xsl/manpages/info.xsl index 1f0fb3158..2a32d73ac 100644 --- a/xsl/manpages/info.xsl +++ b/xsl/manpages/info.xsl @@ -27,93 +27,103 @@ select="exsl:node-set($get.refentry.metadata.prefs)"/> - + - - - + + + - + - - - - + + + + - - + + + + + + + + + + + + + + + + + - - - - + - - - - + - - - - + - - - - + - - - - + - - - - + - - - - + - - - - + - - - - - - - - - - - + + + + + + + + + + + + + + - + - + @@ -123,56 +133,42 @@ - + + + + - - - - - + + + + + + .SH " + + + + + + + - - - - - - - - - - - .SH " - - - - - - - - - - - - + + @@ -227,7 +223,7 @@ - + @@ -239,7 +235,7 @@ - + @@ -273,41 +269,56 @@ - .br - - - + + + + + + + + + + .br + + + + + + + + + + , + + + + + - - - - , - + + + .br - - - - - - - - .br - - + - - .br - - + + + + + + .br + + + - + @@ -360,7 +371,7 @@ .sp -1 .IP - + @@ -368,7 +379,7 @@ - + . @@ -395,7 +406,7 @@ diff --git a/xsl/manpages/other.xsl b/xsl/manpages/other.xsl index a83d540b0..f18ed267e 100644 --- a/xsl/manpages/other.xsl +++ b/xsl/manpages/other.xsl @@ -14,16 +14,16 @@ ******************************************************************** --> - - - + + + - - - - - - + + + + + + @@ -68,14 +68,13 @@ .\" Author: - - - + + .\" Generator: DocBook XSL Stylesheets v - <http://sourceforge.net/projects/docbook/> + <http://docbook.sf.net/> .\" Date: -- 2.40.0