Multiple geometric page master settings in docx

SCHWARZ Matthias <[email protected]>
Newsgroups gmane.text.xml.xfc.general
Message-ID <[email protected]>
Dear XFC-Support,

I am trying to set multiple page layouts with different geometric settings on page 1 and page 2 (and the following pages) for a docx output file. On http://www.xmlmind.com/foconverter/_distrib/doc/user/implementation.html#page_layout I~ve found the restriction that this is not possible for the rtf format. Should this work for docx?
I've attached a xslt file, which should have applied top page margins of 20.4mm on the first page and 51.4mm on the following pages. But the docx results in a top page margin of 51.4mm for all pages.

Involved program: XMLmind XSL-FO Converter Engine
XFC-Version: 4.7
OS: Windows 7
MS-Word: 2010
Java Version: 1.6.0.33

Thank you and kind regards,
Matthias


--
Matthias Schwarz
Software Development Tester

[Description: Description: Description: Description: Description: Description: cid:[email protected]]

INFINICA - Member of Qualysoft Group
Leonard-Bernstein-Straße 10
A-1220 Wien
Österreich

Tel +43 1 4095987-27
Fax +43 1 4095987-11

www.infinica.at<http://www.infinica.at/>
www.qualysoft.at<http://www.qualysoft.at/>
[email protected]<mailto:[email protected]>

P Please consider the environment before printing this email


--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support
image001.png (image/png, 4.6 KB) - not displayed
test.xslt (text/xml, 3.1 KB)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:inf-el="http://www.infinica.com/elements"
                xmlns:inf-fn="http://www.infinica.com/functions" xmlns:svg="http://www.w3.org/2000/svg"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:variable name="_infinica_metadata" select="."/>
  <xsl:template match="/" priority="10">
    <fo:root>
      <fo:layout-master-set>
        <fo:simple-page-master margin-bottom="20.4mm" margin-left="31.75mm" margin-right="31.75mm"
                               margin-top="20.4mm" master-name="A4" page-height="297.0mm"
                               page-width="210.0mm">
          <fo:region-body margin-bottom="5.0mm" margin-left="0.0" margin-right="0.0"
                          margin-top="5.0mm" region-name="body"/>
          <fo:region-before extent="5.0mm" precedence="false" region-name="header"/>
          <fo:region-after extent="5.0mm" precedence="false" region-name="footer"/>
          <fo:region-start extent="0.0" region-name="left"/>
          <fo:region-end extent="0.0" region-name="right"/>
        </fo:simple-page-master>
        <fo:page-sequence-master master-name="2pages">
          <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference master-reference="A4" page-position="first"/>
            <fo:conditional-page-master-reference master-reference="A4-2"/>
          </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
        <fo:simple-page-master margin-bottom="20.4mm" margin-left="31.75mm" margin-right="31.75mm"
                               margin-top="51.4mm" master-name="A4-2" page-height="297.0mm"
                               page-width="210.0mm">
          <fo:region-body margin-bottom="5.0mm" margin-left="0.0" margin-right="0.0"
                          margin-top="5.0mm" region-name="body"/>
          <fo:region-before extent="5.0mm" precedence="false" region-name="header"/>
          <fo:region-after extent="5.0mm" precedence="false" region-name="footer"/>
          <fo:region-start extent="0.0" region-name="left"/>
          <fo:region-end extent="0.0" region-name="right"/>
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="2pages">
        <fo:flow flow-name="body">
          <fo:block linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="inherit">
            <fo:inline>
              <xsl:text>Page 1</xsl:text>
            </fo:inline>
          </fo:block>
          <fo:block break-before="page" linefeed-treatment="preserve" white-space-collapse="false"
                    white-space-treatment="inherit">
            <fo:inline>
              <xsl:text>Page 2</xsl:text>
            </fo:inline>
          </fo:block>
          <fo:block id="_last-block"/>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>
  </xsl:template>
</xsl:stylesheet>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.