Below is the XML from which I need the data
<StyleML>
<transaction>
<party>
<partyId>Party1</partyId>
<partyAlias>
<partyAliasId>2323</partyAliasId>
<partyAliasLongName>AQR LP</partyAliasLongName>
</partyAlias>
</party>
<party>
<partyId>Party2</partyId>
<partyAlias>
<partyAliasId>2323</partyAliasId>
<partyAliasLongName>Scotland</partyAliasLongName>
</partyAlias>
</party>
<transactionParticipant>
<counterpartyRef>Party2</counterpartyRef>
<participantType>Counterparty Participant</participantType>
</transactionParticipant>
<transactionParticipant>
<counterpartyRef>Party3</counterpartyRef>
<participantType>Broker Participant</participantType>
</transactionParticipant>
</transaction>
</StyleML>
I need partyAliasLongName from the party whose participation type is counterpartyParticipant.
i.e. in the above example , I want data from Party whose id is 'Party 2' as from the transaction Participant , we can conclude that for counterParty Participant party id is 'Party2'
I want to sum up this condition in Xpath , however i am not sure how to do that. Any help would be greatful.