forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gavin" <>
Subject RE: class attribute of body element in XDocs source is not included in generated HTML
Date Fri, 15 May 2009 23:30:08 GMT

From: Brolin Empey [] 
Sent: Saturday, 16 May 2009 8:42 AM
Subject: class attribute of body element in XDocs source is not included in
generated HTML

I asked about this months ago, but will ask again because the issue still
exists in the current version of Forrest.  The last time I asked, I was
using a release version.

Here is the body element of my XDocs source file:

<body class="product_heading">

The generated HTML does not include the class attribute.  Is there any way
to get the class attribute included in the generated HTML?

I guess this is a Cocoon issue.  It is annoying because I have to hack the
generated HTML to add the class attribute.

Hi Brolin,

Plain Text mails please so it's easier to reply inline. :)

Well, the <body> does have id and class in our DTD so that’s good.
It does look like our document-to-html.xsl stylesheets do not account
for either the class or id attributes and so do not process them into the
final output.

So, that is where I would concentrate on, altering the appropriate xsl for
your case - such as skins common[1], skins pelt [2], themes common[3] and ??
theme[4] all have their own document to html xsl (or all of them would be

It would be best to create an issue on our issue tracker [5] so requests
like this don't get lost (as it did for you the first time).

If you don’t want to work on the issue that’s fine, just create it and then
wait for some dev to find the time to fix it.



[1] - \forrest\main\webapp\skins\common\xslt\html\document-to-html.xsl

[2] - \forrest\main\webapp\skins\pelt\xslt\html\document-to-html.xsl

[3] -

[4] -

[5] -

P.S. - I've yet to work out the relationship between [3] and [4].

P.P.S - I haven’t fully looked into this issue, so hopefully others will
jump in if I missed something.

View raw message