]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for correct handling of xref to elements that
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 21 Feb 2007 08:04:54 +0000 (08:04 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 21 Feb 2007 08:04:54 +0000 (08:04 +0000)
contain info/title descendants but no title children.

This should be further refined so that it handles any *info
elements. And there are probably some other places where similar
handling for *info/title should be added.

xsl/common/titles.xsl

index 2b868d9407fd5df267c220e2b14d29d74976f424..e1f63d7381958929f47d93cc57f91b397dbfba21 100644 (file)
@@ -31,10 +31,11 @@ title of the element. This does not include the label.
 <xsl:template match="*" mode="title.markup">
   <xsl:param name="allow-anchors" select="0"/>
   <xsl:param name="verbose" select="1"/>
-
   <xsl:choose>
-    <xsl:when test="title">
-      <xsl:apply-templates select="title[1]" mode="title.markup">
+    <!-- * FIXME: this should handle other *info elements as well -->
+    <!-- * but this is good enough for now. -->
+    <xsl:when test="title|info/title">
+      <xsl:apply-templates select="title[1]|info/title[1]" mode="title.markup">
         <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
       </xsl:apply-templates>
     </xsl:when>