xsl-list
[Top] [All Lists]

Re: [xsl] XPATH multiple predicate and negation

2010-11-08 02:35:17
It worked, thanks a lot.

On Mon, Nov 8, 2010 at 6:46 AM, Mukul Gandhi 
<gandhi(_dot_)mukul(_at_)gmail(_dot_)com> 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, Gábor Tóth <roysy(_at_)g0n0z(_dot_)hu> 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[(_at_)type!="meaning" and "text" and "pr-res" ]

could someone give me a suggestion?

Thanks,

Gabor




--
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>