| | |
Variable not working as expected?
Please support our XML, XSLT and XPATH advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2009
Posts: 1
Reputation:
Solved Threads: 0
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!
And the function itself
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!
XML, XSLT and XPATH Syntax (Toggle Plain Text)
<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" />
XML, XSLT and XPATH Syntax (Toggle Plain Text)
<xsl:template name="linkBuilder"> <xsl:param name="linkID" /> <a href="http://mysite.com/page_view.aspx?ID={$linkID}">[read more]</a> </xsl:template>
![]() |
Similar Threads
- HTML::TreeBuilder Module not working as expected (Perl)
- C++ system (cmd) and variable (C++)
- Regex for re.match not working as expected. (Python)
- multiple classes in IE:not working (JavaScript / DHTML / AJAX)
- Private pointer variable in parent class (C++)
- Opinions? javascript/php/etc and programming standards (JavaScript / DHTML / AJAX)
- function question (C)
- Help with pointers and classes (C++)
- Pipe inside variable isn't working in bash (Shell Scripting)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: Password protect SpreadsheetML
- Next Thread: Checking the date
| Thread Tools | Search this Thread |
ads adsense advertising array basic beginner broken buy c++ calendar calling char class cms danny delphi design designer developer developers double-linkedlist echo engine environment exchange free function global google graph href image joomla link list loan loop mediawiki movies newsletters optimization php pointer python return revenue rss search searchmonkey sem seo set site sorting spam sullivan tables template text unit url variable web webdesigner webdeveloper website websitedesigner websitedeveloper win7 xml xslt y!os yahoo ydn






