Problem invoking XSLT from within EMML.

j13elliott
j13elliott's picture
User offline. Last seen 1 year 11 weeks ago. Offline
Joined: 03/13/2009
Points: 80

I was given an EMML example in which a simple .xsl is used to strip namespace prefixes from a SOAP response body.  I've verified that the .xsl is valid using Oxygen with a sample .xml.

I placed the .xsl in ... webapps/presto/WEB-INF/classes and tried invoking the transform with this simple .emml below.

However, a 'Error execution Mashup Script : Failed to compile stylesheet. 1 error detected.' is returned.   I wasn't able to find any logging of errors related to this mashup in any of the *.log files.  Where would be a good place to start looking for the issue?

<mashup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.jackbe.com/2008-03-01/EMMLSchema../src/schemas/EMMLSpec.xsd"
    xmlns="http://www.jackbe.com/2008-03-01/EMMLSchema" xmlns:macro="http://www.jackbe.com/2008-03-01/EMMLMacro"
    name="TestXSLT">
    <operation name="invoke">
        <output name="result" type="document" />

        <invoke service="getStuff" operation="invoke" inputvariables=""
            outputvariable="result" />

        <xslt script="nsStrip.xsl" inputvariable="result" outputvariable="result" />

    </operation>
</mashup>
 

Thanks!

0
Your rating: None
satya.prakash
User offline. Last seen 1 year 19 weeks ago. Offline
Joined: 10/27/2008
Points: 0

Hi John,

To help you better, we would need the xsl script and some sample data.

Thanks,

Satya

dev/jackbe.

j13elliott
j13elliott's picture
User offline. Last seen 1 year 11 weeks ago. Offline
Joined: 03/13/2009
Points: 80

Thanks!  I've attached an .xsl and a sample .xml

satya.prakash
User offline. Last seen 1 year 19 weeks ago. Offline
Joined: 10/27/2008
Points: 0

Hi John,

The sample xsl with the sample dataset works for me correctly on Presto 2.7.0. What version of Presto are you using?

Also please run the XSL sample in EMML samples in localhost:8080/presto/dev to see if everything is fine with the environment. [Spurious Xalan jars or JAXP transformer system properties can cause this too]

Thanks,

Satya.

 

j13elliott
j13elliott's picture
User offline. Last seen 1 year 11 weeks ago. Offline
Joined: 03/13/2009
Points: 80

The example sale.xsl mashup worked fine for me in 2.7.0.  I re-created the .xsl  and the issue went way.

Thanks for looking into this.