dwarfthrower
Programmer
Howdy,
I'm writing a portal application for a client and need to be able to present the contents of the user's mailbox as a nicely formatted HTML page.
I've got the XML source coming out of the Domino server and my XSL is processing it nicely - sort by date and all that.
My problem is that the date is being rendered in the Domino format
which, if seen by Joe User, usually elicits a shrill scream. Writing the Javascript to convert this to a more user-friendly dd/mm/yyyy is easy. My problem is including the Javascript in the xsl file so that instead of calling:
which returns the ugly system date representation,
I can call something along the lines of:
and return a nicely formatted date.
Any assistance on including scripts in XSL would be heartily appreciated.
Cheers
I'm writing a portal application for a client and need to be able to present the contents of the user's mailbox as a nicely formatted HTML page.
I've got the XML source coming out of the Domino server and my XSL is processing it nicely - sort by date and all that.
My problem is that the date is being rendered in the Domino format
Code:
20030519T020629,46+10
Code:
<xsl:value-of select="entrydata[@columnnumber='2']/datetime" />
I can call something along the lines of:
Code:
formatdate(<xsl:value-of select="entrydata[@columnnumber='2']/datetime" />)
Any assistance on including scripts in XSL would be heartily appreciated.
Cheers