W3C home > Mailing lists > Public > public-cwm-talk@w3.org > January to March 2005

Re: Checking whether an element ist NOT part of a list.

From: Yosi Scharf <syosi@MIT.EDU>
Date: Thu, 03 Mar 2005 12:59:30 -0500
Message-ID: <42275082.5050109@mit.edu>
To: nane.kratzke@web.de
CC: public-cwm-talk@w3.org
> Hello,
> it may sound funny, but I would like to check whether an element is not
> part of list.
> But there exist no list:notIn in CWM.
> Does anybody has an idea how to check whether an element is not part of
> a list?

The attached file does just that. I agree, it would be much simpler to 
simply create the builtin. I'll add that to my toDo list.

The way to use the NotIn function in the file is you add the triple 
(element list) of the list you want to test if its in the element. That 
gets the rules to run. Then you can test if element :NotIn list.

I have to run to class now.


Received on Thursday, 3 March 2005 17:59:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:01:04 UTC