Hello,
I'm trying to use jade to transform docbook to pdf and html and having problems setting chapter-autolabel. When I set it to #t or 1, all of the chapters get labeled as "Chapter 1", including the table of contents. I can see that all of the other (define) statements in the dsl stylesheet
are being honored.
Can anyone shed some light on why this might be happening? I've included jade commands, my .dsl file, and my docbook file below for
reference.
Regards,
Travis
-------------------
Here's how I'm running jade:
openjade -V "paper-type=A4" -t tex -d mydocbook.dsl /usr/share/sgml/xml.dcl $SGML_SRC
and like this for html
jade -t sgml -d mydocbook.html.dsl /usr/share/sgml/xml.dcl $SGML_SRC
And here is my dsl
stylesheet:
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY docbook.dsl
PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN"
CDATA DSSSL>
]>
<style-sheet>
<style-specification use="docbook">
<style-specification-body>
;; your (re)definitions go here
(define %chapter-autolabel% #t) (define %appendix-autolabel% #t)
(define %section-autolabel% #t)
(define %body-start-indent%
;; Default indent of body text
1pi)
(define %para-indent%
;; First line start-indent for paragraphs (other than the first)
1pi)
(define %para-indent-firstpara%
;; First line start-indent for the first
paragraph
1pi)
</style-specification-body>
</style-specification>
<external-specification id="docbook" document="docbook.dsl">
</style-sheet>
And here's my docbook file:
<!DOCTYPE book [
PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"<!ENTITY chap1 SYSTEM "chap1.book">
<!ENTITY chap2 SYSTEM "chap2.book">
<!ENTITY chap3 SYSTEM "chap3.book">
<!ENTITY appMoreHelp SYSTEM
"app-more-help.book">
<!ENTITY appCommonDefs SYSTEM "app-common-defs.book">
]>
<book lang="en" >
<bookinfo>
<title>SportsFeed documentation</title>
<author>
<firstname>Travis</firstname>
<surname>Staloch</surname>
<affiliation><address><email>
travis.staloch@...</email></address></affiliation>
</author>
<copyright>
<year>2008</year>
<holder>Travis Staloch</holder>
</copyright>
<pubdate>January 2008</pubdate>
<revhistory>
<revision>
<revnumber>0.0.1</revnumber>
<date>2008-01-06</date>
</revision>
</revhistory>
<abstract>
<title>Abstract</title>
<para>This document aims to document the installation, configuration and usage of SportsFeed Xml Processor, a cross platform service application built on the Mono
Runtime.</para>
</abstract>
</bookinfo>
<article>
<title>SportsFeed documentation</title>
&chap1;
&chap2;
&chap3;
&appMoreHelp;
&appCommonDefs;
</article>
</book>