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]

Bug fix for print stylesheet: <anchor>


I have a bug fix submission to include in the next version of the DocBook
stylesheets.

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

The problem: links using the RTF backend would always go to the top of the
document because an anchor was not being inserted into the document.  I
found the solution to this problem in dbindex.dsl:

(element indexterm
  ;; This is different than (empty-sosofo) alone because the backend
  ;; will hang an anchor off the empty sequence.  This allows the index
  ;; to point to the indexterm (but only if the indexterm has an ID).
  (make sequence (empty-sosofo)))

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

I recommend that the same treatment be given to element anchor in
dblink.dsl:

(element anchor
  ;; This is different than (empty-sosofo) alone because the backend
  ;; will hang an anchor off the empty sequence.  This allows links
  ;; to point to the anchor (but only if the indexterm has an ID).
  (make sequence (empty-sosofo)))

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

Note that the current rule for anchor looks like this:

(element anchor (empty-sosofo))

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

Cheers!

-karl

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