docbook-apps

  • 1.  User pagemaster - process region-start area using stylesheet

    Posted 08-30-2009 09:41
    Hi,

    in my custom user pagemaster I have defined a region-start area.

    <fo:region-start region-name="xsl-region-start-odd"
    extent="{$cl.region.start.extent}"></fo:region-start>

    Now I want to display a logo in this area on every page. I know that I
    can just define a background image, but I want to be able to add more
    content to this area in the future. Thus I am interested in if there
    is a way similar to the header.xsl and footer.xsl files to use a
    stylesheet for this area.

    Any ideas?

    Cheers,
    Tobias



  • 2.  Re: User pagemaster - process region-start area using stylesheet

    Posted 08-30-2009 11:29
    Hi,

    I found the solution :) Just wanted to tell you how I solved the
    problem - maybe somebody else has the same question.

    Analog to the <xsl:template match="*" mode="running.head.mode">
    template located at pagesetup.xsl I have introduced a <xsl:template
    match="*" mode="running.start.mode"> template. To be sure that it is
    executed during runtime, you have to add it to the component.xsl (in
    my case the article template) the same way the head template is
    called.

    That's all :)

    Cheers,
    Tobias


    On Sun, Aug 30, 2009 at 11:41 AM, Tobias Anstett
    [k15t.com]<tobias@k15t.com> wrote:
    > Hi,
    >
    > in my custom user pagemaster I have defined a region-start area.
    >
    > <fo:region-start region-name="xsl-region-start-odd"
    > extent="{$cl.region.start.extent}"></fo:region-start>
    >
    > Now I want to display a logo in this area on every page. I know that I
    > can just define a background image, but I want to be able to add more
    > content to this area in the future. Thus I am interested in if there
    > is a way similar to the header.xsl and footer.xsl files to use a
    > stylesheet for this area.
    >
    > Any ideas?
    >
    > Cheers,
    > Tobias
    >