Hi all,
 I try to make an ODT to DAISY DTBook AddOn based on an XSLT
 Transformation and Java UNO AddOn.
 (for more Informations, see: http://sourceforge.net/projects/odt2dtbook)

 DTBooks need page numbering in order to navigate directly to a specific page.
 It is strongly recommended that pages be individually and uniquely
 tagged in text books.

 DTBooks need to use "printed" page numbering, not "real" page
 numbering (in status bar).
 Moreover Dtbook make a distinction between 0-9, iii, and other numbering format

 This is a dtbook example:
 [...]
  <pagenum page="front" id="fm-3">iii</pagenum>
  [...]
 <pagenum page="normal" id="ch3-43">43</pagenum>
  <p>this is the line 1 of page 43</p>
  <p>this is the line 2 of page 43</p>
 <pagenum page="normal" id="ch3-44">44</pagenum>
  <p>this is the line 1 of page 44</p>
  <p>this is the line 2 of page 44</p>
 [...]


 It's seems that ODT doesn't contain any "hard coded" page or
 page-break tag, and footers aren't on each pages,
 so it's hard to know when a new page start


 Do you have any informations or feedbacks about page numbering ?
 (I can make a pre-processing using Java UNO if it's needed)


 PS:
 Currently, I use this template to detect each pages:

 <template match="text:p">

        <xsl:variable name="masterPageStyle"
                                select="/office:document/office:automatic-styles

 /style:[EMAIL PROTECTED]:name=(current()/@text:style-name)]
                                               /@style:master-page-name" />

        <xsl:variable name="breakBefore"
                                select="/office:document/office:automatic-styles

 /style:[EMAIL PROTECTED]:name=(current()/@text:style-name)]

 /style:paragraph-properties/@fo:break-before" />

        <xsl:if test="$masterPageStyle or $breakBefore='page'">
            <p>=====[page]=====</p>
        </xsl:if>
 </template>

 Do you think it is a right way ?


 Cordially

  Vincent Spiewak

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to