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()}"></div>
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 later like this
<div id="myid"></div> but this didn't work.
So the solution was to add the magic expression like this <div id="{myid}"></div>
And that worked like a charm