The input XML:
Code:
<request attr1="John" attr2="King">
<telephoneNumber telephone="1234567890">
<detail value="P" tag="Other" />
<detail value="789" tag="TT" />
<detail value="N" tag="Sw" />
<detail value="B" tag="HT" />
</telephoneNumber>
<telephoneNumber telephone="9876543210">
<detail value="o" tag="Other" />
<detail value="789" tag="TT" />
<detail value="G" tag="Sw" />
<detail value="K" tag="HT" />
</telephoneNumber>
</request>
I want the output :
Code:
<request>
<parameter>
<Attr1>John</Attr1>
<Attr2>King</Attr2>
<TT>789</TT>
<Tel>1234567890</Tel>
<Tel>9876543210</Tel>
</parameter>
</request>
The detail/@TT always has the same value in the input, but for the output I only need one, means I do not want the value 789789 for the output TT node, I want 789 for the output TT node.
Any idea how to use XSL 1.0 to do that?
Thank you in advance.