Thanks for your answer.
I may be wrong, but for me uri (namespace) and prefix are not necessarily the same. So, I would expect always a prefixed name for @name, because when uri and prefix are different, it becomes impossible to deduce the prefixed name.
But it may need a closer look to the specification.
Best regards, Emmanuel
Le 24 févr. 2015 à 17:28, Christian Grün christian.gruen@gmail.com a écrit :
Hi Emmanuel,
I think the current behavior is correct. You'll indeed need to look at both the name and uri in order to reference the correct function. I just tried the following query:
declare default function namespace 'x'; declare namespace x='x'; declare function a() { 1}; declare function x:b() { 1}; declare function Q{x}c() { 1}; for $f in (a#0, x:b#0, Q{x}c#0) return inspect:function($f)/@name/fn:string()
It returns the following result:
<function name="a" uri="x"> <return type="xs:integer"/> </function> <function name="x:b" uri="x"> <return type="xs:integer"/> </function> <function name="c" uri="x"> <return type="xs:integer"/> </function>
Do you have another example to indicate what you are expecting in the result?
Thanks, Christian