on 07-27-2010 9:56 PM
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>
PI 7.11 does not support XSLT 2.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to use SAP XML ttol kit option in Operation mapping and let us know the result.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.