[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 16:41:55 +0700
libxslt generate id custom
Hello.

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). So I thought I'd
> make myself a key table, which lets me identify a target <div> quickly
> when the key value is passed in:

> maybe the best answer is to insist on ID attributes for my <div> 
elements...

You may add "id" attributes to your div's (e.g., via generate-id)
during the first transformation and then use them in subsequent
transformations.

Another approach concerns implementing a custom extension function
wich does the work (this can be less costly than a purely XSLT solution).

Probably, there are other, more effective, solutions, I do not know right 
now.

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