[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: generate-id() problem

Subject: Re: generate-id() problem
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 24 Nov 2006 09:13:10 +0000
Re:  generate-id() problem
>>>>> "Nima" == Nima Kaviani <nkaviani@xxxxxx> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.