Jeff,
Your solution with the processing instruction demonstrates that when global
params are being set that the file has already been parsed and xpaths into
the file work. If reading a processing instruction from the file works,
then reading an element in the file should work too. You said reading the
element didn't work, but perhaps there was a problem with the xpath?
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net