I was working on a a DWP using Sharepoint Designer and i wanted to get the value of a node using Jquery So i added a <div id="myid"></div> and then on the client did some $(div#miyd) But what i noticed is that anytime i save my page in Sharepoint Designer and open it up again my div id changes to <div id="myid{generate-id()}">... So i came across some solution from Marcs Blog here which suggested you add a variable like so <xsl:variable name="myid/> and then use it...
Came across this excellent demos and HOLS here for SQL Server 2008 R2 Enjoy