Is there a way to get a list of the namespaces declared/used? I am wanting to right a function that does a function lookup, but I want to right it in such a way that I don't have to know the namespaces ahead of time. Are there any functions that will return a list of the namespaces being used? Thanks in advance, Buddy
Hi Buddy, Try inspect:static-context with the 'namespaces' argument [1]. Cheers Christian [1] http://docs.basex.org/wiki/Inspection_Module#inspect:static-context On Sun, Jul 17, 2016 at 1:56 PM, <buddyonweb-software@yahoo.com> wrote:
Is there a way to get a list of the namespaces declared/used?
I am wanting to right a function that does a function lookup, but I want to right it in such a way that I don't have to know the namespaces ahead of time.
Are there any functions that will return a list of the namespaces being used?
Thanks in advance,
Buddy
In XQuery you could use the function in-scope-prefixes together with the function namespace-uri-for-prefix. Best Kristian K 17.07.2016 14:56 buddyonweb-software@yahoo.com kirjutas:
Is there a way to get a list of the namespaces declared/used?
I am wanting to right a function that does a function lookup, but I want to right it in such a way that I don't have to know the namespaces ahead of time.
Are there any functions that will return a list of the namespaces being used?
Thanks in advance,
Buddy
participants (3)
-
buddyonweb-software@yahoo.com -
Christian Grün -
Kristian Kankainen