]> granicus.if.org Git - docbook-dsssl/commit
Changed handling of bold and italic/underline output in manpages
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 20 Jun 2007 12:21:13 +0000 (12:21 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 20 Jun 2007 12:21:13 +0000 (12:21 +0000)
commitbca2f82d4e0fee178ff0f5933d92b290d2685223
treeb9b7091e9f14b0ebfe3ef87cf12c2dfa6ed44318
parent3297a273aded4f93ba55c170456eb95cf59d92cc
Changed handling of bold and italic/underline output in manpages
output. Should be transparent to users, but...

This touches handling of all bold and italic/underline output. The
exact change is that the mode="bold" and mode="italic" utility
templates were changed to named templates. (I think maybe I've
changed it back and forth from mode to named before, so this is
maybe re-reverting it yet again).

Anyway, the reason for the change is that the templates are
sometimes call on dynamically node-sets, and using modes to format
those doesn't allow passing info about the current/real context
node from the source (not the node-set created by the stylesheet)
to that formatting stage.

The named templates allow the context to be passed in as a
parameter, so that the bold/ital formatting template can use
context-aware condition checking.

This was basically necessary in order to suppress bold formatting
in titles, which otherwise gets screwed up because of the numbnut
way that roff handles nested bold/ital.

Closes #1674534). Much thanks to Daniel Leidert, whose in his
docbook-xsl bug-finding kung-fu has achieved Grand Master status.
xsl/manpages/block.xsl
xsl/manpages/endnotes.xsl
xsl/manpages/info.xsl
xsl/manpages/inline.xsl
xsl/manpages/lists.xsl
xsl/manpages/synop.xsl
xsl/manpages/utility.xsl