SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a dataformwebpart that queries multiple document libraries. I need to open the document properties in a modal window. I have used the below

                <xsl:attribute name="href">
                <xsl:value-of select="@FileDirRef" />
                <xsl:value-of select="@ID" />
                <xsl:value-of select="$CurrentUrl" />
                ', '
                <xsl:value-of select="@FileLeafRef" />
                ', true, true, true)</xsl:attribute>

                <img width="16" height="16" class="ms-MenuUIULImg" src="/_layouts/images/EditItem.gif" alt="" title="" />

The problem is that @FileDirRef returns the path of the item inside its folder so the generated url is: /sitename/document library/folder name


('/DocumentCenter/Bonuses Documents/370; CRM5111/Forms/DispForm.aspx?ID=4') where (370; CRM5111) is the folder name.

In order to be able to open the document properties I must have the above path without the folder name, meaning: /sitename/document library/

eg: ('/DocumentCenter/Bonuses Documents/Forms/DispForm.aspx?ID=4')

Can anyone point into the right direction to implement this?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.