]> granicus.if.org Git - docbook-dsssl/commitdiff
In manpages output, if the last/nearest *info element for
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 5 Aug 2006 11:24:19 +0000 (11:24 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 5 Aug 2006 11:24:19 +0000 (11:24 +0000)
particular Refentry has multiple Copyright and/or Legalnotice
children, process them all (not just the first ones). Closes bug
1524576. Thanks to Sam Steingold for the report and to Daniel
Leidert for providing a patch.

xsl/manpages/info.xsl

index 99636e546698ac4d7fdd81b2ec867ffc1e1f033f..054ecc20d2dd2ec288f0151da47158ce5e626bcc 100644 (file)
         <xsl:text>"&#10;</xsl:text>
         <!-- * the copyright mode="titlepage.mode" template is -->
         <!-- * imported from the HTML stylesheets -->
-        <xsl:apply-templates
-            select="(($info[//copyright])[last()]//copyright)[1]"
-            mode="titlepage.mode"/>
+        <xsl:for-each select="(($info[//copyright])[last()]//copyright)">
+          <xsl:apply-templates select="." mode="titlepage.mode"/>
+          <xsl:text>&#10;.br&#10;</xsl:text>
+        </xsl:for-each>
         <xsl:text>&#10;</xsl:text>
-        <xsl:apply-templates
-            select="(($info[//legalnotice])[last()]//legalnotice)[1]"/>
+        <xsl:for-each select="(($info[//legalnotice])[last()]//legalnotice)">
+          <xsl:apply-templates select="." mode="titlepage.mode"/>
+          <xsl:text>&#10;.br&#10;</xsl:text>
+        </xsl:for-each>
       </xsl:when>
       <xsl:otherwise/> <!-- * do nothing, no copyright or legalnotice found -->
     </xsl:choose>