Sorry, I should have tried to explain what I'm trying to do.
I have a SQL database view (pulling data from several independent database tables) that lists course web pages by URL and then links data (course fees, UCAS application codes, campuses, etc.) to them.
In practice, when someone visits the course web page, the page will load an XSLT function that captures the page's URL and then uses it to request the SQL record from the database view.