From: <xm...@us...> - 2006-09-05 04:25:02
|
Revision: 6257 http://svn.sourceforge.net/docbook/?rev=6257&view=rev Author: xmldoc Date: 2006-09-04 21:24:55 -0700 (Mon, 04 Sep 2006) Log Message: ----------- Support titlecase "Java", "Perl", and "IDL" as values for the language attribute on classsynopsis, etc. (instead of just lowercase "java", "perl", and "idl"). Also support "c++" and "C++" (instead of just "cpp"). Affects HTML, FO, and manpages output. Closes bug 1552332. Thanks to "Brian A. Vanderburg II". Modified Paths: -------------- trunk/xsl/fo/synop.xsl trunk/xsl/html/synop.xsl Modified: trunk/xsl/fo/synop.xsl =================================================================== --- trunk/xsl/fo/synop.xsl 2006-09-05 00:02:54 UTC (rev 6256) +++ trunk/xsl/fo/synop.xsl 2006-09-05 04:24:55 UTC (rev 6257) @@ -287,16 +287,16 @@ --> <xsl:choose> - <xsl:when test="$language='java'"> + <xsl:when test="$language='java' or $language='Java'"> <xsl:apply-templates select="." mode="java"/> </xsl:when> - <xsl:when test="$language='perl'"> + <xsl:when test="$language='perl' or $language='Perl'"> <xsl:apply-templates select="." mode="perl"/> </xsl:when> - <xsl:when test="$language='idl'"> + <xsl:when test="$language='idl' or $language='IDL'"> <xsl:apply-templates select="." mode="idl"/> </xsl:when> - <xsl:when test="$language='cpp'"> + <xsl:when test="$language='cpp' or $language='c++' or $language='C++'"> <xsl:apply-templates select="." mode="cpp"/> </xsl:when> <xsl:otherwise> Modified: trunk/xsl/html/synop.xsl =================================================================== --- trunk/xsl/html/synop.xsl 2006-09-05 00:02:54 UTC (rev 6256) +++ trunk/xsl/html/synop.xsl 2006-09-05 04:24:55 UTC (rev 6257) @@ -737,16 +737,16 @@ </xsl:param> <xsl:choose> - <xsl:when test="$language='java'"> + <xsl:when test="$language='java' or $language='Java'"> <xsl:apply-templates select="." mode="java"/> </xsl:when> - <xsl:when test="$language='perl'"> + <xsl:when test="$language='perl' or $language='Perl'"> <xsl:apply-templates select="." mode="perl"/> </xsl:when> - <xsl:when test="$language='idl'"> + <xsl:when test="$language='idl or $language='IDL''"> <xsl:apply-templates select="." mode="idl"/> </xsl:when> - <xsl:when test="$language='cpp'"> + <xsl:when test="$language='cpp' or $language='c++' or $language='C++'"> <xsl:apply-templates select="." mode="cpp"/> </xsl:when> <xsl:otherwise> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |