forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sina K. Heshmati (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 13:37:45 GMT

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

Sina K. Heshmati commented on FOR-1167:
---------------------------------------

Gavin,

I was also under the same impression when I first attempted to resolve this issue, but I realized
at some point that an XDoc <body> is not equivalent to the <body> in the final
HTML output; although it could correspond to e.g. <div id="main-content">. My definition
of equivalence here is the fact that none of the inspected stylesheets handles an XDoc <body>
as follows, which means that the <body> in the final output does not depend on the XDoc
<body>.

<xsl:template match="body">
  <body>
    ...
  </body>
</xsl:template>

That said, we could establish this equivalence relation between the two body elements but
this is not the case right now as e.g. sidebar or header elements might be processed prior
to the actual content of a page.

Now, here's a sequence of steps that might help resolve the issue:

<html:body> = <body> in final HTML pages
<xdoc:body> = Semantic <body> in XDocs source files

(S1) Find out *where* <html:body> is being generated.
(S2) Access <xdoc:body> from the context found in (S1).
(S3) Copy attributes of <xdoc:body> to <html:body>

Progress so far:
Dispatcher-based: Stuck in (S1)
Skin-based: Stuck in (S2)

In order to access <xdoc:body> from site-to-xhtml.xsl where <html:body> is generated,
I need to know what the input to site-to-xhtml.xsl looks like. If the input is site.xml as
it is written by the user, then we could use xpath to access <xdoc:body>. Once  (S2)
is complete, the issue for skin-based sites is almost resolved given that (S3) is rather trivial.

> 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