 |
 |
 |
mk.deepthi@g... wrote:
> i need to display the current year in the xsl file using some
> function.i tried with xsl:variable,xsl:template. but none to my
> rescue. can the javascript be used within the template? how do i
> proceed.. can u help me on this?
>
Define a global parameter
<xsl:param name="current-year"/>
then set it before you run the transformation, with the programming
language of your choice, using the API your XSLT processor exposes.
If you are using MSXML then you can also write extension functions in
JScript or VBScript.
If you are using .NET then you can write extension functions in C# or
VB.NET or JScript.NET.
If you need help with an extension function then tell us which XSLT
processor you use.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
|
 | 

|  |
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.
|  |
| |
 |
 |
 |