[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XPATH multiple predicate and negation

Subject: Re: XPATH multiple predicate and negation
From: Gábor Tóth <roysy@xxxxxxxx>
Date: Mon, 8 Nov 2010 08:35:02 +0000
Re:  XPATH multiple predicate and negation
It worked, thanks a lot.

On Mon, Nov 8, 2010 at 6:46 AM, Mukul Gandhi <gandhi.mukul@xxxxxxxxx> wrote:
> Using XPath 2.0 I would try to do this as follows:
>
> //note[not(@type = ('meaning', 'text', 'pr-res'))]
>
> With XPath 1.0 this would probably be ok:
>
> //note[not(@type = 'meaning' or @type = 'text' or @type = 'pr-res')]
>
> (these expressions are not tested)
>
> On Mon, Nov 8, 2010 at 12:05 PM, Gabor Tsth <roysy@xxxxxxxx> wrote:
>> Dear All,
>>
>> I wish to find with XPATH all those note elements, the type attribute
>> of which is not meaning, pr-res and text but something else.
>>
>> I tried this but it did not work:
>>
>> //note[@type!="meaning" and "text" and "pr-res" ]
>>
>> could someone give me a suggestion?
>>
>> Thanks,
>>
>> Gabor
>
>
>
>
> --
> Regards,
> Mukul Gandhi

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.