Regarding your XSLT there is no difference in your case between constructing an attribute using the xsl:atribute element and writing it to an element literal as you have done with the 'a' element. The first method gives you more control over namespaces and dynamic control of the attribute name but you do not need that.
As to your JavaScript I'm not sure what you want but what you have looks a little odd. When you click on the 'a' element you will receive an alert and the selectRow will be fired passing the 'TR' object as its only argument. Unless you return false from this method then the href in the 'a' element will also be navigated to.
--
Joe (Co-author Beginning XML, 3rd edition)
|