Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   resovling variable a tranform and run time .... Is this impossibleor not worth doing? (http://www.velocityreviews.com/forums/t164946-resovling-variable-a-tranform-and-run-time-is-this-impossibleor-not-worth-doing.html)

Bill Sneddon 06-24-2003 08:56 PM

resovling variable a tranform and run time .... Is this impossibleor not worth doing?
 
The XSL code below generates the correct output for my html file.
I would like to run the transform once and have the the $yearM variable
be updated in the HTML.

I have played around with it and made a mess of it.
I can write a script to produce the date string for $yearM
but can not get it to integrate with with the HTML tag below.

<xsl:variable name="yearM">200306</xsl:variable>
<xsl:variable name="server" select="MM_NAME" />
<xsl:variable name="filen" select="TOOL_NAME" />

<a hef="http://{$server}/mmlogs/{$filen}{$yearM}"><xsl:value-of
select="TOOL_NAME"/></a>

above resolves to this:
<a href="http://usambara/mmlogs/ASHZ01ED200306">ASHZ01ED</a>

This script works in HTML.

<script type="text/vbscript">
if month(date) < 10 then
yearmonth= year(date)& "0" & month(date)
else
yearmonth= year(date) & month(date)
end if

</script>



All times are GMT. The time now is 05:34 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.