I guess this relates to your previous question about using XQJ.
 
You can declare a namespace using
 
XQConnection connection = ....
connection.getStaticContext().declareNamespace("prefix", "uri")
 
The namespace prefix "prefix" can then be used within your query.
 

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay



From: Pushpendra Singh Sengar [mailto:pushpendra1412@gmail.com]
Sent: 23 March 2010 10:10
To: saxon-help
Subject: [saxon] how to declare namespace dynamically

hi,
can i declare namespace dynamically in connection , if yes then how?.could you provide me an example of "how to bind dom document"

--
Regards,
Pushpendra