]> granicus.if.org Git - docbook-dsssl/commitdiff
Make sure that person-names in AUTHORS section get output in
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 19 Sep 2006 14:53:14 +0000 (14:53 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 19 Sep 2006 14:53:14 +0000 (14:53 +0000)
bold. Closes bug 1557567. Thanks to Daniel Leidert.

xsl/manpages/info.xsl

index 171093cfe5cd96912b5b97c01d1b743a261f79b6..0643339ff5ab357ebdda482087e163719dbeba95 100644 (file)
     <!-- * output name and email or ulink content on the same line -->
     <xsl:choose>
       <xsl:when test="not($person-name = '') or .//email or address/otheraddr/ulink">
+        <!-- * Our mode="bold" mechanism doesn't work on text nodes; so we -->
+        <!-- * need to turn the person-name into an element node first. -->
+        <xsl:variable name="person-name-node">
+          <bold><xsl:value-of select="$person-name"/></bold>
+        </xsl:variable>
         <xsl:text>.PP&#10;</xsl:text>
         <!-- * Display person name in bold -->
-        <xsl:apply-templates mode="bold" select="exsl:node-set($person-name)"/>
+        <xsl:apply-templates mode="bold" select="exsl:node-set($person-name-node)"/>
         <!-- * Display e-mail address(es) and ulink(s) on same line as name -->
         <xsl:apply-templates select=".//email|address/otheraddr/ulink" mode="authorsect"/>
         <xsl:text>&#10;</xsl:text>