Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Has anyone sucessfully created a template for 11x17 foldouts using XSL FO?
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?
Here is a snippet of my Chapter template:
<xsl:template<font color="#ff0000"> match="imm:mmchapter">
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>
<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">
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>
Sorry for such a long post. Any help would be greatly appreciated.
Sarah