<!--
This is unbelievably evil. The sad part is, doing it in Java would've
been worse. This stylesheet takes the tournament-schedule.xml as input and
produces RSS files in $basePath as output. Each RSS file starts on the hour,
and contains all tournaments starting in the next 24 hours.
The stylesheet takes each Tournament in the input document and uses its
StartTime element to calculate which hours' RSS feeds the tournament
belongs in. Then it builds an intermediate tree containing TournEntry
elements, where each one contains a Tournament (verbatim from the source)
and a list of Publish elements, one for each hour the tournament should be
published in an RSS file.
Then it takes the intermediate tree and applies the actual RSS transformation
to it, producing a result-document for each unique Publish element in the
interm and adding each Tournament holding those Publishes to it as RSS items.
A Note About Namespaces:
- RSS is in the default namespace.
- The input document is in the default namespace.
- Tournament elements from the input document are mapped to the poker:
namespace in the result document, per RSS requirements.
- The 'pk' namespace is used for functions within this stylesheet ONLY.
-->