You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Jeff Turner <je...@apache.org> on 2003/10/01 12:21:24 UTC

Re: document2fo.xsl

On Tue, Sep 30, 2003 at 12:21:01PM +0200, Stephan Schlierf wrote:
> Hi,
> 
> I desperately try to format the output of the <version>-element in pdf-files 
> but I can't find the place where to edit in document2fo.xsl.
> 
> Does anybody have a useful hint for me?

Depends where you want <version> info to go.  The footer seems like a
sensible place, in which case footerinfo.xsl


--Jeff

> TIA
> Stephan

Re: document2fo.xsl

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Jeff Turner wrote:
...
> Hmm, I don't know.  I haven't done much with document2fo.xsl.  It's been
> kicking around Apache ever since (IIRC) Berin wrote it for Avalon.  

:-) LOL!

> I have a much better one for Anteater I'll have to integrate at some stage
> :)

:-)

> I'd suggest running Forrest as a webapp, and then doing realtime
> experiments with
> build/webapp/resources/skins/common/xslt/fo/document2fo.xsl

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------



Re: document2fo.xsl

Posted by Jeff Turner <je...@apache.org>.
On Wed, Oct 01, 2003 at 02:24:00PM +0200, Stephan Schlierf wrote:
> Am Mittwoch, 1. Oktober 2003 13:10 schrieb Jeff Turner:
...
> hm, I think I must be more precise. What I now have (concerning the first page 
> of a pdf-file) is:
> ------------------------------------------
> The title of this wonderful document
> 
> the content of <version>
> 
> The honorable authors
> 
> ...
> 
> Footer: the content of <version>
> -----------------------------------------
> 
> What I would like to have is:
> -----------------------------------------
> The title of this wonderful document
> 
> The honorable authors
> 
> ...
> 
> Footer: the content of <version>
> 
> -----------------------------------------

Hmm, I don't know.  I haven't done much with document2fo.xsl.  It's been
kicking around Apache ever since (IIRC) Berin wrote it for Avalon.  I
have a much better one for Anteater I'll have to integrate at some stage
:)

I'd suggest running Forrest as a webapp, and then doing realtime
experiments with
build/webapp/resources/skins/common/xslt/fo/document2fo.xsl


--Jeff


> Thank you very much,
> Stephan
> 
> >
> > --Jeff
> >
> > > TIA
> > > Stephan
> 
> -- 
> Stephan E. Schlierf M.A.
> Methoden, Werkzeuge, Technologien
> Bereich Informationssysteme
> VSA Bayreuth
> Gottlieb-Keim-Str. 23
> 95448 Bayreuth
> Tel.: (0921) 75 86 42-13
> Fax:  (0921) 75 86 42-70
> 
> www.vsa.de
> www.apothekenportal.de
> 

Re: document2fo.xsl

Posted by Stephan Schlierf <st...@vsa.de>.
Am Mittwoch, 1. Oktober 2003 13:10 schrieb Jeff Turner:
> On Wed, Oct 01, 2003 at 12:59:07PM +0200, Stephan Schlierf wrote:
> > Am Mittwoch, 1. Oktober 2003 12:21 schrieb Jeff Turner:
> > > On Tue, Sep 30, 2003 at 12:21:01PM +0200, Stephan Schlierf wrote:
> > > > Hi,
> > > >
> > > > I desperately try to format the output of the <version>-element in
> > > > pdf-files but I can't find the place where to edit in
> > > > document2fo.xsl.
> > > >
> > > > Does anybody have a useful hint for me?
> > >
> > > Depends where you want <version> info to go.  The footer seems like a
> > > sensible place, in which case footerinfo.xsl
> >
> > Hi,
> >
> > good idea, I applied it there, thank you! But now I still have the
> > problem, that the <version>-info not only appears at the footer but also
> > between the title of the document and the <authors> info on the first
> > page.
> > Any hints ?
>
> I guess that's because of this in document2fo.xsl:
>
>     <fo:static-content flow-name="first-footer">
>       <fo:block
>         border-top="0.25pt solid"
>         padding-before="6pt"
>         text-align="center">
>         <xsl:apply-templates select="footer"/>
>       </fo:block>
>       <fo:block
>         text-align="start">
>         Page <fo:page-number/>
>       </fo:block>
>       <xsl:call-template name="info"/>
>     </fo:static-content>
>
> Perhaps specify the version there instead of footerinfo.xsl (which defines
> 'info'), or make 'info' take a param specifying whether to display the
> version.
>

hm, I think I must be more precise. What I now have (concerning the first page 
of a pdf-file) is:
------------------------------------------
The title of this wonderful document

the content of <version>

The honorable authors

...

Footer: the content of <version>
-----------------------------------------

What I would like to have is:
-----------------------------------------
The title of this wonderful document

The honorable authors

...

Footer: the content of <version>

-----------------------------------------

Thank you very much,
Stephan

>
> --Jeff
>
> > TIA
> > Stephan

-- 
Stephan E. Schlierf M.A.
Methoden, Werkzeuge, Technologien
Bereich Informationssysteme
VSA Bayreuth
Gottlieb-Keim-Str. 23
95448 Bayreuth
Tel.: (0921) 75 86 42-13
Fax:  (0921) 75 86 42-70

www.vsa.de
www.apothekenportal.de


Re: document2fo.xsl

Posted by Jeff Turner <je...@apache.org>.
On Wed, Oct 01, 2003 at 12:59:07PM +0200, Stephan Schlierf wrote:
> Am Mittwoch, 1. Oktober 2003 12:21 schrieb Jeff Turner:
> > On Tue, Sep 30, 2003 at 12:21:01PM +0200, Stephan Schlierf wrote:
> > > Hi,
> > >
> > > I desperately try to format the output of the <version>-element in
> > > pdf-files but I can't find the place where to edit in document2fo.xsl.
> > >
> > > Does anybody have a useful hint for me?
> >
> > Depends where you want <version> info to go.  The footer seems like a
> > sensible place, in which case footerinfo.xsl
> >
> 
> Hi,
> 
> good idea, I applied it there, thank you! But now I still have the problem, 
> that the <version>-info not only appears at the footer but also between the 
> title of the document and the <authors> info on the first page.
> Any hints ?

I guess that's because of this in document2fo.xsl:

    <fo:static-content flow-name="first-footer">
      <fo:block
        border-top="0.25pt solid"
        padding-before="6pt"
        text-align="center">
        <xsl:apply-templates select="footer"/>
      </fo:block>
      <fo:block
        text-align="start">
        Page <fo:page-number/>
      </fo:block>
      <xsl:call-template name="info"/>
    </fo:static-content>

Perhaps specify the version there instead of footerinfo.xsl (which defines
'info'), or make 'info' take a param specifying whether to display the version.


--Jeff

> 
> TIA
> Stephan
> 

Re: document2fo.xsl

Posted by Stephan Schlierf <st...@vsa.de>.
Am Mittwoch, 1. Oktober 2003 12:21 schrieb Jeff Turner:
> On Tue, Sep 30, 2003 at 12:21:01PM +0200, Stephan Schlierf wrote:
> > Hi,
> >
> > I desperately try to format the output of the <version>-element in
> > pdf-files but I can't find the place where to edit in document2fo.xsl.
> >
> > Does anybody have a useful hint for me?
>
> Depends where you want <version> info to go.  The footer seems like a
> sensible place, in which case footerinfo.xsl
>

Hi,

good idea, I applied it there, thank you! But now I still have the problem, 
that the <version>-info not only appears at the footer but also between the 
title of the document and the <authors> info on the first page.
Any hints ?

TIA
Stephan