473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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>

Jul 20 '05 #1
0 1607

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: inonzuk | last post by:
Hi, this is my code: <?php $i=1; $g1R=10; $g2R=20; $g3R=30; switch ('$g$iR'): --> this syntax does not work!!!
83
by: Alexander Zatvornitskiy | last post by:
Hello All! I'am novice in python, and I find one very bad thing (from my point of view) in language. There is no keyword or syntax to declare variable, like 'var' in Pascal, or special syntax in...
23
by: stewart.midwinter | last post by:
No doubt I've overlooked something obvious, but here goes: Let's say I assign a value to a var, e.g.: myPlace = 'right here' myTime = 'right now' Now let's say I want to print out the two...
5
by: Nagi Peters | last post by:
Hello I try to tranform a XML Document in php/Sablotron with the following XSL Stylesheet. I tried to write "@id='1'" with the variable chapter_id. So it works: <xsl:variable...
134
by: James A. Donald | last post by:
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that...
0
by: David Mediavilla | last post by:
I am trying to check a SOAP signature with WSE 1.0 SP1, but with a certain transform I only get an "Unknown tranform" exception. The SOAP signature is like this: <ds:Signature>...
0
by: Marco Segurini | last post by:
Hi, Actually the build of my solution gives as result an EXE and some DLLs. Now, I am creating a new configuration that tranform the DLLs into LIBs. The following semplified code explains one...
2
by: su | last post by:
HI, I want to tranform following <extends>/public/a1.xml</extends> into <extends xlink:type="simple" xlink:href="/public/a1.xml"></extends> using XSL.
3
by: Mark S. | last post by:
As I understand it, C# doesn't offer dynamic variable names. Below is my attempted workaround. Is what I'm doing possible? FYI, I already read all the "why in the world do you need dynamic...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.