forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iss...@cocoondev.org
Subject [JIRA] Created: (FOR-434) The <source> tag does not apply @class attribute in apache-doc.xml file
Date Mon, 14 Feb 2005 16:22:26 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.cocoondev.org//browse/FOR-434

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: FOR-434
    Summary: The <source> tag does not apply @class attribute in apache-doc.xml file
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Forrest
 Components: 
             Core operations
   Versions:
             0.6

   Assignee: 
   Reporter: Stefan Baramov

    Created: Mon, 14 Feb 2005 10:21 AM
    Updated: Mon, 14 Feb 2005 10:21 AM
Environment: JDK 1.4.2_06
Windows XP/SP1

Description:
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. 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message