cancel
Showing results for 
Search instead for 
Did you mean: 

Standard XSLT 2.0 date functions not working in PI 7.11

Former Member
0 Kudos

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: com.sap.engine.lib.xsl.xpath.XPathException: Function with name 'current-date' not found in context library. at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:250)

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

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

<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]')"/>

</xsl:attribute>

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

PI 7.11 does not support XSLT 2.0

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

Try to use SAP XML ttol kit option in Operation mapping and let us know the result.

Regards,

Raj

Former Member
0 Kudos

SAP XML Toolkit did not help - same result...