You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Gavin <ga...@16degrees.com.au> on 2009/05/16 01:30:08 UTC
RE: class attribute of body element in XDocs source is not included in generated HTML
________________________________________
From: Brolin Empey [mailto:brolin@brolin.be]
Sent: Saturday, 16 May 2009 8:42 AM
To: dev@forrest.apache.org
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 thats 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
nice).
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 dont want to work on the issue thats fine, just create it and then
wait for some dev to find the time to fix it.
Thanks
Gav...
[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] -
\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispatcher\re
sources\stylesheets\common\xslt\html\document-to-html.xsl
[4] -
\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispatcher\re
sources\stylesheets\html\document-to-html.xsl
[5] - http://issues.apache.org/jira/browse/FOR
P.S. - I've yet to work out the relationship between [3] and [4].
P.P.S - I havent fully looked into this issue, so hopefully others will
jump in if I missed something.