Subject: Re: [xsl] XPATH multiple predicate and negation From: Gábor Tóth <roysy@xxxxxxxx> Date: Mon, 8 Nov 2010 08:35:02 +0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPATH multiple predicate , Mukul Gandhi | Thread | [xsl] self::-equivalent for attribu, Christian Roth |
Re: [xsl] XPATH multiple predicate , Mukul Gandhi | Date | [xsl] self::-equivalent for attribu, Christian Roth |
Month |