On 10/5/06, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
> How do I count the number of elements in the key "systems" seeing that
That's the basis of the "muenchian grouping" technique:
count(/inventory/row/serial[generate-id()=generate-id(key('systems',.))])
I think DC missed off a [1] there...
count(/inventory/row/serial[generate-id()=generate-id(key('systems',.)[1])])
It's also worth mentioning
count(distinct-values(/inventory/row/serial)) if you are using XSLT
2.0
cheers
andrew
--~------------------------------------------------------------------
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>
--~--