From: <bob...@us...> - 2008-10-01 00:11:53
|
Revision: 8131 http://docbook.svn.sourceforge.net/docbook/?rev=8131&view=rev Author: bobstayton Date: 2008-10-01 00:11:49 +0000 (Wed, 01 Oct 2008) Log Message: ----------- 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. Modified Paths: -------------- trunk/xsl/fo/autoidx.xsl Modified: trunk/xsl/fo/autoidx.xsl =================================================================== --- trunk/xsl/fo/autoidx.xsl 2008-09-29 17:28:40 UTC (rev 8130) +++ trunk/xsl/fo/autoidx.xsl 2008-10-01 00:11:49 UTC (rev 8131) @@ -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;]"/> <xsl:variable name="id"> <xsl:call-template name="object.id"> - <xsl:with-param name="object" select="$target[1]"/> + <xsl:with-param name="object" select="$target[position() = last()]"/> </xsl:call-template> </xsl:variable> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |