cancel
Showing results for 
Search instead for 
Did you mean: 

XSLTransform error:

Former Member
0 Kudos

Hi All,

I am using an xslt file given by MII - IllumRowsetTableWithPageBreaks , when i give this in the xslt transformation action block , i am getting an error

[ERROR]: XSLTransform error: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: http://localhost/XMII/Stylesheets/IllumRowsetLibrary.xsl

Please guide me.

Regards,

Sireesha

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

That stylesheet outputs html, pretty sure that that action can only output xml. You also need to make sure that you have the parsers setup on your machine as indicated in note 1294013.

Regards,

Jamie

Former Member
0 Kudos

Hi Jamie,

I am using SAP xMII Version 12.0.2 Build(88).

The action block - XSLT Transformation will also give the text output not only the xml.

when i tried with the text output too i am getting the same error.

[ERROR]: XSLTransform error: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: http://localhost/XMII/Stylesheets/IllumRowsetLibrary.xsl

i have referred with the SAP notes 1294013, it was all about 12.1 and higher versions need to install xalan jar files and nothing was mentioned about parser.

Regards,

Sireesha.

Edited by: sireesha.g on Jun 3, 2011 11:15 AM

jamie_cawley
Advisor
Advisor
0 Kudos

According to the help the TextOutput is The XML, in text format, that is generated after the XSL is applied. If you want to generate html with xslt put it in a servlet on a irpt page.

Regards,

Jamie

Former Member
0 Kudos

Hi Jamie,

As you said i have tried with sevlet tag in irpt page

<PARAM NAME="QueryTemplate" VALUE="GetCheckListDetailsQRY">

<PARAM NAME="StyleSheet" VALUE="IllumRowsetTableWithPageBreaks.xsl">

<PARAM NAME="Content-Type" VALUE="text/html">

i got output as

Unable To Create Stylesheet Transformation

Regards,

Sireesha

jamie_cawley
Advisor
Advisor
0 Kudos

Check your paths the stylesheet should be

XMII/Stylesheets/Samples/IllumRowsetTableWithPageBreaks.xsl

Jamie

Former Member
0 Kudos

I have given the full path , just for the reply i have given the xsl name .

sireesha.

Former Member
0 Kudos

Get your own copy of the style sheet off your server:

http://<your_server>:<port>/XMII/Stylesheets/Samples/IllumRowsetTableWithPageBreaks.xsl

Find this Line:

<xsl:include href="http://localhost/XMII/Stylesheets/IllumRowsetLibrary.xsl"/>

Change it to this:

<xsl:include href="https://answers.sap.com/XMII/Stylesheets/IllumRowsetLibrary.xsl"/>

Upload it into your web container somewhere and try it. Worked on 12.1.8

Former Member
0 Kudos

Hi Libich ,

Thanks for the reply,

I have modified the XSL & CSS as

<xsl:include href="http://<local host>:<port>/XMII/Stylesheets/IllumRowsetLibrary.xsl"/>

&

<xsl:param name="CSS">http://uscinc1b5s3:52000/XMII/Stylesheets/Illuminator.css</xsl:param>

then it worked on 12.0 as well as 12.1

when i tried with

<xsl:include href="/XMII/Stylesheets/IllumRowsetLibrary.xsl"/>

it dint work, i dont know what's the reason may be the link is not getting mapped .

Regars,

Sireesha

Edited by: sireesha.g on Jun 7, 2011 2:06 PM

Answers (0)