Summing up 3 specifically named nodes under Records/Record and summing
them only if they are numbers.
Current XSL===>
sum(Records/Record/*[name(.) = 'AContribution' and number(.) =
number(.) or name(.) = 'BContribution' and number(.) = number(.) or
name(.) = 'CContribution' and number(.) = number(.)])
==>
<!-- Lots of redundant code above.
Ideal XSL===>
name(.) = [A, B ,C] and number(.) = number(.)
===>
Problem is already solved. I'm just trying to reduce redundancy.
-Steve
--~------------------------------------------------------------------
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>
--~--