|
|
|
|
|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] How to use generate-id() inside an xsl:function without a node available?
Subject: Re: [xsl] How to use generate-id() inside an xsl:function without a node available?
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 27 Feb 2007 21:51:22 +0100
|
Dimitre Novatchev wrote:
Hve an auxiliary function, which creates a new node every time t is
evaluated, for example using:
Then in your code use:
generate-id(pref:GetNode() )
David Carlisle wrote:
<xsl:variable name="x">x</xsl:variable>
...generate-id($x)...
but generating new nodes just to discard may be a bit expensive
thanks to you both, yes, that is indeed what I was looking for. About
expensiveness: I just did some test and my main process goes from 1.2
seconds to 1.2 seconds and generates about 100 of these throw-away
nodes, so for the not too demanding environments, the performance hit is
negliciable (?word?)
-- Abel
|
| |
© 2002-2008 SyncRO Soft Ltd. All rights reserved.
| Sitemap | Privacy Policy This website was created & generated with
<oXygen/> XML Editor |
|
|
|
|
|
|