xsl-list
[Top] [All Lists]

RE: lookup table (was: mixed content nodes question)

2005-01-07 16:09:57
But I obviously have a fundamental misunderstanding: I know that the
select expression in the original call returns a node-set, which the
XSLT processor apparently converts automatically to a string when
evaluating the test expression (as desired, since I get the intended
language names in my output).  

When you compare a node-set to a string, the result is true if any node in
the node-set matches the string. If the node-set is empty, there's no node
that matches the string, so the result is false (regardless of the value of
the string).

Michael Kay
http://www.saxonica.com/


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