Re: Mixed page sizes in a section

It does work but if there is a better way to switch page sizes within my
chapter I would love to change it. Thanks for your response.

Tony Graham-3 wrote:
> 
> On Tue, April 27, 2010 11:59 am, scopley wrote:
>> Here is a snippet of the XML File:
>>
>> <mmchapter chapnbr="4" id="ch04" revdate="00/00/00">
>> <mmfigure id="fig100">
>> <mmsheet foldout="1">
>> <mmeffect>ALL</mmeffect>
>> <mmgraphic chg="u" gnbr="c130h7930007a"/>
>> </mmsheet>
>> </mmfigure>
>> </mmchapter>
>>
>> Here is a snippet of my Chapter template:
>>
>> <xsl:template match="imm:mmchapter">
>> <fo:page-sequence master-reference="master" initial-page-number="1">
> 
> You could do:
> 
> <xsl:if test="not(preceding-sibling::imm:mmchapter)">
>   <xsl:attribute name="initial-page-number">1</xsl:attribute>
> </xsl:if>
> 
> so you only set it on the first chapter.
> 
>> <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>
>> <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>
>> <xsl:apply-templates/>
>> <fo:block id="{generate-id(.)}"/>
>> </fo:flow>
>> </fo:page-sequence>
>> </xsl:template>
>>
>> Here is a snippet of my figure template:
>>
>> <xsl:template match="imm:mmfigure">
>> <xsl:variable name="total" select="@shttotal"/>
>> <xsl:choose>
>> <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">
>> <xsl:apply-templates/>
>> </fo:block-container>
>> </fo:flow>
>> </fo:page-sequence>
>> </xsl:when>
> 
> You appear to be putting fo:page-sequence inside fo:flow, which I'm
> surprised works at all for you.
> 
> 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-tp28288009p28376337.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.

Received on Tuesday, 27 April 2010 12:33:19 UTC