Would it be better to have StaticContext::getNamespaceBindings(), rather than getDeclaredPrefixes()? That would allow users to get both the prefixes and the URIs they are bound to in one step. It would also be parallel with the new Item::getNamespaceBindings() method (and could use the same NsBindings typedef), and parallel with the existing static_context::get_namespace_bindings() method that is used internally.
Would it be better to have StaticContext: :getNamespaceBi ndings( ), rather than getDeclaredPref ixes()? That would allow users to get both the prefixes and the URIs they are bound to in one step. It would also be parallel with the new Item::getNamesp aceBindings( ) method (and could use the same NsBindings typedef), and parallel with the existing static_ context: :get_namespace_ bindings( ) method that is used internally.