using formatdate in xsl stylesheet

webmasterbeta

New Member
Hi,the following snippet of code is taken from an xsl stylesheet. The problemI am having is when I try to apply the template defined to the varvalue field.The code goes to the template and I can write out the value of varavlue butas soon as I try to apply formatDate, an error occurs. This code is usedin other stylesheets, and in fact in this same stylesheet with no problem.If anyone can help, it would be greatly approciated.<xsl:when match=".[vartype ='7']"><xsl:element name="INPUT"><xsl:attribute name="value"><xsl:apply-templates select="varvalue"/></xsl:attribute><xsl:attribute name="id"><xsl:value-of select="varid"/></xsl:attribute><xsl:attribute name="name"><xsl:value-of select="varid"/></xsl:attribute></xsl:element></xsl:when><xsl:template match="varvalue"><xsl:eval>formatDate(2000-04-19T04:30:57, "yyyy-MM-dd ")</xsl:eval></xsl:template>thanks,Grainne
 
Back
Top