xsl-list
[Top] [All Lists]

Re: [xsl] set union? xslt 2.0

2010-04-08 04:56:18
Dave Pawson wrote:

<xsl:template match="skillarea[tokenize(@targets,'|')=tokenize($param,'|')]"/>

This is the 'odd' meaning of = in xslt 2?
If any item on LHS is present in RHS then = returns true.

It is not much different to '=' in XSLT/XPath 1.0 only instead of comparing node-sets it has been generalized to comparing sequences of items. But already with XPath 1.0 if you compare to node-sets e.g.
  $foo = $bar
then the comparison is true if there is at least one node in $foo and in $bar for which the comparison is true.

Issue:
  What happens with tokenize when the separator is missing?
empty set?

No, the first argument string is returned.

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

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