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

generate-id()

Subject: generate-id()
From: "David B. Bitton" <david@xxxxxxxxxxxxxx>
Date: Tue, 13 Nov 2001 16:32:10 -0500
ascii unique id generate
--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I have an issue w. generating a unique id from a called template in an incl=
uded XSL file.  I use the template to create
buttons for the bottom of a form.  Their content is not based on the XML, b=
ut values such as Save, Delete, etc.  The DHTML
code that's I'm using requires each button the have a unique name.  I tried=
=20

<xsl:variable name=3D"id" select=3D"generate-id(*)"/>

but that gave me the same id for every call to the template.  I tried Jeni'=
s generate-id() code from dpawson's FAQ, but
that assumes that I'm within the context of XML at the time, and I'm not.  =
I'm trying to avoid having to pass a unique ID
into the template, and have the template do it for itself.  Where should I =
go from here?

--=20

David B. Bitton
david@xxxxxxxxxxxxxx

Diversa ab illis virtute valemus.

--Qxx1br4bt0+wmkIi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE78ZFaMNOMzNRRk50RAsCmAJ90IQqPBQL/bOnmTc7DCeJ9N661PQCfS0n9
GMQANQjILpB7TSu3k2x8MXc=
=++PB
-----END PGP SIGNATURE-----

--Qxx1br4bt0+wmkIi--

 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.