(dsssl) Enable active ULINK in pdf

Subject: (dsssl) Enable active ULINK in pdf
From: Markus Fix <Markus.Fix@xxxxxxx>
Date: Tue, 12 Jun 2001 23:11:24 +0200
Hi list members,

I've patched the print part of the modular style sheets by Norman Walsh.

The patch is rather crude and enables "active" links in PDF output.
If you apply the patch to the file dblink.dsl in the print subdirectory
of
the modular style sheets the following construct will be rendered as
an active link:

<ulink url="http://www.slashdot.org/";>Slashdot</ulink>

I hope the patch below will save some else the effort to dive into the
code.

Note: The patch does not work if #footnote-ulinks# is true.


-fix




--
Markus Fix (Head of Technology), otop AG, Rheinstrasse 105-107
55116 Mainz +49 6131 5763-300 fon, +49 6131 5763-301 fax

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

6a7,10
>
> (declare-flow-object-class formatting-instruction
>   "UNREGISTERED::James Clark//Flow Object
Class::formatting-instruction")
>
32a37,55
>
>
>
>
>
>
>
> (define (beginhref)
>   (make formatting-instruction data: "\\href{"))
>
> (define (leftcurlybracket)
>   (make formatting-instruction data: "{"))
>
>
> (define (rightcurlybracket)
>   (make formatting-instruction data: "}"))
>
>
>
38d60
<    ($charseq$)
40c62
<        ($ss-seq$ + (literal (footnote-number (current-node))))
---
>   ($ss-seq$ + (literal (footnote-number (current-node))))
45c67
<       (literal " (")
---
>       (beginhref)
47c69,72
<       (literal ")"))
---
>       (rightcurlybracket)
>       (leftcurlybracket)
>       ($charseq$)
>       (rightcurlybracket))




 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist

Current Thread