cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT mapping help needed

Former Member
0 Kudos

Hi all ,

I need to create xslt mapping where source data is

<?xml version='1.0' ?>

<ns:MT_Input xmlns:ns="http://rim.com/brightpoint">

<Recordset>

<Data1>

<Data2>ISA:00: :00: :01:1515151515 :01:5151515151 :041201:1217:U:00304:000032123:0:P:*~</Data2>

</Data1>

<Data1>

<Data2>GS:CT:9988776655:1122334455:041201:1217:128:X:003040~</Data2>

</Data1>

<Data1>

<Data2>ST:831:00128001~</Data2>

</Data1>

</Recordset>

</ns:MT_Input>

Output should be txt as

ISA:00: :00: :01:1515151515 :01:5151515151 :041201:1217:U:00304:000032123:0:P:*~

GS:CT:9988776655:1122334455:041201:1217:128:X:003040~

ST:831:00128001~

Can any body please suggest

Thanks

-Kulwant

Accepted Solutions (0)

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi Kulwant,

xsl mappings at PI always map from XML to XML. Your target seems to be a flat structure, so you should use a file adapter. If you actually want to do the transformation by mapping, you need to use a mapping what does NOT neccessarily require a parsing; you have the choice between Java or ABAP mapping.

Regards,

Udo

Former Member
0 Kudos

What was the answer?

I would say

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="text" encoding="utf-8"/>

<xsl:template match="/">

<xsl:copy-of select="*" />

</xsl:template>

</xsl:stylesheet>