Re: Viewports 'Visible' property vs DSSSL

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">

(root (make simple-page-sequence
	    (make scroll

(define *winning-gis* '("TITLE" "FOOTNOTE"))

  (if (member (gi) *winning-gis*)
      (with-mode index (process-node-list (current-node)))
    ;; process only element daughters
      (lambda (snl)
	(let ((name (gi snl)))
	  (if name
	      ;; an element
	    ;; a character
      (children (current-node))))))

(mode index (default (make paragraph)))

Current Thread