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


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

Re: links in RTF


Here is my hack at code which is supposed to produce the "text link" I
described in my previous message.  Unfortunately, when I insert it into
dblink.dsl, I get lots of JADE errors.  It looks like I have a misplaced
parenthesis somewhere, but I can't figure out where.

--------------------------------
(element link
  ;; No warnings about missing targets.  Jade will do that for us, and
  ;; this way we can use -wno-idref if we really don't care.
  (let* ((endterm   (attribute-string (normalize "endterm")))
  (linkend   (attribute-string (normalize "linkend")))
  (target    (element-with-id linkend))
  (etarget   (if endterm
   (element-with-id endterm)
   (empty-node-list)))
  (link-cont (if endterm
   (if (node-list-empty? etarget)
       (literal
        (string-append "LINK CONTENT ENDTERM '"
         endterm
         "' MISSING"))
       (with-mode xref-endterm-mode
         (process-node-list etarget)))
   (process-children))))
    (if (node-list-empty? target)
 (make sequence
   link-cont
          ($ss-seq$ -
          (make sequence
          " ['
   (make link
     destination: (node-list-address target)
     (element-page-number-sosofo target))
           "]"))))))
---------------------------
dblink.dsl:123:35:E: invalid number ".sgm"
dblink.dsl:123:42:E: invalid number ".xml"
dblink.dsl:123:49:E: invalid number ".sgml"
dblists.dsl:136:58:E: unexpected token ")"
../common/dbcommon.dsl:1239:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1134:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1225:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1200:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1232:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1183:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1193:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1162:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1148:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1169:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1141:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1155:2:E: mode "xref-title-mode" not defined
../common/dbcommon.dsl:1176:2:E: mode "xref-title-mode" not defined
dbprint.dsl:94:47:E: reference to undefined variable "ILSTEP"
dbmsgset.dsl:23:44:E: reference to undefined variable "ILSTEP"
dblists.dsl:474:49:E: reference to undefined variable "COSTEP"
dblists.dsl:478:30:E: reference to undefined variable "COSTEP"
dblists.dsl:480:17:E: reference to undefined variable "COSTEP"
dblists.dsl:466:22:E: reference to undefined variable "$list$"
dblists.dsl:256:5:E: reference to undefined variable "generic-list-item"
dblists.dsl:175:5:E: reference to undefined variable "generic-list-item"
dblists.dsl:178:24:E: reference to undefined variable "OLSTEP"
dblists.dsl:176:9:E: reference to undefined variable "OLSTEP"
dblists.dsl:138:22:E: reference to undefined variable "$list$"
dbgloss.dsl:31:52:E: reference to undefined variable "ILSTEP"
dbadmon.dsl:140:51:E: reference to undefined variable "ILSTEP"
dbadmon.dsl:120:6:E: mode "xref-title-mode" not defined
dbadmon.dsl:75:6:E: mode "xref-title-mode" not defined
dbadmon.dsl:61:37:E: reference to undefined variable "ILSTEP"
-----------------------------------------
Oy gewalt.  Anyone have any idea how I could clean this up?

-k

----- Original Message -----
From: Karl Critz <kcritz@mathworks.com>
To: <docbook@lists.oasis-open.org>
Sent: Wednesday, May 17, 2000 1:50 PM
Subject: DOCBOOK: links in RTF

> I am trying to get links into my DocBook RTF documents.  Looking
> at dblink.dsl,  it looks like Norm's print stylesheets try to create links
> for <link>
> elements.  I am guessing that Jade's RTF backend doesn't support link
> elements.
>
> As a workaround, I am considering writing a customization layer which
would
> result in something like:
>
> Foo bar [#]
>
> where # is the page number and the bracketed expression is subscripted.
> dblink already has element-page-number-sosofo, so the heavy lifting is
> already done.
>
> Has anyone done something like this?  I would hate to duplicate effort.
>
> -k
>

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