Skip to Content
Former Member
Dec 07, 2015 at 01:11 PM

XSL to convert XML String to Message Type



For an interface I need to build, the source is going to be an string containing XML. I need to parse this into the message type format so it can be used for message mapping.

The XSL I am using for this is

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="" xmlns:a="">
<xsl:output method="xml" omit-xml-declaration="yes"/>
   <xsl:template match="/">
        <xsl:for-each select="//*:string">
         <xsl:value-of select="." disable-output-escaping="yes"/>

The source XML (for now) is

<ns0:MTBatchCharacteristics xmlns:ns0="">

I get an error as below

Transformer Configuration Exception occurred when loading XSLT XSL StringToXML.xsl; details: sapximapping:XSL StringToXML.xsl: line 9: Required attribute 'select' is missing. See error logs for details

I would be most grateful if someone could provide assistance in getting this resolved.