[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] lookup table (was: mixed content nodes question)


Subject: RE: [xsl] lookup table (was: mixed content nodes question)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 7 Jan 2005 23:09:57 -0000

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


Current Thread
Keywords