hi…
complete newbie to xsl here. i’m writing an xsl stylesheet to convert one xml to another. within this xsl, i need to generate a date time stamp which will insert the current date and time into the output xml in the format yyyy-mm-dd hh:mm:ss. the output xml tag should look something like this:
I’m using MSXML for transformation. Right now I’m just opening my input xml and checking the output using Marrowsoft Xselerator. If possible, I don’t want to use java to generate date-time stamp. I didn’t really understand the first code snippit . How do you pass by param? I tried inserting this code into my xsl, but i get an error saying “xsl:template may not be used here”. Here’s what I did…
(i took out value=“false” in the<xsl:variable name=“timestamp” value=“false” />
coz that was popping up an error saying “Attribute ‘value’ is invalid on 'xsl:variable”)
If you could please explain what happened up there or any other suggestions, it would be really helpful!