xsl-list
[Top] [All Lists]

RE: [xsl] generate-id() problem

2006-11-24 02:15:34

generate-id() with no parameters is equivalent to generate-id(.) - it
returns the identifier of the context node. If you call it twice with the
same argument, it is guaranteed to return the same answer.

You seem to be in need of a completely different function, so you need to
explain what you are trying to do.

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: nima(_dot_)kaviani(_at_)gmail(_dot_)com 
[mailto:nima(_dot_)kaviani(_at_)gmail(_dot_)com] 
On Behalf Of Nima Kaviani
Sent: 24 November 2006 08:38
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] generate-id() problem

Hi all,

I have a problem with using generate-id()

apparantly, as I see it in my code, generate-id is dependent 
to the context and the current location in the xml document. 
that is, when I use generate-id() twice and in the same 
context it returns the same value though I need two different values!

however, when I use generate-id(../..) or generate-id(/) it 
returns some other values to me!

is there anything wrong with my settings and assumptions? do 
I have any way around it?

thanks,
-Nima

--~------------------------------------------------------------------
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-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
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-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>