Re: test boolean43 seems wrong

2001-07-12 Thread Tom Amiro
Thanks to all who responded about why boolean43 should return true. You guys really know your XSLT. I'll put in a bug against XSLTC, since it returns false. Tom

Re: test boolean43 seems wrong

2001-07-11 Thread Scott_Boag
Hi Tom. An RTF has an implicit root node, so it is never empty. See http://www.w3.org/TR/xslt#section-Result-Tree-Fragments (which the comment in the test should reference). It states: "A result tree fragment is treated equivalently to a node-set that contains just a single root node. ...When

Re: test boolean43 seems wrong

2001-07-11 Thread David_N_Bertoni
This question was a hot topic for debate a while back, so I'm not surprised that you're perplexed by it. Here's the relevant section from the recommendation: http://www.w3.org/TR/xslt#section-Result-Tree-Fragments "A result tree fragment represents a fragment of the result tree. A res

Re: test boolean43 seems wrong

2001-07-11 Thread Paul_Dick
Tom, I think the point is that the variable created contains just a single root node with no children and since a " node-set is true if and only if it is non-empty" TRUE is returned. See sections 11.2 XSLT second bullet, and Xpath 4.3 (Boolean) second bullet as well. Paul

Re: test boolean43 seems wrong

2001-07-11 Thread Gary L Peskin
Tom -- Don't feel bad. This is very confusing. Even Mike Kay's book had it wrong in the first edition. I corrected this in XalanJ way back when. In XSLT 11.1 (http://www.w3.org/TR/xslt.html#section-Result-Tree-Fragments), it states: "A result tree fragment is treated equivalently to a node-s