on 02-24-2009 9:27 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.