| | -----Original Message----- | | From: Ross Gardler [mailto:[EMAIL PROTECTED] | | Sent: Friday, February 11, 2005 6:44 PM | | To: [email protected] | | Subject: Re: Appling CSS class to the source tag in apache doc | | | | | | The source tag has a specific meaning hence the class="code" | | attribute. | | However, the skin should really allow the user to pass class | | information | | in the way you illustrate in order to allow custom | styling. I would | | consider this a bug, please file a bug report. | | | | I think a solution is to change the following in | | main/webapp/skins/common/html/document2html.xsl: | | | | <xsl:template match="source"> | | <xsl:apply-templates select="@id"/> | | <pre class="code"> | | | | to: | | | | <xsl:template match="source"> | | <xsl:apply-templates select="@id"/> | | <pre> | | <xsl:attribute name="class"> | | <xsl:apply-templates select="@class"/>, code | | </xsl:attribute> | | | | Please test it and let us know if this works. | | | | I've tested and it works just fine. I will try to file a bug report.
The bug ID is FOR-434. - Stefan
