Subject: [xsl] generate-id() From: "David B. Bitton" <david@xxxxxxxxxxxxxx> Date: Tue, 13 Nov 2001 16:32:10 -0500 |
I have an issue w. generating a unique id from a called template in an included XSL file. I use the template to create buttons for the bottom of a form. Their content is not based on the XML, but values such as Save, Delete, etc. The DHTML code that's I'm using requires each button the have a unique name. I tried <xsl:variable name="id" select="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? -- David B. Bitton david@xxxxxxxxxxxxxx Diversa ab illis virtute valemus.
Attachment:
pgp00005.pgp
Description: PGP signature
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Resin 2.0.3 and XSL, Raj Reddy | Thread | Re: [xsl] generate-id(), Jeni Tennison |
Re: [xsl] Trouble Populating <form>, Jibran Bisharat | Date | RE: [xsl] sorting xml source, Michael Kay |
Month |