[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: set union? xslt 2.0

Subject: Re: set union? xslt 2.0
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 08 Apr 2010 11:55:51 +0200
Re:  set union? xslt 2.0
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.

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

No, the first argument string is returned.


	Martin Honnen

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.