Wow, that's pretty.
I'll have to look up self::
Thanks buddy,
-S
On 8/16/06, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
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>
--~--
--~------------------------------------------------------------------
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>
--~--