From f1107dd40d514e0663b8b22f7ea95a87ae8dabd4 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 28 Mar 2006 13:18:35 +0000 Subject: [PATCH] Process Refpurpose/Inlinemediaobject correctly in generated ToC. Problem: Contents of Refpurpose/Inlinemediaobject do not show up ToC in HTML output. DocBook 5 says that Refpurpose/Inlinemediaobject is valid, so we need to handle it correctly. Cause: HTML stylesheets were doing an xsl:value-of on Refpurpose when generating the ToC. Fix: Changed to xsl:apply-templates call instead. Also, removed generation of hyphen character in ToC between Refname contents and Refpurpose. The Refpurpose template generates an em dash already, so now that apply-templates is run, that em dash gets rendered in the TOC, just as it is in the main text flow. Affects: This change only affects HTML output. I did not touch the FO stylesheets because they are not currently rendering a TOC for Refentry in the page contents anyway. And as far as the PDF bookmarks, they appear to be generated with value-select for all elements, regardless. I imagine that the reason might be that images are not allowed in PDF bookmark labels. As far as other effects, not the explanation above about the change from generating a hypen in the TOC to generating an em dash. Closes bug #1459977. Thanks to Davor Ocelic (docelic) for the bug report. --- xsl/html/autotoc.xsl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xsl/html/autotoc.xsl b/xsl/html/autotoc.xsl index 0056007b1..e9016d37f 100644 --- a/xsl/html/autotoc.xsl +++ b/xsl/html/autotoc.xsl @@ -476,8 +476,10 @@ - - - + + + + -- 2.40.0