954,113 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Variable not working as expected?

So I created a template for a simple link builder function.
Problem is, when I use it, I don't get the link, I get just the text.
Could anyone help me understand what I'm doing wrong?

Thanks!

<xsl:variable name="ReadMore">
  <xsl:call-template name="linkBuilder" >
     <xsl:with-param name="linkID" select="format-number(@ID, '#,##0.#;-#,##0.#')"  />
  </xsl:call-template>
</xsl:variable>
<xsl:value-of select="concat(substring(@Body,0,300),'...', $ReadMore)" disable-output-escaping="yes" />

And the function itself

<xsl:template name="linkBuilder">
		<xsl:param name="linkID" />
		<a href="http://mysite.com/page_view.aspx?ID={$linkID}">[read more]</a>
	</xsl:template>
TeckniX
Newbie Poster
1 post since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: