List Info

Thread: Adding page number prefix




Adding page number prefix
user name
2007-08-04 10:39:53
Hi All,

I'm a newbie in DocBook so DocBook gurus, please forgive me questions you might find silly

I'm trying to add a page number prefix (e.g. chapter number) to actual page numbers using the customized stylesheet: http://wiki.docbook.org/topic/PageNumberPrefixes.

This is what I did:

- I copied-and-pasted this stylesheet to the file and saved it as pagenumberprefix.xsl in the same directory where all FO templates are stored.

- In pagenumberprefix.xsl I added <xsl:import href="docbook.xsl"/&gt;.

- In the command line I typed java org.apache.xalan.xslt.Process -in book.xml -xsl pagenumberprefix.xsl -out book.fo

- Then I run FOP and got a PDF file.

- I did no changes to the rest of the stylesheets.

In this PDF file, I can see that prefixes were added to the TOC indeed, though, page numbers remain the same (1,2,3, etc.)

What am I doing wrong? Any help is greatly appreciated!

Thank you!
Jonathan Frederikssen
Technical writer
jfrederikssenyahoo.com


Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
RE: Adding page number prefix
user name
2007-08-11 06:32:03
> -----Original Message-----
> From: Jonathan Frederikssen 
> 
> I'm a newbie in DocBook so DocBook gurus, please
forgive me 
> questions you might find silly 


There are no silly questions! Welcome to the world of
DocBook.

 
> I'm trying to add a page number prefix (e.g. chapter
number) 
> to actual page numbers using the customized stylesheet:

> htt
p://wiki.docbook.org/topic/PageNumberPrefixes. 
> 
> This is what I did:
> 
> - I copied-and-pasted this stylesheet to the file and
saved 
> it as pagenumberprefix.xsl in the same directory where
all FO 
> templates are stored.
> 
> - In pagenumberprefix.xsl I added <xsl:import
href="docbook.xsl"/>.
> 
> - In the command line I typed java 
> org.apache.xalan.xslt.Process -in book.xml -xsl 
> pagenumberprefix.xsl -out book.fo
> 
> - Then I run FOP and got a PDF file.
> 
> - I did no changes to the rest of the stylesheets. 
> 
> In this PDF file, I can see that prefixes were added to
the 
> TOC indeed, though, page numbers remain the same
(1,2,3, etc.)
> 
> What am I doing wrong? Any help is greatly
appreciated!


I don't think you are doing anything wrong. But the page
number prefix
customization was made for a rather old version of DocBook
XSL. I guess that
modifications in later versions clash with this
customization. It's not much
of an answer, but I haven't looked very deeply into this.
 
/MJ



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )