Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sharepoint designer, XSL, create URL from list column data

Posted on 2013-02-04
3
Medium Priority
?
684 Views
Last Modified: 2013-02-04
HI,

Hopefully a simple one for someone who has done it before, I havent :P

I have a dataview web part on a page and one of the columns shows...

<td class="ms-vb">
      <xsl:value-of select="@Project_x0020_Name"/>
</td>

This simply outputs the textual display of the Project name in the column of the DVWP.

I have a seperate SharePoint site for each project located at:-

http://servername/sites/project%20name

How can i use an xsl translation so that the column of the web browser contains a link to the site, built up from the contents of the @Project_x0020_Name ?

Hope that makes sense.

Neilsr
0
Comment
Question by:Neil Russell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 2000 total points
ID: 38850599
<td class="ms-vb">
      <a href="http://servername/sites/{@Project_x0020_Name}">
           <xsl:value-of select="@Project_x0020_Name"/>
     </a>
</td>

I just dumped the attribute value there, you use the terminology "built up", so you might need more, but you have access to all XPath functionality (even the ddrw functions) inside the {}
0
 
LVL 37

Author Closing Comment

by:Neil Russell
ID: 38850609
Easy when you know how! Thank you.
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 38850612
welcome
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question