This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

DocBook DSSSL stylesheets 1.62 bug with%label-preface-sections% (fwd)


Because Norm Walsh doesn't seem to have the time to respond, I figured I'd
send this here so it doesn't get lost completely.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/

---------- Forwarded message ----------
Date: Sun, 11 Feb 2001 02:37:10 +0100 (CET)
From: Peter Eisentraut <peter_e@gmx.net>
To: ndw@nwalsh.com
Subject: DocBook DSSSL stylesheets 1.62 bug with %label-preface-sections%

When I (define %label-preface-sections% #f) then I get an undefined
variable 'hasprf'.  This patch fixes it:

*** dbcommon.dsl.orig   Sun Feb 11 02:23:44 2001
--- dbcommon.dsl        Sun Feb 11 02:28:24 2001
***************
*** 755,760 ****
--- 755,761 ----

  (define (section-autolabel nd #!optional (force-label? #f))
    (let* ((isep (gentext-intra-label-sep nd))
+        (hasprf (not (node-list-empty? (ancestor (normalize "preface") nd))))
         (prefix (section-autolabel-prefix nd)))
      (if (and (or force-label? %section-autolabel%)
             (or %label-preface-sections%

Oddly enough hasprf is defined in the function section-autolabel-prefix
just above this one, but isn't used there.  Check maybe.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]