From: Bob Stayton Date: Wed, 1 Oct 2008 00:11:49 +0000 (+0000) Subject: Fix two bugs in info.reference template: X-Git-Tag: release/1.79.1~6^2~1245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c8a9b16fff0df2860e58aa162763ba5367dbe07;p=docbook-dsssl Fix two bugs in info.reference template: - mediaobject omitted from list of info containers. - replace [1] with [position() = last()] in the target predicate because when parens are used, the ancestor node list is in document order instead of closest ancestor order. --- diff --git a/xsl/fo/autoidx.xsl b/xsl/fo/autoidx.xsl index 0061d075b..e89858ea8 100644 --- a/xsl/fo/autoidx.xsl +++ b/xsl/fo/autoidx.xsl @@ -753,11 +753,11 @@ ancestor::refentry|ancestor::reference|ancestor::refsect1|ancestor::refsect2| ancestor::refsect3|ancestor::refsection|ancestor::refsynopsisdiv| ancestor::sect1|ancestor::sect2|ancestor::sect3|ancestor::sect4|ancestor::sect5| - ancestor::section|ancestor::setindex|ancestor::set|ancestor::sidebar)[&scope;]"/> + ancestor::section|ancestor::setindex|ancestor::set|ancestor::sidebar|ancestor::mediaobject)[&scope;]"/> - +