Filtering nodes

Subject: Filtering nodes
From: "Maltby, David G" <david.g.maltby@xxxxxxxx>
Date: Thu, 09 Nov 2000 15:13:57 -0500
I would like to write a two node-list-filters, (first-ns nl) and (last-ns
nl), 
such that given the following node-list nl =  (T N N S S S N),
(first-ns nl) would return (N N) which would be the two nodes following T
and before S,
and (last-ns nl) would return (N) which would be the last node in the
node-list.

The content model for the container of these elements would be
<!element C (T?, N*, S+, N*)>

It seems some clever use of (node-list-filter) should be able to sort this
out but I am struggling with the appropriate lambda expression.  Maybe there
is a better way.  I have looked through section 10.2.3 but perhaps I am not
seeing the grove for the all the nodes.  Any thoughts?

Regards, David


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Filtering nodes
    • Maltby, David G - Thu, 9 Nov 2000 15:44:28 -0500 (EST) <=
      • Brandon Ibach - Thu, 9 Nov 2000 17:00:02 -0500 (EST)
      • ptyso - Thu, 9 Nov 2000 21:17:55 -0500 (EST)