On 26/05/2011 14:11, Leo Studer wrote: > Hello > > I would like to do something like > > for $i in /root/namespaces ... > > to use them for further processing in a query. > You can do this using the functions fn:in-scope-prefixes() and fn:namespace-uri-for-prefix() Michael Kay Saxonica