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

Re: Scope of uniqueness of generate-id()

Subject: Re: Scope of uniqueness of generate-id()
From: "Colin Adams" <colinpauladams@xxxxxxxxxxxxxx>
Date: Thu, 20 Nov 2008 11:51:02 +0000
Re:  Scope of uniqueness of generate-id()
Yes.
Different nodes are different nodes. Which document they are in doesn't matter.

After all, the generated ids may be used as values for an xml:id
attribute in the output, which might contain the contents of the two
temporary trees.

2008/11/20 Vladimir Nesterovsky <vladimir@xxxxxxxxxxxxxxxxxxxx>:
> Hello!
>
> Can someone please clarify the scope of uniqueness of generate-id()
> function?
>
> Spec says:
> The generate-id function returns a string that uniquely identifies a given
> node...
> An implementation ... always generates the same identifier for the same
> node and
> that different identifiers are always generated from different nodes.
> An implementation is under no obligation to generate the same identifiers
> each time a document is transformed.
>
> Does this mean that values of generate-id() call for two different nodes
> from two different temporary trees created in the course of transformation
> MUST be different?
>
> Thanks.
> --
> http://www.nesterovsky-bros.com/
> Vladimir Nesterovsky

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.