|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Re: Multiple elements condition
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







