[Home] [By Thread] [By Date] [Recent Entries]
Jim,
At 04:28 PM 3/12/2008, you wrote: I need to be able to count the preceding cousins and siblings. In 2.0, count(../../*/*[. << current()]) (assuming you want only elements) or count(../../*/* intersect preceding::*) Someone more knowledgeable about inner workings will have to suggest which is likely to be more efficient. I suspect the first one. Thanks to Wendell for a quick correct solution to the adding hierarchy problem. I spent three days on it without success. You're welcome. One is always nervous sending untested code out into the ether -- although mind you, the algorithm was tested (I have faced that problem in the past). Cheers, Wendell
|

Cart



