Hi Paul,
Thanks
alot. It worked perfectly.
I tried the same thing but like:
sum(/Transaction/Payment/PaymentDetails/PaymentAmount[/Transaction/Payment/PaymentDetails/PaymentType='CREDIT'])
Instead of
sum(/Transaction/Payment/PaymentDetails/PaymentAmount[../PaymentType='CREDIT'])
--------
So does this mean that the path in predicates are not relative to template but sort of current context or the xpath they belong to?
Thank you again!
Ahmad