forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: Stop menu generation
Date Fri, 14 Feb 2003 03:05:06 GMT
On Thu, Feb 13, 2003 at 10:48:25PM -0400, admin wrote:
> Hi,
> 
> I have a strange desire for forrest :) I want to output my docs as
> chunks of html stripped (for now) from all the navigational stuff
> (header with logo, tabs, menu, etc). I subclassed the skin and reduced
> the essential part of site2xhtml to something like
> 
> 
>  <xsl:template match="site">
>         <xsl:apply-templates select="div[@class='menu']"/>
>         <xsl:apply-templates select="div[@class='content']"/>
>   </xsl:template>
> 
> 
> Unfortunately, I can't get rid of the menu part, if I try, forrest stops
> documents generation. Question: is there a way to get a formatted
> document without the navigational "wrap up"?

If you look in the sitemap, the final page is composed of body, 'book' (menu)
and tabs:

    <map:match pattern="**/*.html">
      <map:aggregate element="site">
        <map:part src="cocoon:/{1}/book-{1}/{2}.xml" />
        <map:part src="cocoon:/{1}/tab-{1}/{2}.xml" />
        <map:part src="cocoon:/body-{1}/{2}.xml" label="content" />
      </map:aggregate>
      ...

So to get just the body HTML, request body-{whatever}.xml.  Eg,
http://localhost:8888/body-index.xml will retrieve the index.html page body.

--Jeff

> Many thanks, sorry if this was asked before, I did search the
> archives :)
> 
>   -- Sergey
> 
> 

Mime
View raw message