Perhaps saxon:evaluate-node() will meet your requirements better? This takes the namespace bindings from the document in which the XPath expression is found.
 
If not, I'm afraid the answer is no - there is currently no way to set the namespace bindings.
 
Michael Kay
Saxonica


From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of martin.me.roberts@bt.com
Sent: 25 June 2008 16:09
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Saxon:evaluate

Hi,
  I am trying to use saxon:evaluate with an xpath that contains namespace prefixes that are not known to the base stylesheet.  Is there any way of adding the namespaces found in a document to the stylesheets context?
 
Martin