473,378 Members | 1,489 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,378 software developers and data experts.

Setting a variable for use from a return of call-template

Hello, I would like to know how to set a variable for use from a return this call-template,It returns a number that I need to use.How do I set a variable to this value?

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3.  <xsl:call-template name="date:difference">
  4.  
  5.    <xsl:with-param name="start" select="string($prevMeterReadDate)" />
  6.    <xsl:with-param name="end" select="string($currentMeterReadDate)" />
  7. </xsl:call-template>
  8.  
  9.  
  10.  
Thank you
Apr 21 '07 #1
3 7319
Dököll
2,364 Expert 2GB
Hello, I would like to know how to set a variable for use from a return this call-template,It returns a number that I need to use.How do I set a variable to this value?

[HTML]

<xsl:call-template name="date:difference">

<xsl:with-param name="start" select="string($prevMeterReadDate)" />
<xsl:with-param name="end" select="string($currentMeterReadDate)" />
</xsl:call-template>


[/HTML]

Thank you
Get a load of this link: http://www.w3schools.com/xsl/el_call-template.asp

See what pops up, please let us know.
Jul 4 '07 #2
wlucy
1
Get a load of this link: http://www.w3schools.com/xsl/el_call-template.asp

See what pops up, please let us know.
use <xsl:variable name="varname">
before <xsl:call-template
Oct 17 '07 #3
jkmyoung
2,057 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. <xsl:variable name="result">
  2.   <xsl:call-template name="date:difference">
  3.     <xsl:with-param name="start" select="string($prevMeterReadDate)" />
  4.     <xsl:with-param name="end" select="string($currentMeterReadDate)" />
  5.   </xsl:call-template>
  6. </xsl:variable>
Oct 17 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Lars Plessmann | last post by:
Problem: I try to store data in a objects field and read it out again. Sounds easy, yeah. But its a bit tricky here.... ;-) This is the class Customer.php with some setter and getter functions...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
20
by: weston | last post by:
I've got a piece of code where, for all the world, it looks like this fails in IE 6: hometab = document.getElementById('hometab'); but this succeeds: hometabemt =...
5
by: Amogh | last post by:
Hi, My question is related to setting freed pointers to NULL. After freeing a pointer: 1) Should the freeing routine also be responsible for setting the pointer to null? 2) Or, should the...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
2
by: Fred Exley | last post by:
The first time I enter a page, I want to set a variable once, and have that variable retain its value from that point on. So on the first time in the program, I set runLoc = "yes". When I then...
1
by: sjdevnull | last post by:
Hey, I'm trying to wrap GNU readline with ctypes (the Python readline library doesn't support the callback interface), but I can't figure out how to set values to a variable inside the library. ...
41
by: Jim | last post by:
Hi guys, I have an object which represents an "item" in a CMS "component" where an "item" in the most basic form just a field, and a "component" is effectively a table. "item" objects can be...
10
by: Brad Baker | last post by:
I have an asp.net/csharp application that requires a particular variable to work properly. This variable is usually passed via a query string in the URL when the application is first run but under...
0
by: zman77 | last post by:
EDIT: -- forgot to mention... I am using Visual Studio 2005, on Win XP, on an intel machine Hi. This is my first post, though I've "lurked" for a while because I find these forums very helpful....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.