I have an XSL document which I am in the process of creating but when I try to use the DateTime functions specified here: http://www.w3schools.com/xpath/xpath_functions.asp
Such as dateTime or year-from-dateTime it says that they’re unrecognised functions?
Here are the namespaces Im using:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xheader="http://schemas.microsoft.com/dynamics/2008/01/documents/Message"
xmlns:xsales="http://schemas.microsoft.com/dynamics/2008/01/documents/SalesInvoice"
exclude-result-prefixes="xheader xsales"
>
I’m currently creating the XSL in Visual Studio, if that helps?
You need to use an XSLT 2.0 processor like Saxon 9 or AltovaXML or XmlPrime if you want to use XSLT and XPath 2.0 features like those functions. Microsoft’s XSLT processors (like the various MSXML versions from MSXML 3 to 6 and XslCompiledTransform and XslTransform in .NET) only support XSLT 1.0.