| From | Sent On | Attachments |
|---|---|---|
| Andrew Welch | Apr 18, 2008 4:53 am | |
| David Carlisle | Apr 18, 2008 5:06 am | |
| John Snelson | Apr 18, 2008 5:12 am | |
| Mukul Gandhi | Apr 18, 2008 5:48 am | |
| Dimitre Novatchev | Apr 18, 2008 5:54 am | |
| Mukul Gandhi | Apr 18, 2008 5:56 am | |
| Robert Koberg | Apr 18, 2008 6:03 am | |
| Andrew Welch | Apr 18, 2008 6:05 am | |
| David Carlisle | Apr 18, 2008 6:19 am | |
| Colin Paul Adams | Apr 18, 2008 6:35 am | |
| Michael Ludwig | Apr 18, 2008 7:11 am | |
| Liam Quin | Apr 18, 2008 7:24 am | |
| Liam Quin | Apr 18, 2008 7:33 am | |
| Robert Koberg | Apr 18, 2008 7:34 am | |
| Colin Paul Adams | Apr 18, 2008 7:38 am | |
| Abel Braaksma | Apr 18, 2008 7:38 am | |
| Colin Paul Adams | Apr 18, 2008 7:45 am | |
| Michael Ludwig | Apr 18, 2008 7:46 am | |
| Abel Braaksma | Apr 18, 2008 7:47 am | |
| Andrew Welch | Apr 18, 2008 7:48 am | |
| Abel Braaksma | Apr 18, 2008 7:50 am | |
| Abel Braaksma | Apr 18, 2008 7:54 am | |
| Abel Braaksma | Apr 18, 2008 7:56 am | |
| Dimitre Novatchev | Apr 18, 2008 7:57 am | |
| Abel Braaksma | Apr 18, 2008 7:58 am | |
| Colin Paul Adams | Apr 18, 2008 8:03 am | |
| Dimitre Novatchev | Apr 18, 2008 8:04 am | |
| Andrew Welch | Apr 18, 2008 8:07 am | |
| Dimitre Novatchev | Apr 18, 2008 8:16 am | |
| Andrew Welch | Apr 18, 2008 8:19 am | |
| Andrew Welch | Apr 18, 2008 8:38 am | |
| Michael Ludwig | Apr 18, 2008 8:45 am | |
| Dimitre Novatchev | Apr 18, 2008 9:01 am | |
| Abel Braaksma | Apr 18, 2008 9:29 am | |
| Robert Koberg | Apr 18, 2008 2:20 pm | |
| Liam Quin | Apr 18, 2008 6:42 pm | |
| Liam Quin | Apr 18, 2008 6:44 pm | |
| Dimitre Novatchev | Apr 18, 2008 7:30 pm | |
| Michael Kay | Apr 19, 2008 12:27 am | |
| Michael Kay | Apr 19, 2008 12:37 am | |
| Mukul Gandhi | Apr 19, 2008 12:38 am | |
| Michael Kay | Apr 19, 2008 1:51 am | |
| Michael Ludwig | Apr 19, 2008 2:20 am | |
| Andrew Welch | Apr 19, 2008 2:39 am | |
| Mukul Gandhi | Apr 19, 2008 8:24 am | |
| Dimitre Novatchev | Apr 19, 2008 9:11 am |
| Subject: | Re: [xsl] current-dateTime() | |
|---|---|---|
| From: | Robert Koberg (ro...@koberg.com) | |
| Date: | Apr 18, 2008 7:34:10 am | |
| List: | com.mulberrytech.lists.xsl-list | |
You could make a call with the document function (in a non-functional way :) ) to a back end that uses a custom uri resolver that, when receives a certain href, logs/writes the /real/ current-dateTime and returns <nothing/>.
On Fri, 2008-04-18 at 10:24 -0400, Liam Quin wrote:
On Fri, Apr 18, 2008 at 02:05:52PM +0100, Andrew Welch wrote:
It should be straightforward to write an extension function instead...
Actually no. A conformant implementation is allowed to call an extension function only once for any given argument value, and to remember the results, to make it stable. A give implementation might let you write such an extension function as you want, but there's no guarantee.
In addition, suppose you have a stylesheet that does, say
xsl:for-each 1 to 1000 value-of current-time
the implementation doesn't have to start at 1 and evaluate the "loop" a thousand times. Instead, this could be written as, map the items in the sequence (1 ... 1000) to the value of current-time with current-time being called once.
Or, the implementation could start at 1000 and work downwards, and as long as it ended at 1 and put the results in the right order, you coudn't tell.
And yes, there are implementations that do that sort of thing :-) at least for XQuery and quite possibly for XSLT.
So, best to think of XSLT as specifying a mapping, rather than in terms of procedural instructions.
Hppe this helps, although it's perhaps notwhat you want to hear.
Best,
Liam
--~------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-...@lists.mulberrytech.com> --~--





