forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gavin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FOR-1167) class attribute of body element in XDocs source is not included in generated HTML
Date Tue, 19 May 2009 11:26:46 GMT

    [ https://issues.apache.org/jira/browse/FOR-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710705#action_12710705
] 

Gavin commented on FOR-1167:
----------------------------

Thanks Sina,

I think in this case, as the <body> referred to comes from a content xml document, it
should be transformed using the document-to-html.xsl stylesheets. 
If you look in both skins and dispatcher, for common and pelt skins/themes, you will see this
file in each case.

In each of files is the line 

<xsl:template match="body">

So, what needs to happen something like


<xsl:template match="body">
      <xsl:if test="@class">
        <xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
      </xsl:if>

Anyone fancy testing that out and having a go at the patch ?

Just try it on a 'forrest seed' site first using the common version of document-to-html.xsl
should be enough to test, if it works, try it out on the others.

> class attribute of body element in XDocs source is not included in generated HTML
> ---------------------------------------------------------------------------------
>
>                 Key: FOR-1167
>                 URL: https://issues.apache.org/jira/browse/FOR-1167
>             Project: Forrest
>          Issue Type: Bug
>          Components: Skins (general issues)
>    Affects Versions: 0.9-dev
>            Reporter: Brolin Empey
>             Fix For: 0.9-dev
>
>
> Here is the body element of my XDocs source file:
> <body class="product_heading">
> The generated HTML does not include the class attribute.
> See <http://thread.gmane.org/gmane.text.xml.forrest.devel/27106>.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message