You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Mark Eggers <it...@yahoo.com> on 2003/05/13 03:37:19 UTC

PDF generation with other than forrest-site skin?

I've just started working with Forrest and I like the
look and feel of the avalon-tigris skin.

However, I've not been able to generate PDF or printer
link output using this skin.  Other information from
my skinconf.xml is being read in and acted upon, but
neither the PDF nor the printer link seem to be
working.

A cursory examination of the archives didn't reveal
anything useful.

Thoughts / assistance / solutions would be greatly
appreaciated.  I know - one of the solutions would be
to render the site with the forrest-site skin, and
then manually put in all the links . . .

Thanks in advance.

/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

Re: PDF generation with other than forrest-site skin?

Posted by Jeff Turner <je...@apache.org>.
Mark Eggers wrote:
> Well I guess I have no clue, because I don't see where
> to change things.  I see stuff in the
> document2html.xsl that refers to templates declared in
> the common/xslt/html/document2html.xsl, but I don't
> see anything in the site2xhtml.xsl that refers to pdf
> except for the credits.

document2html.xsl formats the page body. The PDF link is added in 
site2xhtml.xsl, which is responsible for the overall page formatting.

> I've walked through sitemap.xmap a few times, but I
> don't see where the parameter to trip the pdf regex
> gets set.

I wouldn't worry about PDF on/off buttons just yet.  I'd suggest:

  - Playing with the 
$FORREST_HOME/context/skins/avalon-tigris/xslt/html/site2xhtml.xsl file. 
  Any change to that should be immediately visible when next you do a 
'forrest run' on your site.
  - Once you're sure modifications there work, copy that file to your 
project in the 
src/documentation/skins/avalon-tigris/xslt/html/site2xhtml.xsl 
directory, where it will override the Forrest default (that you were 
editing in the step above).  Check that modifications there work when 
you do a 'forrest run'.
  - Then add a PDF link to your your overriding site2xhtml.xsl file. You 
can steal HTML and an image for this from the krysalis-site skin's 
site2xhtml.xsl file.

--Jeff

> I guess I'll just use the default skins until I have a
> clue.
> 
> Thanks for the attempt at helping, anyway.
> 
> /mde/
> just my two cents



Re: PDF generation with other than forrest-site skin?

Posted by Mark Eggers <it...@yahoo.com>.
Well I guess I have no clue, because I don't see where
to change things.  I see stuff in the
document2html.xsl that refers to templates declared in
the common/xslt/html/document2html.xsl, but I don't
see anything in the site2xhtml.xsl that refers to pdf
except for the credits.

I've walked through sitemap.xmap a few times, but I
don't see where the parameter to trip the pdf regex
gets set.

I guess I'll just use the default skins until I have a
clue.

Thanks for the attempt at helping, anyway.

/mde/
just my two cents

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

Re: PDF generation with other than forrest-site skin?

Posted by Jeff Turner <je...@apache.org>.
Mark Eggers wrote:

> I've just started working with Forrest and I like the
> look and feel of the avalon-tigris skin.
> 
> However, I've not been able to generate PDF or printer
> link output using this skin.  Other information from
> my skinconf.xml is being read in and acted upon, but
> neither the PDF nor the printer link seem to be
> working.

The avalon-tigris skin deliberately leaves out the PDF. To add it, you'd 
need to override the site2xhtml.xsl stylesheet and perhaps copy the PDF 
bits from krysalis-site. That means copying 
$FORREST_HOME/context/resources/skins/avalon-tigris/xslt/html/site2xhtml.xsl 
to 
$YOUR_PROJECT/src/documentation/skins/avalon-tigris/xslt/html/site2xhtml.xsl, 
and then editing it there.

--Jeff

> A cursory examination of the archives didn't reveal
> anything useful.
> 
> Thoughts / assistance / solutions would be greatly
> appreaciated.  I know - one of the solutions would be
> to render the site with the forrest-site skin, and
> then manually put in all the links . . .
> 
> Thanks in advance.
> 
> /mde/
> just my two cents . . . .
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
>