Nick, your code puts a number on the title page:

<xsl:when test="$pageclass = 'titlepage'and $sequence = 'first'">
<fo:page-number><!-- nop --></fo:page-number>
</xsl:when>

I see you have a comment of <!--nop-->. But the empty element
<fo:pagenumber/> inserts a page number. I think you want:

<xsl:when test="$pageclass = 'titlepage'and $sequence = 'first'"/>

Paul



On Thu, Feb 9, 2012 at 2:49 AM, Wood, Nick <nick.w...@npc.nato.int> wrote:

> Paul,
>
> I have already customised the footer.content template, see the extract for
> numbering below.  My problem is that everything works fine until I call the
> select.user.pagemaster template.  I assume it has something to do with the
> page-sequence-master but I don't what.
>
> <xsl:when test="$position='centertop'">
> <fo:block>
> <xsl:choose>
> <xsl:when test="$pageclass = 'titlepage'and $sequence = 'first'">
> <fo:page-number><!-- nop --></fo:page-number>
> </xsl:when>
> <xsl:otherwise>
> <fo:page-number/>
> </xsl:otherwise>
> </xsl:choose>
> </fo:block>
> </xsl:when>
>
>
> Regards
>
> Nick
>
>
>
>
> From: Paul Tremblay [paulhtremb...@gmail.com]
> Sent: Wednesday, February 08, 2012 6:25 PM
> To: Wood, Nick
> Cc: DocBook Apps
> Subject: Re: [docbook-apps] PAGE NUMBER APPEARS ON TITLEPAGE
>
>
> I think you have to customize the footer.template:
>
> <xsl:template name="footer.content"> ...
>
> Check out the same documentation (Docbook XSL The Complete Guide).
>
>
> On Wed, Feb 8, 2012 at 8:49 AM, Wood, Nick <nick.w...@npc.nato.int> wrote:
>
> Hi,
>
> I recently had to further customise my setup-pagemasters.xsl  (taken from
> fo/pagemaster.xsl) as Parts have been introduced to some of our books, and
> I was getting the background image on both the Title page and the Part
> page.  Following the guidelines from Docbook XSL (The Complete Guide) and
> various postings on docbook-apps, I renamed the page-sequence master and
> added the select.user.pagemaster template; the customisation works fine,
> with the excpetion that now I get a page number on my titlepage and legal
> notice page.
>
> I have tried several customisations to remove the page number but whenever
> I call the select.user.pagemaster template I get the same result.  Any help
> would be grarefully recieved.
>
> Regards
>
> Nick Wood
>
> <xsl:template name="user.pagemasters">
> <xsl:variable name="npclogo"
> select='"../installed/logos/documentation_front_09e.jpg"'/>
> <xsl:variable name="npclogodraft"
> select='"../installed/logos/documentation_front_09e-draft.jpg"'/>
>  <!-- setup for title page(s) -->
>   <fo:page-sequence-master master-name="coversequence">
>     <fo:repeatable-page-master-alternatives>
>       <fo:conditional-page-master-reference master-reference="blank"
>                                             blank-or-not-blank="blank"/>
>       <fo:conditional-page-master-reference
> master-reference="titlepage-first-npc"
>                                             page-position="first"/>
>       <fo:conditional-page-master-reference
> master-reference="titlepage-odd-npc"
>                                             odd-or-even="odd"/>
>       <fo:conditional-page-master-reference
>                                             odd-or-even="even">
>         <xsl:attribute name="master-reference">
>           <xsl:choose>
>             <xsl:when test="$double.sided != 0">titlepage-even</xsl:when>
>             <xsl:otherwise>titlepage-odd</xsl:otherwise>
>           </xsl:choose>
>         </xsl:attribute>
>       </fo:conditional-page-master-reference>
>     </fo:repeatable-page-master-alternatives>
>   </fo:page-sequence-master>
>   <fo:simple-page-master master-name="titlepage-first-npc"
>                          page-width="{$page.width}"
>                          page-height="{$page.height}"
>                          margin-top="5mm"
>                          margin-bottom="5mm"
>                          margin-left="5mm"
>                          margin-right="5mm">
>     <xsl:if test="$axf.extensions != 0">
>       <xsl:call-template name="axf-page-master-properties">
>         <xsl:with-param name="page.master">blank</xsl:with-param>
>       </xsl:call-template>
>     </xsl:if>
>
>  <fo:region-body margin-bottom="0mm"
>                       margin-top="0mm"
>                       column-gap="{$column.gap.titlepage}"
>                       column-count="{$column.count.titlepage}">
>              <xsl:attribute name="background-image">
>             <xsl:call-template name="fo-external-image">
>               <xsl:with-param name="filename" select="$npclogo"/>
>             </xsl:call-template>
>           </xsl:attribute>
>           <xsl:attribute name="background-attachment">fixed</xsl:attribute>
>           <xsl:attribute
> name="background-position-horizontal">center</xsl:attribute>
>  <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
>           <xsl:attribute
> name="background-position-vertical">center</xsl:attribute>
>     </fo:region-body>
>     <fo:region-before region-name="xsl-region-before-first"
>                       extent="{$region.before.extent}"
>                       display-align="before"/>
>     <fo:region-after region-name="xsl-region-after-first"
>                      extent="{$region.after.extent}"
>                       display-align="after"/>
>   </fo:simple-page-master>
>   <fo:simple-page-master master-name="titlepage-odd-npc"
>                          page-width="{$page.width}"
>                          page-height="{$page.height}"
>                          margin-top="{$page.margin.top}"
>                          margin-bottom="{$page.margin.bottom}"
>                          margin-left="{$margin.left.inner}"
>                          margin-right="{$page.margin.outer}">
>     <xsl:if test="$axf.extensions != 0">
>       <xsl:call-template name="axf-page-master-properties">
>         <xsl:with-param name="page.master">blank</xsl:with-param>
>       </xsl:call-template>
>     </xsl:if>
>     <fo:region-body margin-bottom="{$body.margin.bottom}"
>                     margin-top="{$body.margin.top}"
>                     column-gap="{$column.gap.titlepage}"
>                     column-count="{$column.count.titlepage}">
>     </fo:region-body>
>     <fo:region-before region-name="xsl-region-before-odd"
>                       extent="{$region.before.extent}"
>                       display-align="before"/>
>     <fo:region-after region-name="xsl-region-after-odd"
>                      extent="{$region.after.extent}"
>                       display-align="after"/>
>   </fo:simple-page-master>
>   <fo:simple-page-master master-name="titlepage-even-npc"
>                          page-width="{$page.width}"
>                          page-height="{$page.height}"
>                          margin-top="{$page.margin.top}"
>                          margin-bottom="{$page.margin.bottom}"
>                          margin-left="{$margin.left.outer}"
>                          margin-right="{$page.margin.inner}">
>     <xsl:if test="$axf.extensions != 0">
>       <xsl:call-template name="axf-page-master-properties">
>         <xsl:with-param name="page.master">blank</xsl:with-param>
>       </xsl:call-template>
>     </xsl:if>
>     <fo:region-body margin-bottom="{$body.margin.bottom}"
>                     margin-top="{$body.margin.top}"
>                     column-gap="{$column.gap.titlepage}"
>                     column-count="{$column.count.titlepage}">
>     </fo:region-body>
>     <fo:region-before region-name="xsl-region-before-even"
>                       extent="{$region.before.extent}"
>                       display-align="before"/>
>     <fo:region-after region-name="xsl-region-after-even"
>                      extent="{$region.after.extent}"
>                       display-align="after"/>
>   </fo:simple-page-master>
>
> </xsl:template>
>  <xsl:template name="select.user.pagemaster">
>        <xsl:param name="element"/>
>        <xsl:param name="pageclass"/>
>        <xsl:param name="default-pagemaster"/>
>        <xsl:choose>
>            <xsl:when test="$element = 'book' and $pageclass = 'titlepage'">
>                <xsl:value-of select="'coversequence'"/>
>            </xsl:when>
>            <xsl:otherwise>
>                <xsl:value-of select="$default-pagemaster"/>
>            </xsl:otherwise>
>        </xsl:choose>
>     </xsl:template>
> </xsl:stylesheet>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
>
>

Reply via email to