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

Re: exslt random:random-sequence() and Math:random()

Subject: Re: exslt random:random-sequence() and Math:random()
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 18 Mar 2010 13:17:56 +0100
Re:  exslt random:random-sequence() and Math:random()
Mike Odling-Smee wrote:
Calling "impure" functions in XSLT is always problematic; the more
aggressive your optimizer, the more problematic it becomes.

Michael - I have noticed that calling the function current-dateTime() multiple-times within one XSLT invocation seems to always give the same result even if a significant amount of time has elapsed - is this for the same reason? If so there anyway to fool the optimiser? (In this example I was usingSaxon 9.1.0.8).

I don't think it is any optimization causing that, the function
http://www.w3.org/TR/xpath-functions/#func-current-dateTime
is supposed to return "the current dateTime ... from the dynamic context". And the XSLT 2.0 spec clearly says:
"The current date and time represents an implementation-dependent point in time during processing of the transformation; it does not change during the course of the transformation."


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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.