Ansicht
Dokumentation

ABENCALL_TRAFO_ESCAPING_ABEXA - CALL TRAFO ESCAPING ABEXA

ABENCALL_TRAFO_ESCAPING_ABEXA - CALL TRAFO ESCAPING ABEXA

BAL_S_LOG - Application Log: Log header data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Transformation of XML Syntax Characters

This example demonstrates the serialization of characters from the XML syntax using various transformations.

Source Code

Execute

Description

Four XSLT programs with different output methods are called and an ST program for serializing a text string containing the syntax characters <>&". The results are as follows:

  • No replacements are made in the results of the XSL transformation DEMO_ESCAPING_TEXT with the output method "text".
  • In the results of the XSL transformation DEMO_ESCAPING_XML with the output method "xml", the syntax characters , > and & are replaced by <, >, and &.
  • In the results of the XSL transformation DEMO_ESCAPING_HTML with the output method "xml", the syntax characters , > and & are replaced by <, >, and &.
  • In the results of the XSL transformation DEMO_ESCAPING_JS with the output method "html", the syntax characters are not replaced because they are part of JavaScript.

The result of the Simple Transformation DEMO_ESCAPING_ST matches the XSL transformation with the output method "xml". Also, the text string is output here as an attribute in which the syntax character " is replaced by ".






TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.

Length: 2781 Date: 20240329 Time: 002803     sap01-206 ( 34 ms )