Greg and InfoDev's,
I hard coded it, but need to find the Xpath that compares the current date. Here is the hard coded Xpath, and it just sums up for the expenseReportDate= "2006". If I can find the function that says current year in Xpath, I can solve it. Any help would be appreciated. Thanks.
sum(xdXDocument:GetDOM("TOSSReceive")/dfs:myFields/dfs:dataFields/d:TOSS/@monthlyExpenses[../@employeeDepartment = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:TOSS/@employeeDepartment and contains(../@expenseReportDate, "2006")])