]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix two bugs in info.reference template:
authorBob Stayton <bobs@sagehill.net>
Wed, 1 Oct 2008 00:11:49 +0000 (00:11 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 1 Oct 2008 00:11:49 +0000 (00:11 +0000)
-  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.

xsl/fo/autoidx.xsl

index 0061d075b7e514b0a56a27092bf8f9296a7ff76b..e89858ea88ed9c3c1dd7c9f78a1f618bc06d29ba 100644 (file)
                                        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>