From: <bob...@us...> - 2006-11-18 09:13:41
|
Revision: 6435 http://svn.sourceforge.net/docbook/?rev=6435&view=rev Author: bobstayton Date: 2006-11-18 01:13:40 -0800 (Sat, 18 Nov 2006) Log Message: ----------- add class parameter to class.attribute mode to set default class. Modified Paths: -------------- trunk/xsl/html/html.xsl Modified: trunk/xsl/html/html.xsl =================================================================== --- trunk/xsl/html/html.xsl 2006-11-18 09:00:48 UTC (rev 6434) +++ trunk/xsl/html/html.xsl 2006-11-18 09:13:40 UTC (rev 6435) @@ -220,10 +220,11 @@ </xsl:template> <xsl:template match="*" mode="class.attribute"> + <xsl:param name="class" select="local-name(.)"/> <!-- permit customization of class attributes --> + <!-- Use element name by default --> <xsl:attribute name="class"> - <!-- Use element name by default --> - <xsl:value-of select="local-name(.)"/> + <xsl:value-of select="$class"/> </xsl:attribute> </xsl:template> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |