[daisy] numbered items above ten in pdf book

Scott Warren scottwarren at ocom.com.au
Thu Jul 12 18:13:26 CDT 2007


I just had this issue myself the solution (in-case you have not figured it
out yet) is

Change the document-to-xslfo.xsl in your skin and look for the template as
below and make the change below 

  <xsl:template match="ol/li">
      <fo:list-item xsl:use-attribute-sets="list.item">
          <fo:list-item-label>
              <fo:block>
                  <xsl:number format="1."/>
              </fo:block>
          </fo:list-item-label>
<!--          <fo:list-item-body start-indent="body-start()"> -->
          <fo:list-item-body start-indent="body-start() +
0.5em"><!--Changed-->
              <fo:block>
                  <xsl:apply-templates/>
              </fo:block>
          </fo:list-item-body>
      </fo:list-item>
  </xsl:template>

Hope this helps.


Regards
 
 
Scott Warren
Ocom Software


> -----Original Message-----
> From: daisy-bounces at lists.cocoondev.org [mailto:daisy-
> bounces at lists.cocoondev.org] On Behalf Of Tom Brusselle
> Sent: Thursday, 21 June 2007 12:26 AM
> To: Daisy at outerthought.net :open source CMS - general mailinglist
> Subject: [daisy] numbered items above ten in pdf book
> 
> Hi,
> 
> I have a (small) issue with the way a list of numbered items is
> displayed in a published book.  If the list is longer than 9 items, the
> two digits of the numbers starting from 10 appear on separate lines.  So
> the list looks like this in the pdf published book:
> 
> 1. item 1
> 2. item 2
> 3. item 3
> 4. item 4
> 5. item 5
> 6. item 6
> 7. item 7
> 8. item 8
> 9. item 9
> 1 item 10
> 0.
> 1 item 11
> 1.
> 1 item 12
> 2.
> 
> 
> This is reproducible on the demosite.  I have published a book here:
> http://demo.daisycms.org/books/testbook--20070620-
> 160700/publications/pdf/output/book.pdf
> Of course, if the site is reset, the book will probably be lost, but as
> i said, it is easily reproducible.
> 
> Is there a way to adjust this layout by setting some parameter or
> modifying a file?
> 
> thanks in advance,
> 
> Tom Brusselle
> 
>  **** DISCLAIMER ****
>  http://www.schaubroeck.be/maildisclaimer.htm
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
> http://outerthought.org/site/services/daisy/daisysupport.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy



More information about the daisy mailing list