From: <xm...@us...> - 2008-02-26 10:06:06
|
Revision: 7729 http://docbook.svn.sourceforge.net/docbook/?rev=7729&view=rev Author: xmldoc Date: 2008-02-26 02:06:02 -0800 (Tue, 26 Feb 2008) Log Message: ----------- use make.subheading template to make subheadings for AUTHORS and COPYRIGHT sections (instead of harcoding roff markup) Modified Paths: -------------- trunk/xsl/manpages/info.xsl Modified: trunk/xsl/manpages/info.xsl =================================================================== --- trunk/xsl/manpages/info.xsl 2008-02-26 10:04:49 UTC (rev 7728) +++ trunk/xsl/manpages/info.xsl 2008-02-26 10:06:02 UTC (rev 7729) @@ -202,16 +202,19 @@ $info//othercredit)"> </xsl:value-of> </xsl:variable> - <xsl:text>.SH "</xsl:text> - <xsl:call-template name="make.authorsecttitle"> - <xsl:with-param name="authorcount" select="$authorcount"/> + <xsl:call-template name="make.subheading"> + <xsl:with-param name="title"> + <xsl:call-template name="make.authorsecttitle"> + <xsl:with-param name="authorcount" select="$authorcount"/> + </xsl:call-template> + </xsl:with-param> </xsl:call-template> <!-- * Now output all the actual author, editor, etc. content --> <xsl:for-each - select="$info//author|$info//editor|$info//collab| - $info//corpauthor|$info//corpcredit| - $info//othercredit|$info/orgname| - $info/publishername|$info/publisher"> + select="$info//author|$info//editor|$info//collab| + $info//corpauthor|$info//corpcredit| + $info//othercredit|$info/orgname| + $info/publishername|$info/publisher"> <xsl:apply-templates select="." mode="authorsect"/> </xsl:for-each> </xsl:when> @@ -233,16 +236,11 @@ </xsl:otherwise> </xsl:choose> </xsl:param> - <xsl:call-template name="string.upper"> - <xsl:with-param name="string"> - <xsl:call-template name="gentext"> - <xsl:with-param name="key" select="$authorsecttitle"/> - </xsl:call-template> - </xsl:with-param> + <xsl:call-template name="gentext"> + <xsl:with-param name="key" select="$authorsecttitle"/> </xsl:call-template> - <xsl:text>" </xsl:text> </xsl:template> - + <xsl:template match="author|editor|othercredit" mode="authorsect"> <xsl:variable name="person-name"> <xsl:call-template name="person.name.normalized"/> @@ -573,15 +571,13 @@ <xsl:param name="info"/> <xsl:choose> <xsl:when test="$info//copyright|$info//legalnotice"> - <xsl:text>.SH "</xsl:text> - <xsl:call-template name="string.upper"> - <xsl:with-param name="string"> + <xsl:call-template name="make.subheading"> + <xsl:with-param name="title"> <xsl:call-template name="gentext"> <xsl:with-param name="key">Copyright</xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> - <xsl:text>" </xsl:text> <!-- * the copyright mode="titlepage.mode" template is --> <!-- * imported from the HTML stylesheets --> <xsl:for-each select=" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |