Subject: selecting by multiple classes From: Chris Maden <crism@xxxxxxxxxxx> Date: Thu, 29 Jul 1999 14:04:46 -0400 (EDT) |
Further on the problem of comparing element and PI positions: I implemented a modified (tree-before?) based only on the subtree in which I was interested. But it seems that the only way to get an ordered list of nodes is to take the intersection of (subtree) and the unordered node list, and (node-list-intersection) seems to be taking a long time. That makes sense, since (node-list-intersection) compares every node in one list to every node in the other, and (subtree) returns everything. If I were just interested in elements, I could use (select-by-class) to get just the element descendants of the context element; ditto if it were just PIs. Is there a way to do the equivalent of (select-by- class) for more than one class, to help speed this up? I can't just build a node list out of two (select-by-class)s, because that will lose the relative order which is the point of this exercise. Thanks in advance, Chris -- <!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN"> <!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN" "<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487 <USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek> DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Equivalent for (tree-before?), Chris Maden | Thread | Re: selecting by multiple classes, Chris Maden |
Re: [OpenJade] OpenJade 1.2.2 Relea, Adam Di Carlo | Date | Re: selecting by multiple classes, Chris Maden |
Month |