Re: (dsssl) "Default" processing rule?

Subject: Re: (dsssl) "Default" processing rule?
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Mon, 02 Apr 2001 22:36:33 -0700
At 14:42 2-04-2001, Wroth, Mark wrote:
How can I (simply) define a set of rules that will ignore everything
*except* an element that can be found at several levels?

Setting (default (empty-sosofo)) results in everything being ignored,
presumably because the parent elements of the one I want are not processing
their children.

Try something like

(default (process-node-list (element-children)))

(element one-I-want

where (element-children) is defined as:

;; (element-children snl) finds all of the elements that are direct
;; children of singleton nodelist "snl".  This is useful for
;; filtering, processing, and counting, when you're not interested in
;; any text, PI, or comment nodes.
(define (element-children #!optional (snl (current-node)))
  (select-by-class (children snl)

Christopher R. Maden, XML Consultant
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA

DSSSList info and archive:

Current Thread