[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Can't use custom page master for own title page, why?
Hi, I am going to create my own title page. And I follow the description at: http://www.sagehill.net/docbookxsl/PageDesign.html The main reason for it is that my first and only title page should not have any margins in it. What I did so far is: 1. create a customization layer 2. declare my custom page master (copied and adapted from fo/pagesetup.xsl) 3. use custom page master Here is a snippet from my customization layer: <!-- title page, custom page masters--> <xsl:template name="user.pagemasters"> <fo:simple-page-master master-name="my-titlepage" page-width="21cm" page-height="29.7cm" margin-top="0pt" margin-bottom="0pt" margin-left="0pt" margin-right="0pt"> <fo:region-body margin-bottom="1.5cm" margin-top="0pt" column-gap="0pt" column-count="1"></fo:region-body> <fo:region-before region-name="xsl-region-before-odd" extent="0pt" display-align="before"/> <fo:region-after region-name="xsl-region-after-odd" extent="0pt" display-align="after"/> </fo:simple-page-master> <fo:page-sequence-master master-name="my-titlepage"> <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" page-position="first"/> <fo:conditional-page-master-reference master-reference="titlepage-odd" 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> </xsl:template> <xsl:template name="select.user.pagemaster"> <xsl:param name="element"/> <xsl:param name="pageclass"/> <xsl:param name="default-pagemaster"/> <!-- Return my customized title page master name if for titlepage, otherwise return the default --> <xsl:choose> <xsl:when test="$default-pagemaster = 'titlepage'"> <xsl:value-of select="'my-titlepage'" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$default-pagemaster"/> </xsl:otherwise> </xsl:choose> </xsl:template> I always get the following error from FOP: docbook/usermanual_paper.fo:1:29110: 'master-name' (my-titlepage) must be unique across page-masters and page-sequence-masters Am I missing anything? Regards, Darya ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]