Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

XSL - How to change this script to show Document File Name instead of Title please?

$
0
0

HI there

XSL - How to change this script to show Document File Name instead of Title please?

Thanks a lot.

<xsl:stylesheet
 xmlns:x="http://www.w3.org/2001/XMLSchema"
 xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
 version="1.0"
 exclude-result-prefixes="xsl msxsl ddwrt"
 xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
 xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
 xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:msxsl="urn:schemas-microsoft-com:xslt"
 xmlns:SharePoint="Microsoft.SharePoint.WebControls"
 xmlns:ddwrt2="urn:frontpage:internal"><xsl:import href="/_layouts/xsl/main.xsl"/><xsl:output method="html" indent="no"/><!--Created template to fetch all items from the list --><!-- Start --><xsl:template match="/"  xmlns:x="http://www.w3.org/2001/XMLSchema"><xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" /><!-- <table class="myTable"> --><div class="box"><xsl:for-each select="$Rows"><xsl:call-template name="dvt_1.rowview" /></xsl:for-each></div><!--</table>--></xsl:template><!-- End --><!-- Actual Data to be shown from here --><!-- Start --><xsl:template name="dvt_1.rowview"><p>  <a href="http://uathaysp2013/IT/Documents%20Library/{@Title}.pdf" target="_blank"><xsl:value-of select="@Title" /></a></p></xsl:template><!-- End --></xsl:stylesheet><!-- End -->


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>