OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: How to get total number of pages in the footer?


Great! Thanks Bob.

I'll give that a try ... I have one more question
though.
How can I get output like this ...

                            page 2 of 10
                           END OF PAGE

... would guess I would do something like this ...

<fo:block>
   <xsl:text>page </xsl:test><fo:page-number/> of
<fo:??????>
</fo:block>
<fo:block>
<xsl:text>END OF PAGE</xsl:text>
</fo:block>

... but I do not know what contains the value of the
total number of pages.

--- Bob Stayton <bobs@sagehill.net> wrote:

> Hi Sheldon,
> Both pieces of text are in the same fo:block, which
> means the typesetter
> fills out lines with them, in this case only one
> line.  So put them each in
> their own block:
> 
> <fo:block>
>    <fo:page-number/>
> </fo:block>
> <fo:block>
>    <xsl:text>END OF PAGE</xsl:text>
> </fo:block>
> 
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
> 
> 
> ----- Original Message ----- 
> From: "Sheldon Plankton" <sheldonplankton@yahoo.com>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Thursday, February 16, 2006 10:14 AM
> Subject: [docbook-apps] How to get a Multilined
> footer?
> 
> 
> > Hi,
> >
> >   Sorry "cross posting" I mistakenly posted this
> to the docbook mailing
> list and not the
> >   docbook-app mailing list.  I will spank myself
> for this error!
> >
> >   I have in my customization xsl file for
> generating PDFs these lines
> > ...
> >
> >   <?xml version='1.0'?>
> >   <xsl:stylesheet
> >     
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> >      xmlns:fo="http://www.w3.org/1999/XSL/Format";
> >       version="1.0">
> >
> >   <xsl:template
> name="initial.page.number">auto-odd</xsl:template>
> >   <xsl:template
> name="page.number.format">1</xsl:template>
> >
> >   <xsl:template name="footer.content">
> >      <xsl:param name="pageclass" select ="''" />
> >      <xsl:param name="sequence" select ="''" />
> >      <xsl:param name="position" select ="''" />
> >      <xsl:param name="gentext-key" select ="''" />
> >
> >      <xsl:choose>
> >          <xsl:when test="$postion='center'" >
> >          <fo:page-number/>
> >          <xsl:text>END OF PAGE</xsl:text>
> >          </xsl:when>
> >          <xsl:otherwise>
> >           <!-- no output -->
> >          <xsl:otherwise/>
> >   </xsl:choose>
> >
> >   ... which gives me footers that look something
> like this ...
> >
> >
> >                                        1END OF
> PAGE
> >
> >
> >   ... when I want ...
> >
> >                                                  1
> >                                         END OF
> PAGE
> >
> >   ... what do I need to chane?
> >
> >   Thanks
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]