tags:

views:

217

answers:

0

I have written xslt scripts header & footers for blank pages, it is just a copy of the normal header and footer templates for other pages. The script is working for other pages, but its not working for blank pages..?

Could anyone suggest me something?

Here is my code:

<xsl:template name="insertBodyBlankOddHeader">
    <fo:static-content flow-name="odd-body-blank-header">
        <fo:block xsl:use-attribute-sets="__body__odd__header">
            <xsl:call-template name="insertVariable">
                <xsl:with-param name="theVariableID" select="'Body odd header'"/>
                <xsl:with-param name="theParameters">
                    <number>
                      <xsl:variable name="id" select="@id"/>
                      <xsl:variable name="topicChapters">
                            <xsl:copy-of select="$map//*[contains(@class, ' bookmap/chapter ')]"/>
                        </xsl:variable>
                        <xsl:variable name="chapterNumber">
                            <xsl:number format="1" value="count($topicChapters/*[@id = $id]/preceding-sibling::*) + 1"/>
                        </xsl:variable>
                      <fo:inline xsl:use-attribute-sets="body_odd_chapnum">
                          <xsl:value-of select="$chapterNumber"/>
       </fo:inline>
                    </number>
                    <heading>
                         <fo:inline xsl:use-attribute-sets="__body__odd__header__heading">
                            <fo:retrieve-marker retrieve-class-name="current-header"/>
                        </fo:inline>
                    </heading>
                </xsl:with-param>
            </xsl:call-template>
        </fo:block>
    </fo:static-content>
</xsl:template>

Like the same i have written for even blankpage header and footer, and i have added the templates which i called here to the necessary places. Actually I have just copied the normal(unblaked) pages templates for blank pages too, it works with normal unblank pages, not with blank pages..?

Please help me to get it in the blank pages through XSLT, XSLFO code?

Best Regards, Antony