|
Subject: Re: Viewports 'Visible' property vs DSSSL From: "Henry S. Thompson" <ht@xxxxxxxxxxxxxxx> Date: Wed, 23 Apr 97 17:50:01 BST |
Geir Ove asks about selective processing of subelements. None of the
obvious ways I have thought of to do this are supported by JADE (named
ports, query-construction-rules). But the following hack works (JADE
0.7 only, although you could implement node-list-map yourself in 0.5):
Note you would probably want to use a general entity for the value of
*winning-gis* so you could parameterise this via your catalog.
<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">
<style-specification>
(root (make simple-page-sequence
(make scroll
(process-children))))
(define *winning-gis* '("TITLE" "FOOTNOTE"))
(default
(if (member (gi) *winning-gis*)
(with-mode index (process-node-list (current-node)))
;; process only element daughters
(process-node-list
(node-list-map
(lambda (snl)
(let ((name (gi snl)))
(if name
;; an element
snl
;; a character
(empty-node-list))))
(children (current-node))))))
(mode index (default (make paragraph)))
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Viewports 'Visible' property vs DSS, geirog | Thread | Legal DSSSL? was: Viewports 'Visibl, Paul Prescod |
| Viewports 'Visible' property vs DSS, geirog | Date | Re: Jade and hyperdocuments, Vivek Agrawala |
| Month |