Adding a lookup list to related documents in a Post

Topics: Enhanced Blog Edition
Aug 7, 2012 at 3:25 PM

I have created my EBE Blog with several posts. Each post has documents that are realted to it so i have created a Document library and uploaded all the documents. I have then created a new lookup column in the Posts list that pulls from the document library.

My problem is that i am unable to create the correct hyperlink so that when the related document appears in the post it links directly to the document.

 

<xsl:value-of select="substring-after(Related_Documents, '#')" /> will give me the Name of the document but i need the filename with the extension to create the proper hyperlink using {$RelativeUrl}

Any idea on how to do this? I have also tried FileRef but no luck,. With just pulling the document Title and not the name (filename) i cannot hink of a way to generate the correct hyperlink.