I have a xml structure like:
1481 test1 test2
As I understand I need transform price to "normal view (without + and -)" before a send it to function "sum".
That is more or less correct (you don't want to remove the minus sign, in case the number is negative). Given a well-formed input such as:
XML
1481
test1
test2
+798.27
0741
test2
test2
+399.14
the following stylesheet:
XSLT 1.0
will return:
1197.41