When I run the above, the URIs printed out in the Main template appear correct, but the URIs printed out when base-uri(.) is applied to the student node inside the document are sometimes correct and sometimes wrong. Sometimes the evaluate to the URI of a different file in the collection.
"A false conclusion, once arrived at and widely accepted is not dislodged easily, and the less it is understood, the more tenaciously it is held." - Cantor's Law of Preservation of Ignorance.