Grouping nested elements in xslt 1.0
问题 I've been looking at examples of Muenchian grouping in XSLT 1.0, specifically this example here. However I'm unable to get it working on a more complex XML structure. My XML currently looks like this: <?xml version="1.0" encoding="utf-8"?> <ContestResults> <Contests> <Contest sportId="35"> <Sport>Beach Volleyball</Sport> <Event>Men's</Event> <Ranks> <Rank position="1" eventId="1"> <Athlete>Athlete 1a / Athlete 2a [GER]</Athlete> <Result>2</Result> </Rank> <Rank position="2" eventId="1">