xsl-list
[Top] [All Lists]

Re: [xsl] generate-id() problem

2006-11-24 02:13:28
"Nima" == Nima Kaviani <nkaviani(_at_)sfu(_dot_)ca> writes:

    Nima> Hi all, I have a problem with using generate-id()

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

Then don't use generate-id().

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

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

I think it is your understanding of generate-id().

It uniquely identifies the node passed as it's argument (or the
context node, if it has no argument).
-- 
Colin Adams
Preston Lancashire

--~------------------------------------------------------------------
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>