forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Schaefer (JIRA)" <j...@apache.org>
Subject [jira] Closed: (FOR-434) The <source> tag does not apply @class attribute in apache-doc.xml file
Date Fri, 10 Feb 2006 16:47:58 GMT
     [ http://issues.apache.org/jira/browse/FOR-434?page=all ]
     
Johannes Schaefer closed FOR-434:
---------------------------------

    Fix Version: 0.8-dev
     Resolution: Fixed

fixed by
Revision: 358287
Author: josch
Date: 14:20:01, Mittwoch, 21. Dezember 2005


> The <source> tag does not apply @class attribute in apache-doc.xml file
> -----------------------------------------------------------------------
>
>          Key: FOR-434
>          URL: http://issues.apache.org/jira/browse/FOR-434
>      Project: Forrest
>         Type: Bug
>   Components: Core operations
>     Versions: 0.6
>  Environment: JDK 1.4.2_06
> Windows XP/SP1
>     Reporter: Stefan Baramov
>     Priority: Minor
>      Fix For: 0.8-dev

>
> The <source> tag does not apply @class attribute in apache-doc.xml file.  For example
the following text: 
> <source class="my_class">
> 	My pre
> 		formatted 
> 			text
> </source>
> Gets translated in this html: 
> <pre class="code">
> 	My pre
> 		formatted 
> 			text
> </pre>
> Note, that Forrest ignored the class="my_class" attribute/value in the original document.

> Ross Gardler suggested the following: 
> --------
> 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>
> -----------
> I've tested with my local Forrest 0.6 installation by changing the \forrest-0.6\src\core\context\skins\common\xslt\html\document2html.xsl
in the above described way. It worked just fine. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message