Skip to Content

I'm facing issue with the XSLT mapping.

I have built XSLT mapping for XML in STYLUS Studio. I used xslt 2.0 to use for each group.

When I ran the mapping in STYLUS it works fine but in PO it gives below error:

"javax.xml.transform.TransformerException: java.lang.RuntimeException: Unsupported XSL element 'http://www.w3.org/1999/XSL/Transform:for-each-group' at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:746) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351)"

Steps I followed:

Downloaded Saxon-HE-9.7.0-4.jar.

Zipped it with xsl mapping & imported as archive in ESR.

When it failed I tried to also include javax.xml.jar along with above & tried no go.

I set com.sap.aii.ibrun.server.mapping.externalTransfomer=true in XPI : All config Service.

Please help with any pointers.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    Sep 04, 2017 at 05:50 PM

    Hi Harry!

    I tried it myself once and I can say that applying the steps described in mentioned note really works. Just go through carefully and perform all the required actions. Maybe you've just missed anything with your previous attempt.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 03, 2017 at 08:51 PM

    Hi Harry!

    It seems that you use dual stack PI installation.

    Look at this blog:

    https://blogs.sap.com/2016/07/04/how-to-use-external-xslt-processor-for-pi-dual-stack-installations/

    If you use java only PI system, try to import the right version of Saxon HE's jar as separate imported archive.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2017 at 05:15 PM

    Thanks a lot for replying.

    I have tried to create a separate import archive for saxon but I get below error:

    Transformer Configuration Exception occurred when loading XSLT MM_Group.xsl; details: java.lang.ClassNotFoundException: ResourceException during loading class com.sap.aii.mapping.xslt.saxon.JavaExtensions$JavaFunctionLibrary
    See error logs for details

    I followed note 2221350 - Support for Java Extensions in the SaxonHE XSLT Transformer

    But the function Lib is giving error when I copied the attribute & methods code from the notes.

    I followed the notes as is including class, package & importing the archives etc.

    And idea how I can fix it.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 12, 2017 at 04:23 PM

    Hi,

    I tried to use saxon HE jar since its open source & it gives below error. Transformer Configuration Exception occurred when loading XSLT MM_Group.xsl; details: java.lang.ClassNotFoundException: ResourceException during loading class com.sap.aii.mapping.xslt.saxon.JavaExtensions$JavaFunctionLibrary

    To resolve above issue I followed the note - 2221350.

    When I try to use the function library code it gives below error:

    Note: Recompile with -Xlint:unchecked for details.

    How do I recompile the code, could someone please help.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 12, 2017 at 04:23 PM

    Hi,

    I tried to use saxon HE jar since its open source & it gives below error. Transformer Configuration Exception occurred when loading XSLT MM_Group.xsl; details: java.lang.ClassNotFoundException: ResourceException during loading class com.sap.aii.mapping.xslt.saxon.JavaExtensions$JavaFunctionLibrary

    To resolve above issue I followed the note - 2221350.

    When I try to use the function library code it gives below error:

    Note: Recompile with -Xlint:unchecked for details.

    How do I recompile the code, could someone please help.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2017 at 01:18 PM

    I have raised incident to SAP to fix the issue.

    Java code is compiled for SAXON 9.5 version only.

    It works fine when I tried with SAXON 9.5 jar.

    Closing the discussion as resolved.

    Add comment
    10|10000 characters needed characters exceeded