[Home] [By Thread] [By Date] [Recent Entries]
At 09:18 PM 8/27/2007, you wrote:
So if "note[para[2]] " means "at least 2", how do you express "exactly 2"? If you didn't want "note[count(para)=2]", you could say note[para[2]][not(para[3])] These could be expressed a bit more intelligibly in XPath 2: note[exists(para[2])] -- the note has a second para note[exists(para[2])][not(exists(para[3]))] -- the note has a second para, but not a third But I might opt for note[count(para)=2] as it's both concise, and quite obvious. Cheers, Wendell
|

Cart



