[yelp-xsl] [db-label] Only label info elements without titles



commit 1474d7f20bcc018b58ca349e4fe1e402706953d0
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date:   Sat Mar 13 00:28:54 2010 +0000

    [db-label] Only label info elements without titles
    
    In DocBook 5, it is possible to have an info element almost anywhere, and
    in the vast majority of cases titles can appear inside the info element instead
    of outside.  DocBook 4 always required the title to appear outside the *info
    element.  If a DocBook 5 source file has the title inside the info element, it
    will be handled correctly by other code.  Therefore, only do automatic labelling
    of info elements that do not have a title inside.
    
    Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>

 xslt/docbook/common/db-label.xsl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/xslt/docbook/common/db-label.xsl b/xslt/docbook/common/db-label.xsl
index 30a1884..3b02164 100644
--- a/xslt/docbook/common/db-label.xsl
+++ b/xslt/docbook/common/db-label.xsl
@@ -290,7 +290,8 @@ REMARK: Document this mode, and the role param
               prefaceinfo  | refentryinfo | referenceinfo    | refsect1info |
               refsect2info | refsect3info | refsectioninfo   | sect1info    |
               sect2info    | sect3info    | sect4info        | sect5info    |
-              sectioninfo  | setindexinfo | setinfo          | db:info">
+              sectioninfo  | setindexinfo | setinfo          |
+              db:info[not(db:title)]">
   <xsl:param name="role"/>
   <xsl:call-template name="l10n.gettext">
     <xsl:with-param name="msgid" select="'About This Document'"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]