Skip to Content
Former Member
Jul 27, 2010 at 08:56 PM

Standard XSLT 2.0 date functions not working in PI 7.11


What do I need to include to use the standard XSLT 2.0 functions - such as format-date, Current-date() ?

The code below works correctly in XMLSpy... but when I import the XSL as an Imported Archive in PI - it fails with...

Method fatalError called, terminate transformation, because of

javax.xml.transform.TransformerException: Function with name 'current-date' not found in context library. at

<?xml version="1.0" encoding="UTF-8"?>" >

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>




<xsl:attribute name="today">

<xsl:value-of select="format-date(current-date(),'[Y0001][M01][D01]')"/>