开发者

cannot use the current-datetime function in xslt

I am not able to use the current-dateTime function in xslt. this is what my stylesheet declaration looks like.

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
开发者_StackOverflow中文版

Every time I compile I get an error that current-dateTime is not a XSLT function

And this is how I am calling the function.

<xsl:variable name="currentTime" select="current-dateTime()" />


As mentioned above, .net framework does not support XSLT 2.0. One solution for executing custom functions is to use Xslt Extension Objects

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜