xsl-list
[Top] [All Lists]

Re: [xsl] HST's answers Re: [xsl] Efficient way to check sequence membership -

2011-03-03 04:42:25
On Thu, Mar 3, 2011 at 3:02 PM, Henry S. Thompson 
<ht(_at_)inf(_dot_)ed(_dot_)ac(_dot_)uk> wrote:
As David Carlisle pointed out, '=' already supplies that
functionality.

I think the XPath 2.0 operator '=' (one of the general comparison
operators) atomizes the operands so I think it won't check equality
based on node identity.

It seems the following expression can do checks based on node identity
(I inferred this meaning from Dave's requirement... the "member()"
function),

some $x in $seq satisfies ($x is $item)



-- 
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>
--~--

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