]> granicus.if.org Git - docbook-dsssl/commitdiff
Only put an info in an admonition if there's something to go in it
authorNorman Walsh <ndw@nwalsh.com>
Wed, 2 Feb 2005 11:34:39 +0000 (11:34 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 2 Feb 2005 11:34:39 +0000 (11:34 +0000)
docbook/relaxng/tools/db4-upgrade.xsl

index 06f5e44b93bd55915ff2dd9dbf2226da1d447801..007e7338b2d84eccd30d0d3082e96b3e460b90a4 100644 (file)
     <xsl:otherwise>
       <xsl:copy>
         <xsl:call-template name="copy.attributes"/>
-        <info>
-          <xsl:apply-templates select="title" mode="copy"/>
-          <xsl:apply-templates select="titleabbrev" mode="copy"/>
-          <xsl:apply-templates select="subtitle" mode="copy"/>
-        </info>
+
+       <xsl:if test="title|titleabbrev|subtitle">
+         <info>
+           <xsl:apply-templates select="title" mode="copy"/>
+           <xsl:apply-templates select="titleabbrev" mode="copy"/>
+           <xsl:apply-templates select="subtitle" mode="copy"/>
+         </info>
+       </xsl:if>
+
         <xsl:apply-templates/>
       </xsl:copy>
     </xsl:otherwise>