[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: "Sebastian Rahtz" <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 29 Jul 2001 21:33:32 +0100
generating repeatable codes
Michael Beddow writes:
 > 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?
sadly, yes
 
 > problems lurking that I'm not prepared for. So far, Xalan has always
 > behaved deterministically, returning the same value for identical nodes
 > in identical contexts over different runs. I was careless enough to
 > assume things were meant to be that way, and I've quite a bit of
 > important code that will break if that assumption ever proves false.

I'd drop that code if I were you. I think you should do your best to
ensure that the documents work seamlessly with as many processors as
possible, so any use of generate-id() outside one transformation seems
unwise. 

I have got myself into this mess by trying to make my TEI stylesheets
work in the same way with a static transform (which can do chunking
and produce multiple files) as with a server-side on-the-fly
transform. I am nearly there, but it has forced me to look at lots of
my code....

A round of applause, please, for the very excellent libxslt and AxKit
packages which make server-side transformation a reality[1] for me.

Sebastian

[1] in a way that Cocoon never was, since I never managed to make
Xalan work with my any of my documents or stylesheets....


 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.