[nycphp-talk] Xpath Calculations (Math)
Jon Baer
jonbaer at jonbaer.net
Mon Nov 8 22:20:17 EST 2004
Hi,
Ive moved some code from MySQL to static XML/Xpath and was trying to figure
out if there is an easy way to perform (and sort) sum calculations .. For
example:
<goal name="J. Baer"/>
<goal name="J. Doe"/>
<goal name="J. Baer"/>
Id like to end up with:
J. Baer 2
J. Doe 1
Without having to do a map in PHP. Is there an Xpath hack/function to do
this?
Thanks.
- Jon
More information about the talk
mailing list