xsl-list
[Top] [All Lists]

Re: unable to resolve intersect/union operator

2005-05-19 05:20:21


normalize-space($interim/A/text()) intersect 

normalize-space returns a string, and, as the error says, you can only
use nodes with intersect.

You don't want to use these node operations at all.

to intersect , union, etc

<a>hello</a> and <a>hello</a>  are just as distict as 
<a>hello</a> and <a>goodbye</a>
the node operations work on _node identity_ two different nodes are
distinct even if they have the same value.

To compare values you need the value comparison operators such as = not
node operators.

David
[This whole thread is XSLT2-only of course]


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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