Re: [xml] XPath null nodes and false()



On Mon, Apr 01, 2002 at 03:02:34AM -0500, Daniel Veillard wrote:
However - the following illustrates it doesn't:
<xsl:when test="preceding-sibling::kid = false()">
<xsl:when test="count(preceding-sibling::kid) = 0">

  There was a bug in the equality function:

  BTW in case you can't fix the software, nodeset = boolean was broken,
but boolean = nodeset was correct (proving that the implementation wasn't
done very effectively), so you should be able to swap 
  "preceding-sibling::kid = false()" by 
  "false() = preceding-sibling::kid"

until the next release,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]