[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [saxon] casting result tree fragment to boolean

Subject: Re: [saxon] casting result tree fragment to boolean
From: Mike Brown <mike@xxxxxxxx>
Date: Sat, 19 Aug 2000 20:07:34 -0600 (MDT)
referencing a result tree fragment
David Allouche wrote:
> Here is what is said in "XSLT Programmer's Reference" about converting a
> result tree fragment to a boolean (p. 427)
> 
> - - - XSLT Programmer's Reference - - -
> The result tree fragment is first converted to a string, and the string is
> then converted to a Boolean.  The resulting boolean is true if the result
> tree fragment contains any non-empty text nodes, and is false otherwise.
> - - - - - - - - - - - - - - - - - - - - 

That is the one and only mistake in Mike Kay's book. Any result tree
fragment will be true because it is treated like a node-set and will
always have at least one (root) node.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.