unless you really need to always use a node test
AContribution rather than name()='AContribution'
It's namespace aware and likely more efficient.
Are you using xsl 1 or 2?
xpath 1:
sum(Records/Record/*[self::AContribution|self::BContribution|self::CContribution][number()=number()])
xpath2 you can do the same, or a bit more simply:
sum(Records/Record/(AContribution|BContribution|CContribution)[number()=number()])
David
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--