I'm having trouble getting the URL and description to show as separate items in SharePoint 2013.
I'm trying to display the description as the text of the Link and the URL as the HREF value in the a tag below.
My hyperlink column Name is "Read_x0020_More_x0020_Link"
This doesn't return anything
<xsl:value-of select="substring-after(@Read_x0020_More_x0020_Link,',')"/>
Here is my Full XSLT:
<xsl:template name="TopStory" match="Row[@Style='TopStory']" mode="itemstyle"> <xsl:variable name="SafeLinkUrl"> <xsl:call-template name="OuterTemplate.GetSafeLink"> <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/> </xsl:call-template> </xsl:variable> <xsl:variable name="SafeImageUrl"> <xsl:call-template name="OuterTemplate.GetSafeStaticUrl"> <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/> </xsl:call-template> </xsl:variable> <xsl:variable name="DisplayTitle"> <xsl:call-template name="OuterTemplate.GetTitle"> <xsl:with-param name="Title" select="@Title"/> <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/> </xsl:call-template> </xsl:variable> <div class="top-story"> <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/> <span class="top-story-title"> <xsl:value-of select="$DisplayTitle"/> </span> <span class="top-story-description"> <xsl:value-of select="@Description" /> </span> <span class="top-story-date"> <xsl:value-of select="ddwrt:FormatDateTime(string(@Date) ,1033 ,'dd-MMM-yyyy')"/> </span> <a href="#" class="btn btn-default"> <xsl:value-of select="substring-after(@Read_x0020_More_x0020_Link,',')"/> </a> </div> </xsl:template>