Skip to Content
0
Former Member
Nov 12, 2007 at 06:12 AM

XSLT mapping problem

17 Views

Hi

Im doign xslt mapping in XI bw two structures..while doing htis i have come across a requirment, where i have to map different values to nodes which are repeating in different sub structures.

Ex: source structure and target structure are same..

<Flight>

<Pflight>

<fltno>

<fltname>

<fltcode>

</Pflight>

<Wflight>

<fltno>

<fltname>

<fltcode>

</Wflight>

<Rflight>

<fltno>

<fltname>

<fltcode>

</Rflight>

</Flight>

In this each <fltno>,<fltname> nodes have seperate values...

I have mapped 'fltno' under each sub structure using this statement.

<xsl:value-of select=".//*[local-name() = 'fltno'

Here problem is in target structure it is getting same 'fltno' under all structures. it means it will be passing the value of 'fltno' under first structure(Pflight) to all the <fltno> nodes.

But my requirment is <Pflight>, <Wflight>, <Rflight> have seperate 'fltno' and they should get their own value in target structure.

Can somebody help me.....Really Appreciated

Thanks And Regards

Rajesh