Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


resovling variable a tranform and run time .... Is this impossible or not worth doing?

From: Bill Sneddon <bsneddon@-----.--->
To: NULL
Date: 6/24/2003 4:56:00 PM
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>



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent