OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Page Number Prefixes trouble


Hi Adam,
Regarding the missing page numbers, the prefix customization seems to only work when 
the stylesheet parameter "double.sided" is set to 1.  That is also the case with the 
restart issue.  Not sure why it was written that way.

The single-number page numbers in the TOC are not for chapters, but for part elements. 
I don't think Jeff's customization handles part elements.

In any event, that customization needs to be reviewed to see if it needs updating.  It 
is based on version 1.60 of the DocBook stylesheets, which is quite old.

BTW, for future reference, the 'docbook-apps' mailing list is the one used for 
discussing stylesheet issues.  The 'docbook' mailing list is for discussing schema 
issues.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "J. Adam Craig" <acraig@pamplinpark.org>
To: <docbook@lists.oasis-open.org>
Sent: Monday, December 20, 2010 5:52 AM
Subject: RE: [docbook] Page Number Prefixes trouble


I accidentally sent the below only to Bob Slayton.  Here were my results for the whole 
list:

Thanks for the link!  I tried using the following command, and received the output 
which I have pasted below this message.  I was able to generate a .pdf, but it had no 
page numbers on the individual pages.  While page numbers did appear in a revised 
format in the TOC, I noticed that the number beside the chapter starts in the TOC were 
still in the original format, and the number after the hash (-) symbol does not 
restart with each chapter as specified on Jeff Beal's Wiki entry on DocBook.org.  (See 
beneath the terminal output...)

Thanks for the assistance!
- Adam

//////////////////////////////////////////////////////////////////////
I issued these commands:
xsltproc --output output.fo --stringparam fop1.extensions 1 
/usr/share/xml/docbook/stylesheet/PdfPgNumPrefix.xsl DocBook/index.xml
fop output.fo printable.pdf
//////////////////////////////////////////////////////////////////////
And received this terminal output:
Dec 20, 2010 8:29:41 AM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'.
Dec 20, 2010 8:29:41 AM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 
'ZapfDingbats,normal,400'.
Dec 20, 2010 8:29:42 AM org.apache.fop.hyphenation.Hyphenator getHyphenationTree
SEVERE: Couldn't find hyphenation pattern en
Dec 20, 2010 8:29:42 AM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back to 
proportional-column-width(1)
Dec 20, 2010 8:29:42 AM org.apache.fop.fo.flow.table.TableColumn bind
WARNING: table-layout="fixed" and column-width unspecified => falling back to 
proportional-column-width(1)
Dec 20, 2010 8:29:42 AM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with 
'ZapfDingbats,normal,400'.
Dec 20, 2010 8:29:42 AM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with 'any,italic,700'.
Dec 20, 2010 8:29:44 AM org.apache.fop.fo.properties.PropertyMaker make
WARNING: span="inherit" on fo:block, but no explicit value found on the parent FO.
Dec 20, 2010 8:29:45 AM org.apache.fop.render.pdf.PDFRenderer finishOpenGoTos
WARNING: 3 link targets could not be fully resolved and were now point to the top of 
the page or are dysfunctional.
//////////////////////////////////////////////////////////////////////
This produced a .pdf without page numbers on the individual pages, and TOC that was 
formatted as follows:

I. Servers 
............................................................................................................................... 
1
      1. Gateway Server 
..................................................................................................... 
1–3
             Hardware Components 
....................................................................................... 
1–3
             Installation Procedure 
.......................................................................................... 
1–3
II. Troubleshooting Procedures 
............................................................................................. 
5
      2. Hardware 
............................................................................................................... 
2–6
             Hard Drives 
......................................................................................................... 
2–6
                     S.M.A.R.T. Drive Testing 
.............................................................................. 2–6
Index 
.......................................................................................................................... 
Index–1
________________________________________
From: Bob Stayton [bobs@sagehill.net]
Sent: Sunday, December 19, 2010 4:34 PM
To: J. Adam Craig
Subject: Re: [docbook] Page Number Prefixes trouble

Hi,
It is documented here:

http://www.sagehill.net/docbookxsl/InstallingAnFO.html#UsingFop

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message -----
From: "J. Adam Craig" <acraig@pamplinpark.org>
To: "Bob Stayton" <bobs@sagehill.net>; <docbook@lists.oasis-open.org>
Sent: Sunday, December 19, 2010 6:07 AM
Subject: RE: [docbook] Page Number Prefixes trouble


Aha!  Thanks, Bob.  I was unaware of the need to specify that parameter.  Thanks for
letting me know.  We should work that into the documentation somewhere.  I will try
generating the PDF with FOP when I get into the office tomorrow morning with the extra
parameter, and will post back my results.

Make it be a great day!
- Adam

________________________________________
From: Bob Stayton [bobs@sagehill.net]
Sent: Saturday, December 18, 2010 7:02 PM
To: J. Adam Craig; docbook@lists.oasis-open.org
Subject: Re: [docbook] Page Number Prefixes trouble

Hi,
I'm not sure the error message is related to the page number prefixing.  You get that
error message when you process with fop but don't set the stylesheet parameter named
"fop1.extensions" to a non-zero value such as "1".  That parameter is used by the
stylesheet to compensate for some of the limitations of FOP, such as the one mentioned
in the error message.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message -----
From: "J. Adam Craig" <acraig@pamplinpark.org>
To: <docbook@lists.oasis-open.org>
Sent: Friday, December 17, 2010 12:13 PM
Subject: [docbook] Page Number Prefixes trouble


Hello!

I stumbled across Jeff Beal's XSL script over on the DocBook.org site for the
customization layer for adding page number prefixes to page numbers within DocBook
chapters.  I'm attaching two files.  One is a .txt file which contains the errors I
received when I ran the "fop myfile.fo myfile.pdf" script to convert the myfile.fo
file generated by the xsltproc command to .pdf.  The second file is the .xsl file I
reference in the xsltproc command, which I created based on your script at
http://wiki.docbook.org/topic/PageNumberPrefixes.

I would very much appreciate any tips you might be able to offer.

I am using version 1.75.2 of Norman Walsh's templates.

Thanks!
- Adam



--------------------------------------------------------------------------------


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org




---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]