building a hyperlink with xslt

wxdqz

New Member
I am attempting to build a dynmic hyperlink. Within my xslt, I pass a string to a java pgm and it returns the ID. I would like to use this returned value in a hyperlink. My xslt looks something like this:

<xsl:variable name="moFilePath" select="GENERIC-CONTENT/FILE-ATTACH" />
<xsl:variable name="thisID" select="java:getFileMO($helper,$moFilePath)" />

<a href=http://www.webdeveloper.com/forum/archive/index.php/"/AppConsole/secure/cmaViewer.do?spfAId=$thisID">
<xsl:value-of select="$moFilePath" />
</a>

When I do a view source of the page, I get the following:
<a href="/AppConsole/secure/cmaViewer.do?spfAId=$thisID"></a>

The $thisID and $moFilePath don't get translated.

The java pgm does return the correct ID. I have displayed this on the page and now moving on to the part to build the URL.
 
Back
Top