This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

generate-id()

[Get raw message]

--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@codenoevil.com

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]