I'm sure there are mailing lists specific to XQuery discussions out there, and I know that there are mailing lists specific to Saxon use. Try asking at one of those mailing lists, and I'm sure you'll get an answer from someone who's solved the same problem before.