cancel
Showing results for 
Search instead for 
Did you mean: 

mappings

Former Member
0 Kudos

Hi all,

What is xslt mapping? In which cases we are using xslt mapping?

what is use of xslt mapping?

What is difference between java and xslt mapping?

Thanks all.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thankss all

Former Member
0 Kudos

XSLT stands for EXtensible Stylesheet Language Transformations. It is an XML based language for transforming XML documents into any other formats suitable for browser to display, on the basis of set of well-defined rules.

Graphical mapping is a common approach followed by everyone for generating desired target structure. It involves simple drag-n-drop to correlate respective nodes (fields) from source and target structure. It hardly involves coding. (Exception – User defined functions). But sometimes with graphical mapping it is difficult to produce required output. For example … text/html output, namespace change, sorting or grouping of records etc. A person comfortable with Object Oriented ABAP can go for ABAP mapping instead. One can also think of Java mapping as another option but it is a bit complex and required knowledge of Java. In such cases, XSLT mapping can be the best approach to meet the requirements.

A few example cases in which an XSLT mapping can be used:-

 When the required output is other than XML like Text, Html or XHTML (html displayed as XML )

 When default namespace coming from graphical mapping is not required or is to be changed as per requirements.

 When data is to be filtered based on certain fields (considering File as source)

 When data is to be sorted based on certain field (considering File as source)

 When data is to be grouped based on certain field (considering File as source)

4.2 Advantages of using XSLT mapping

 XSLT program itself defines its own target structure.

 XSLT programs can be imported into SAP XI. Message mapping step can be avoided. One can directly go for interface mapping once message interfaces are created and mapping is imported.

 XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.

 File content conversion at receiver side can be avoided in case of text or html output.

 Multiple occurrences of node within tree (source XML) can be handled easily.

 XSLT can be used in combination with graphical mapping.

 Multi-mapping is also possible using xslt.

 XSLT can be used with ABAP and JAVA Extensions.

Former Member
0 Kudos

Interface descriptions are in the form of XML documents. XSL Transformation (XSLT) is a member of the XML family of languages. It describes how an XML structure is transformed into another XML structure.

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm">[url=http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/content.htm]http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/content.htm</a>

Message was edited by:

joy zheng