From: Michael Smith Date: Tue, 28 Mar 2006 13:18:35 +0000 (+0000) Subject: Process Refpurpose/Inlinemediaobject correctly in generated ToC. X-Git-Tag: release/1.79.1~6^2~2937 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2392faf7a6642ff99a796d20399c09a793b7d19;p=docbook-dsssl 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. --- 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 @@ - - - + + + +