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

RE: Saxon and HashMap/Hashtable

Subject: RE: Saxon and HashMap/Hashtable
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 12 Jul 2001 22:29:59 +0100
convert hashtable to hashmap
> If I need to call an Java function that has no return
> value of interest, would this be better?
>
> <xsl:if test="Hashtable:put('key', 'value')" />
>
> instead of storing the result in a variable?

Well, you're running the risk there that an XSLT processor will decide that
it doesn't matter whether the test is true or false, it's not going to
output anything anyway, so why bother evaluating it? And if it does evaluate
it, it will probably fail trying to convert a void to a boolean...

The fact of the matter is, XSLT and side-effects don't mix very well.

Mike Kay
Software AG


 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.