开发者

cannot use the current-datetime function in xslt

开发者 https://www.devze.com 2023-02-20 09:18 出处:网络
I am not able to use the current-dateTime function in xslt. this is what my stylesheet declaration looks like.

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

精彩评论

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