Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Help with XSLT mapping

$
0
0

Hi

 

I have a file that produces a flat xml as below

 

01 header                         => invoice 1

02 vendor data

03 vendor bank data

04 gl line data

01 header                          => invoice 2

 

and so on.

 

I am struggling with creating an xsl template that will convert the above xml into a parent-child relationship as below

 

01 header

===> 02 vendor data

===> 03 vendor bank data

===> 04 gl line data

01 header

 

Basically I want to insert all 02,03,04 nodes that follow a 01 node as children of the 01 node, until the next 01 node, and so on till the end of file.

 

Please can experts provide me the appropriate xsl template to process the file as desired.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>