Skip to Content
Feb 26, 2014 at 02:54 PM

XSLT for Name/Value pairs Help needed


hello Experts,

I am trying to use XSLT to transform returned data in a soap envelope to ABAP. I do these transformations for other data and it works however in this case, the return is different. I am getting name/value elements rather than named elements which I can easily map to ABAP structures.

Here is a sample of what I get returned and here is what I have in my current transformation. Hopefully someone can help me so I can read the name/value pairs propertly.




<Results xsi:type="DataExtensionObject"><PartnerKey xsi:nil="true" /><ObjectIDxsi:nil="true"/><Type>DataExtensionObject</Type>













My current transformation, as I was trying to use choose, when....

<xsl:template match="/">

<asx:abap xmlns:asx="" version="1.0">








<xsl:template match="RetrieveResponseMsg">



<xsl:value-of select="OverallStatus"/>



<xsl:for-each select="Results/Properties">



<xsl:when test="Name='CEID'">


<xsl:value-of select="CEID"/>



<xsl:when test="Property/Name='ERQ_ID'">


<xsl:value-of select="ERQ_ID"/>