In your transformation add this method:
<script runat="server">
protected string GetDocumentName(string docGuid)
{
string returnValue = "no name";
Guid guid = new Guid(docGuid);
if (guid != null || guid != Guid.NewGuid())
{
int nodeid = CMS.DocumentEngine.TreePathUtils.GetNodeIdByNodeGUID(guid, CMS.CMSHelper.CMSContext.CurrentSite.SiteName);
CMS.DocumentEngine.TreeNode node = CMS.CMSHelper.TreeHelper.SelectSingleNode(nodeid);
if (node != null)
{
returnValue = node.DocumentName;
}
}
return returnValue;
}
</script>
Then in your < a > tag use your method like this:
<a href="<%# GetDocumentUrl("StaffName","NodeAlias") %>"><%# GetDocumentName(EvalText("StaffName")) %></a>
I havn't tested any of this code but it should work.