Subject: Re: [xsl] current-dateTime() From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Fri, 18 Apr 2008 18:29:48 +0200 |
Abel Braaksma schrieb:Michael Ludwig wrote:That would probably not work. I tested this the other day, just out of curiosity, calling a script that incremented a number, and found that the result was cached when using LibXSLT, Saxon and Xalan.
you forgot to add the generate-id + a newly created node to add to the URI. However, the processors you mention use XSLT 1.0. To get the same behavior in XSLT 1.0 you need to be a little bit more creative and use the extension function exslt:node-set (or equivalent for your processor).
I felt creative enough calling an external script, so I forgot to be more creative :-) Now, following your example: This works for Saxon (both 6.5.5 and 9.0.0.4) and for Xalan-J 2.7.1, but not for Xalan-C 1.10.0 and LibXSLT 1.1.22. The latter do not seem to generate new nodes, so no new IDs are generated either.
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] current-dateTime(), Michael Ludwig | Thread | Re: [xsl] current-dateTime(), Michael Ludwig |
Re: [xsl] current-dateTime(), Dimitre Novatchev | Date | [xsl] Non-English languages in XSLT, Ramkumar Menon |
Month |