process-node-list, select-element, etc.....

Subject: process-node-list, select-element, etc.....
From: "Pursel, Frank" <frank_pursel@xxxxxxxxx>
Date: Mon, 18 May 1998 16:40:00 -0400
I am using Jade with Linux and trying to extract all the 'notes' from this
The notes are presumably so important that they must be collected at the
beginning of the printout as special notificaiton.   The remainder of the
document should follow and
print out normally.  ( I intentionally left out a 'process-children' line
for simplicity here.)

This dsssl file doesn't seem to do the job.  I suspect I have a gross
conceptual error about
how node-list processing is supposed to work, but I need this plank picked
from my eye.  Can
anyone give me some error correction here?

<!doctype test [
<!element test - - (act+)>
<!element act - - (note | step)+>
<!element step - - (#PCDATA)>
<!element note - - (#PCDATA)>
<step>First step</step>
<note>1 important note</note>
<step>First step again</step>
<note>note 2</note>
<step>act 2 step 2</step>
<note>note 3</note>

 -------Here is the corresponding dsssl file--------
<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">

(root (process-node-list
           (select-elements (descendants (current-node)) 'NOTE)))

(element test (make simple-page-sequence))
(element act (make sequence (make rule) (process-children)))
(element step (make paragraph))
(element note (make paragraph))

 --------End of files-------------------------

My eternal, for me at least, gratitude to the brave responders.

 DSSSList info and archive:

Current Thread
  • process-node-list, select-element, etc.....
    • Pursel, Frank - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id QAA12860Mon, 18 May 1998 16:51:55 -0400 (EDT) <=
      • <Possible follow-ups>
      • Reynolds, Gregg - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id SAA15030Mon, 18 May 1998 18:34:38 -0400 (EDT)
        • Frank Pursel - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id IAA29846Tue, 19 May 1998 08:43:48 -0400 (EDT)
          • Tony Graham - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id LAA02911Tue, 19 May 1998 11:32:04 -0400 (EDT)
          • Paul Prescod - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id NAA04875Tue, 19 May 1998 13:13:31 -0400 (EDT)