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

Re: generating a repeatable unique id

Subject: Re: generating a repeatable unique id
From: "Alexander Gutman" <gutman@xxxxxxxxxxxxxxx>
Date: Sun, 29 Jul 2001 17:16:36 +0700
Re:  generating a repeatable unique id
Michael Beddow wrote:
> On Sunday July 29 2001 12:28 AM (or a little before, since my clock as I
> reply says 11.00 BST)
> Sebastian Rahtz wrote:
> 
> > All well and easy, if the <div> elements have ID attributes, but they
> > don't. And generate-id() is not guarenteed to be the same on the next
> > iteration (well, it isn't with libxslt, at least).
> 
> Ouch! Looks like I've got the wrong end of yet another stick. I know
> that different XSLT processors aren't obliged (or even likely) to return
> the same value for generate-id called on a given node, but is it in fact
> permissible for the same processor to return a different generated id
> for the same node on different runs?

Alas, this is so. As W3C says, "An implementation is under no obligation
to generate the same identifiers each time a document is transformed."

Actually, the available implementations are usually "stateless" as regards
generated identifiers, but, any way, the document can "slightly" change
after some "previous" transformation (for instance, an absent XML
declaration can be added) and, as a result, the identifiers will also
change even in the case of a "stateless" implementation.

-- 
Alexander E. Gutman

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.