Does anyone know how in a XSLT to have a function interpreted within an anchor tag?

I was attempting to have a C# script within a XSLT generate the actual URL and embed that into the link markup, such as
<a class="todayLink" href="user:eventLink(link)">


The second option I tried was generating a complete link/markup dynamically, but when I try to "print" the whole markup/link combination (i.e. <a href="">title</a>) the open and end angle brackets are encoded such as &lt; and the browser outputs as text:

Any light that could be shed towards a solution would be appreciated.