xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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)

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor