distinct in Xpath?

A pure XPath 1.0 — one-liner:

Use:

count(/*/group/user[not(. = ../following-sibling::group/user)])

Leave a Comment