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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Functions returning length-spec, Brandon Ibach | Thread | Re: Filtering nodes, Brandon Ibach |
Re: Functions returning length-spec, Brandon Ibach | Date | Re: Filtering nodes, Brandon Ibach |
Month |