W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2010

Re: Mixed page sizes in a section

From: scopley <Sarah.R.Copley@uscg.mil>
Date: Tue, 27 Apr 2010 03:59:06 -0700 (PDT)
Message-ID: <28375514.post@talk.nabble.com>
To: www-xsl-fo@w3.org
Here is a snippet of the XML File:

<mmchapter chapnbr="4" id="ch04" revdate="00/00/00">
<mmfigure id="fig100">
<mmsheet foldout="1">
<mmgraphic chg="u" gnbr="c130h7930007a"/>

Here is a snippet of my Chapter template:

<xsl:template match="imm:mmchapter">
<fo:page-sequence master-reference="master" initial-page-number="1">
<fo:flow flow-name="body">
<fo:block xsl:use-attribute-sets="headfoot top" text-align="center"
font-size="14pt" space-after="10pt" padding-top="20pt"
break-before="odd-page" id="{@id}">CHAPTER
<xsl:value-of select="@chapnbr"/>
<fo:block xsl:use-attribute-sets="headfoot bottom" text-align="center"
font-size="14pt" space-after="25pt" padding-bottom="20pt">
<xsl:value-of select="imm:mmtitle"/>
<fo:block id="{generate-id(.)}"/>

Here is a snippet of my figure template:

<xsl:template match="imm:mmfigure">
<xsl:variable name="total" select="@shttotal"/>
<xsl:when test="imm:mmsheet/@foldout='1'">
<fo:page-sequence master-reference="11x17" initial-page-number="auto-odd">
<fo:flow flow-name="body11x17">
<fo:block-container id="{@id}" xsl:use-attribute-sets="figsp"
keep-together="always" span="all">

Tony Graham-3 wrote:
> On Wed, Apr 21 2010 12:47:51 +0100, Sarah.R.Copley@uscg.mil wrote:
>> I'm looking for a way to style a section with different page sizes
>> throughout. Through the use of an attribute I'm able to switch between
>> different pagemasters and get the sizing that I want however when it
>> switches back to the 8.5x11 it resets page number back to one.
>> I know that it is because I have my initial page number set to 1 on my
>> chapter template so when it goes back to that page set it resets it to 1.
>> Is
>> there a way to make the initial page number attribute conditional or is
>> there a better way to switch page sizes within a section?
> It might help us help you if you showed a little of what your XSLT is
> doing.
> Regards,
> Tony Graham                         Tony.Graham@MenteithConsulting.com
> Director                                  W3C XSL FO SG Invited Expert
> Menteith Consulting Ltd                               XML Guild member
> XML, XSL and XSLT consulting, programming and training
> Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
> Registered in Ireland - No. 428599   http://www.menteithconsulting.com
>   --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
> xmlroff XSL Formatter                               http://xmlroff.org
> xslide Emacs mode                  http://www.menteith.com/wiki/xslide
> Unicode: A Primer                               urn:isbn:0-7645-4625-2

View this message in context: http://old.nabble.com/Mixed-page-sizes-in-a-section-tp28288009p28375514.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Tuesday, 27 April 2010 11:01:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:33 UTC