[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: Page number of title page of first <part>
Hi there, When I run test.xml through Norm's stylesheets (1.4.0) using Xalan-J 2.0.1, I get test.fo (pasted after test.xml), and a toc that looks like this. The title page for Part 1 is numbered as if it belonged with the front-matter when it should really be the first page of the book ("1" arabic). I'm thinking this is a stylesheet bug...or I should change the way I have it tagged? Thanks, David Contents Introduction ................................ iii I. Part 1 ......................................... 4 1. Chapter 1 ........................ 1 II. Part 2 ........................................ 2 2. Chapter 2 ........................ 3 ======================== test.xml ======================== <?xml version="1.0"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBk XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.1/docbookx.dtd"> <book> <title>Foo</title> <preface> <title>Introduction</title> <para></para> </preface> <part> <title>Part 1</title> <chapter> <title>Chapter 1</title> <para></para> </chapter> </part> <part> <title>Part 2</title> <chapter> <title>Chapter 2</title> <para></para> </chapter> </part> </book> ============== test.fo ============== <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" text-align="justify" font-size="10pt" font-family="Times Roman"> <fo:layout-master-set> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="blank"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt" region-name="xsl-region-before-blank"/> <fo:region-after extent="12pt" region-name="xsl-region-after-blank"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="simple1"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt"/> <fo:region-after extent="12pt"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="left1"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt" region-name="xsl-region-before-left"/> <fo:region-after extent="12pt" region-name="xsl-region-after-left"/> </fo:simple-page-master> <fo:simple-page-master margin-right="10pc" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="right1"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt" region-name="xsl-region-before-right"/> <fo:region-after extent="12pt" region-name="xsl-region-after-right"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="first1"> <fo:region-body margin-top="24pt" margin-bottom="24pt"/> <fo:region-before extent="12pt" region-name="xsl-region-before-first"/> <fo:region-after extent="12pt" region-name="xsl-region-after-first"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="simple2"> <fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/> <fo:region-before extent="12pt"/> <fo:region-after extent="12pt"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="10pc" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="left2"> <fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/> <fo:region-before extent="12pt" region-name="xsl-region-before-left"/> <fo:region-after extent="12pt" region-name="xsl-region-after-left"/> </fo:simple-page-master> <fo:simple-page-master margin-right="10pc" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="right2"> <fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/> <fo:region-before extent="12pt" region-name="xsl-region-before-right"/> <fo:region-after extent="12pt" region-name="xsl-region-after-right"/> </fo:simple-page-master> <fo:simple-page-master margin-right="1in" margin-left="1in" margin-bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in" master-name="first2"> <fo:region-body margin-top="24pt" margin-bottom="24pt" column-count="1"/> <fo:region-before extent="12pt" region-name="xsl-region-before-first"/> <fo:region-after extent="12pt" region-name="xsl-region-after-first"/> </fo:simple-page-master> <fo:page-sequence-master master-name="titlepage1"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-name="first1"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="oneside1"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-name="simple1"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="twoside1"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference blank-or-not-blank="blank" master-name="blank"/> <fo:conditional-page-master-reference odd-or-even="odd" master-name="right1"/> <fo:conditional-page-master-reference odd-or-even="even" master-name="left1"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="titlepage2"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-name="first2"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="oneside2"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-name="simple2"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> <fo:page-sequence-master master-name="twoside2"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference blank-or-not-blank="blank" master-name="blank"/> <fo:conditional-page-master-reference odd-or-even="odd" master-name="right2"/> <fo:conditional-page-master-reference odd-or-even="even" master-name="left2"/> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-name="titlepage1" hyphenate="true" id="N2" language="en"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block font-family="Helvetica" font-weight="bold" font-size="24.8832pt" text-align="center" space-before="18.6624pt"> <fo:block hyphenate="false" keep-with-next.within-column="always">Foo</fo:block> </fo:block> <fo:block break-after="page"/> <fo:block font-size="14.4pt" font-family="Helvetica" font-weight="bold"> <fo:block>Foo</fo:block> </fo:block> <fo:block break-after="page"/> </fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="titlepage1" format="i" hyphenate="true" language="en"> <fo:flow flow-name="xsl-region-body"> <fo:block space-before.minimum="0.5em" space-before.optimum="1em" space-before.maximum="2em" space-after.minimum="0.5em" space-after.optimum="1em" space-after.maximum="2em"> <fo:block> <fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" margin-left="-4pc" space-after="1em">Contents</fo:block> </fo:block> <fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify"> <fo:inline keep-with-next.within-line="always"> Introduction</fo:inline> <fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="N5"> <fo:page-number-citation ref-id="N5"/> </fo:basic-link> </fo:inline> </fo:block> <fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify"> <fo:inline keep-with-next.within-line="always">I Part 1</fo:inline> <fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="N9"> <fo:page-number-citation ref-id="N9"/> </fo:basic-link> </fo:inline> </fo:block> <fo:block start-indent="2pc"> <fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify"> <fo:inline keep-with-next.within-line="always">1 Chapter 1</fo:inline> <fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="NC"> <fo:page-number-citation ref-id="NC"/> </fo:basic-link> </fo:inline> </fo:block> </fo:block> <fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify"> <fo:inline keep-with-next.within-line="always">II Part 2</fo:inline> <fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="N10"> <fo:page-number-citation ref-id="N10"/> </fo:basic-link> </fo:inline> </fo:block> <fo:block start-indent="2pc"> <fo:block last-line-end-indent="-2pc" end-indent="2pc" text-align-last="justify"> <fo:inline keep-with-next.within-line="always">2 Chapter 2</fo:inline> <fo:inline keep-together.within-line="always"> <fo:leader keep-with-next.within-line="always" leader-pattern="dots"/> <fo:basic-link internal-destination="N13"> <fo:page-number-citation ref-id="N13"/> </fo:basic-link> </fo:inline> </fo:block> </fo:block> </fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="oneside1" format="i" hyphenate="true" id="N5" language="en"> <fo:static-content flow-name="xsl-region-after"> <fo:block font-size="10pt" text-align="center"> <fo:page-number xmlns:fo="http://www.w3.org/1999/XSL/Format"/> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block font-weight="bold" font-family="Helvetica" font-size="17.28pt" margin-left="-4pc"> <fo:block hyphenate="false" keep-with-next.within-column="always">Introduction</fo:block> </fo:block> </fo:block> <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em"/> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="titlepage1" hyphenate="true" id="N9" language="en"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block text-align="center" font-family="Helvetica" font-weight="bold" space-before="18.6624pt" font-size="24.8832pt"> <fo:block hyphenate="false" keep-with-next.within-column="always">Part 1</fo:block> </fo:block> </fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="oneside1" hyphenate="true" id="NC" language="en" initial-page-number="1"> <fo:static-content flow-name="xsl-region-before"> <fo:block text-align="center"> <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="10pt">Chapter 1. Chapter 1</fo:block> </fo:block> </fo:static-content> <fo:static-content flow-name="xsl-region-after"> <fo:block font-size="10pt" text-align="center"> <fo:page-number xmlns:fo="http://www.w3.org/1999/XSL/Format"/> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" margin-left="-4pc"> <fo:block hyphenate="false" keep-with-next.within-column="always">Chapter 1. Chapter 1</fo:block> </fo:block> </fo:block> <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em"/> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="titlepage1" hyphenate="true" id="N10" language="en"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block text-align="center" font-family="Helvetica" font-weight="bold" space-before="18.6624pt" font-size="24.8832pt"> <fo:block hyphenate="false" keep-with-next.within-column="always">Part 2</fo:block> </fo:block> </fo:block> </fo:flow> </fo:page-sequence> <fo:page-sequence master-name="oneside1" hyphenate="true" id="N13" language="en"> <fo:static-content flow-name="xsl-region-before"> <fo:block text-align="center"> <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="10pt">Chapter 2. Chapter 2</fo:block> </fo:block> </fo:static-content> <fo:static-content flow-name="xsl-region-after"> <fo:block font-size="10pt" text-align="center"> <fo:page-number xmlns:fo="http://www.w3.org/1999/XSL/Format"/> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:block font-family="Helvetica" font-weight="bold" font-size="17.28pt" margin-left="-4pc"> <fo:block hyphenate="false" keep-with-next.within-column="always">Chapter 2. Chapter 2</fo:block> </fo:block> </fo:block> <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em"/> </fo:flow> </fo:page-sequence> </fo:root>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC