|
Subject: Legal DSSSL? was: Viewports 'Visible' property From: Paul Prescod <papresco@xxxxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 23 Apr 1997 15:54:24 -0400 |
I thought that there must be a more elegant way to do the check for
elements vs. characters that worked in Jade, so I came up with this, but
I'm not 100% sure if it is legal DSSSL or "just works".
(default
(if (member (gi) *winning-gis*)
(with-mode index (process-node-list (current-node)))
;; process only element daughters
(process-matching-children '())) )
The last line is a short form for
(process-node-list (select-elements (children (current-node)) '() ))
Which (to me) means: "Select all children elements no matter what their
GI and process them." But I don't know if the DSSSL standard was
supposed to support this interpretation. If it does, though, I think
that this would be a very useful idiom to remember.
If it doesn't, I would guess that there is a way to differentiate
charcters from elements using node-property, but I haven't looked into
to it.
Paul Prescod
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Viewports 'Visible' property vs, Henry S. Thompson | Thread | Re: Legal DSSSL? was: Viewports 'Vi, Henry S. Thompson |
| Re: Jade and hyperdocuments, Vivek Agrawala | Date | string-replace in Jade, Vivek Agrawala |
| Month |