forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Baramov" <Stefan.Bara...@trx.com>
Subject RE: Appling CSS class to the source tag in apache doc
Date Mon, 14 Feb 2005 16:22:30 GMT


| | -----Original Message-----
| | From: Ross Gardler [mailto:rgardler@apache.org]
| | Sent: Friday, February 11, 2005 6:44 PM
| | To: user@forrest.apache.org
| | 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

Mime
View raw message