cancel
Showing results for 
Search instead for 
Did you mean: 

XI: XSLTransform XML to HTML

Former Member
0 Kudos

Hi,

I have a XML file that I what to transform with XSL to HTML.

This has to be sendt via email.

I have read the <b><i>"XI: HTML e-mail from the receiver mail adapter"</i></b> guide from <b>Michael Krawczyk</b>, but there is stiil questions.

  • How can I import/create a XSL file in SAP XI ?

  • Where/how is this XSL referenced to/executed ?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>* How can I import/create a XSL file in SAP XI ?

  • Where/how is this XSL referenced to/executed ?

a) you cannot create in XI you can only import it

(import as external archive )

b) or you can use it from the folder as in my blog

>>>* Where/how is this XSL referenced to/executed ?

a) either inside interface mapping

b) inside an adapter module - as in my blog

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi Michal,

I Have now imported my orders.orders05.xsl under imported archives.

I would like to execute this from my communications cahannel, but I'm not quite sure about how to execute this from the adater.

I your example, you are using module key CHAN, is this simply to be replaced with my XSL name ?

Former Member
0 Kudos

Hi,

CHAN is the key , you can use it as it is.or any name,but that name should be used in the below parameters.

Regards

Chilla

Former Member
0 Kudos

Yes offcourse......... my mistake

BUT where is the reference to my xsl file ?

Former Member
0 Kudos

Hi,

In interface mapping select source , and target message interfaces,and in bottom side select XSLT and select the imported zip archieve, and activate.

Regards

Chilla

Former Member
0 Kudos

Check this blog also....

/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

Former Member
0 Kudos

Hi Camilla,

I have no target interfaces, My tagret interfaces is the result of my xsl(stylesheet).Therefore I want to execute the xsl from my mail adapter, as shown in Michal's description. But I'm not sure what to setup in the module pane.

can you help me ?

bhavesh_kantilal
Active Contributor
0 Kudos

Frank,

Think you got the concept of Michal's blog wrong.

1. The XSL will be used in an Interface mapping to generate HTML output. You need to use this in your interface mapping to generate HTML output

2. In the Mail Adapter , you add the MessageTransformBean to make the content of your mail as HTML as shown.

By default, the mail adapter sends the content as Text and so the module makes it as HTML so that the mail client can decipher and read it as HTML.

Regards

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Another option is to set the Content type in your mapping itself.

As shown in this blog by prakash , set the Content type as <b>TEXT/HTML</b>

/people/community.user/blog/2006/09/07/email-reporting

Regards

Bhavesh

Former Member
0 Kudos

Hi Michal,

My problem is that I have no target interfaces.... so I'm not able to use the interfaces mapping like in your description. The target is the result of the XSL transformation.

do you know how to setup the adapter module ?

Or is it possible to use a DUMMY target interfaces in the interfaces mapping!

bhavesh_kantilal
Active Contributor
0 Kudos

As you are using XSL mapping you can use a Dummy Inbound Interface in your XSL mapping and then use this same message interface in the Receievr Agremeent for the Mail Adapter

Regards

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>do you know how to setup the adapter module ?

yes I know - exactly as per my blog

>>>>Or is it possible to use a DUMMY target interfaces in the interfaces mapping!

sure it is if you use xslt you can use a dummy

Regards,

michal

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

And to know more about XSLT.

first create the Message types and export the structure into xml for both source and target.

And goto Altova XMLSpy / Altova XML Mapforce and import the Xml schemas and do the mapping and create the XSLT by click on XSLT icon/button , it will be exported into a file

you can import it into IR by creating the zip and under imorted archieves.

Similarly i fyou have XSLT files then if you want to import into IR then goto externaldefinitions under that create and import the XSD/XML/WSDL files

And how to do it was clearly mensioned in the below link

/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter - XI: HTML e-mails from the receiver mail adapter

Regards

Chilla