XSLT 2.0 support: current-date() function

Topics: User Forum
Mar 23, 2011 at 4:27 PM

I am using Current-Xml and applying XSLT. 

But I receive an error when using XSLT 2.0 current-date() function.

Does that mean that it does not support XSLT 2.0?

Since I am new on this, maybe I am missing something.

Thanks in advance for your help.

Mar 27, 2011 at 5:14 AM

From what I can tell .NET doesn't support XSLT 2.0:


Mar 27, 2011 at 5:50 AM

That’s correct, it doesn’t. I don’t know why, it seems really useful.

Mar 27, 2011 at 2:43 PM

The announcement that Microsoft wouldn't be puruing xpath 2 or xslt 2 seemed to coincide with the development timeframe of LINQ. My bet is that  as-yet-to-be-invented XLINQ was seen to be the answer to that one, and perhaps there were plans for an XsltDataContext provider for LINQ. Personally I thought Xquery was going to be the dominant technology there as it is semantically similiar to LINQ's for/let/where/return (FLWR.) Anyway, it's pretty easy to extend Microsoft's xslt processor with javascript or managed code to provide the missing functions. See http://exslt.org/date/index.html