Subject: Re: [xsl] XPATH multiple predicate and negation From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx> Date: Mon, 8 Nov 2010 12:16:44 +0530 |
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, GC!bor TC3th <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 -> |
---|---|---|
[xsl] XPATH multiple predicate and , Gábor Tóth | Thread | Re: [xsl] XPATH multiple predicate , Gábor Tóth |
[xsl] XPATH multiple predicate and , Gábor Tóth | Date | Re: [xsl] XPATH multiple predicate , Gábor Tóth |
Month |