From: <bob...@us...> - 2007-02-12 05:43:28
|
Revision: 6608 http://svn.sourceforge.net/docbook/?rev=6608&view=rev Author: bobstayton Date: 2007-02-11 21:43:23 -0800 (Sun, 11 Feb 2007) Log Message: ----------- Add mode=class.value to generate just the value, not the attribute. Modified Paths: -------------- trunk/xsl/html/html.xsl Modified: trunk/xsl/html/html.xsl =================================================================== --- trunk/xsl/html/html.xsl 2007-02-10 22:17:55 UTC (rev 6607) +++ trunk/xsl/html/html.xsl 2007-02-12 05:43:23 UTC (rev 6608) @@ -224,9 +224,18 @@ <!-- permit customization of class attributes --> <!-- Use element name by default --> <xsl:attribute name="class"> - <xsl:value-of select="$class"/> + <xsl:apply-templates select="." mode="class.value"> + <xsl:with-param name="class" select="$class"/> + </xsl:apply-templates> </xsl:attribute> </xsl:template> +<xsl:template match="*" mode="class.value"> + <xsl:param name="class" select="local-name(.)"/> + <!-- permit customization of class value only --> + <!-- Use element name by default --> + <xsl:value-of select="$class"/> +</xsl:template> + </xsl:stylesheet> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |