problem with x-path expression
Hi all,
My problem is that I have to write a xslt that will be applied to the xml document
Here is a simple xml input file:--
In this file < transaction > node may be in multiple numbers (1 to many)..
<response>
<transaction type="RLIN">
<owner>P</owner>
<name1></name1>
<name2></name2>
</transaction>
<transaction type="RLIN">
<owner>S</owner>
<name1></name1>
<name2></name2>
</transaction>
â¦â¦
â¦..
â¦â¦.
<response>
Here <owner> can have value any one of them..
P S or O..
only condition is that there can be only one <owner> that have value as P
Here is my Output xml file (Output.xml)
<response>
<name1>XX </name1>
<name2>XX</name2>
</ response >
Now the logic for the value XX is
the value of XX comes from the <name1> <name2> in that particular transaction node where owner is P
so what will be my x-path expression
thanks in advance ..
regards
Ashu
|