How to output this XML as a ranking?

Posted by Jennifer | Updated on

If you want to output this XML as a ranking? The usual answer for this sort of thing in XSLT 1.0 is Muenchian grouping. First define a key.

Then use the following trick to iterate over the unique source values

The for-each select pulls out only the first booking element for each source value.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers