XSLT logic some dependent records - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

XSLT logic some dependent records

Hi All,

Am new to XSLT and trying to write some xslt which is having 1st record as the header,2nd record as the status and 3rd records as the trainings and all these 3 records can be occured n numbers of time, we want that fixed length file need to be converted into xml file, below is the simple input and out file should look like.


Sample Input is :

H123
S111SE
Tjavaasp
H231
S112SA
Tjavaaix

Output should be like below with above Input :

-
-
123
-
111
SE

-
java
asp


-
231
-
112
SA

-
java
aix





In the above example we can distungish between record with first character of each record. I have tried but not able to getting the perfect logic.

Can any one plese help on getting this done. as this is urgent requirement for me.

Sign In or Register to comment.