Inspect custom annotations
Tuesday, 26 May 2015 · 3 messages
ML
Marco Lettere26 May 2015 17:22 #
Hi all,
isn't there any chance of showing up custom annotations in the
inspect:function result?declare %local:ann function local:f3() as xs:string{
()
};(
inspect:functions() ! inspect:function(.))
yields:<function name="local:f3"
uri="http://www.w3.org/2005/xquery-local-functions">
<return type="xs:string"/>
</function>I thought of:
<function name="local:f3"
uri="http://www.w3.org/2005/xquery-local-functions">
<annotation name="local:ann"/>
<return type="xs:string"/>
</function>Thanks,
Marco.
CG
Christian Grün26 May 2015 17:27 #
Hi Marco,
I remember this has recently been noted by various users, so I have just added a new Github issue for your request [1].
Cheers,
Christian
[1] https://github.com/BaseXdb/basex/issues/1151
Quoted text · Marco Lettere · 28 lines
On Tue, May 26, 2015 at 5:22 PM, Marco Lettere <marco.lettere at dedalus.eu> wrote: > Hi all, > isn't there any chance of showing up custom annotations in the > inspect:function result? > > declare %local:ann function local:f3() as xs:string{ > () > }; > > (inspect:functions() ! inspect:function(.)) > > yields: > > <function name="local:f3" > uri="http://www.w3.org/2005/xquery-local-functions"> > <return type="xs:string"/> > </function> > > I thought of: > > <function name="local:f3" > uri="http://www.w3.org/2005/xquery-local-functions"> > <annotation name="local:ann"/> > <return type="xs:string"/> > </function> > > Thanks, > Marco.
CG
Christian Grün26 May 2015 18:45 #
I am glad to report that you will now have access to custom
annotations again. Check out the latest snapshot [1]!
Christian
[1] http://files.basex.org/releases/latest
Quoted text · Christian Grün · 42 lines
On Tue, May 26, 2015 at 5:27 PM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Marco, > > I remember this has recently been noted by various users, so I have > just added a new Github issue for your request [1]. > > Cheers, > Christian > > [1] https://github.com/BaseXdb/basex/issues/1151 > > > > On Tue, May 26, 2015 at 5:22 PM, Marco Lettere <marco.lettere at dedalus.eu> wrote: >> Hi all, >> isn't there any chance of showing up custom annotations in the >> inspect:function result? >> >> declare %local:ann function local:f3() as xs:string{ >> () >> }; >> >> (inspect:functions() ! inspect:function(.)) >> >> yields: >> >> <function name="local:f3" >> uri="http://www.w3.org/2005/xquery-local-functions"> >> <return type="xs:string"/> >> </function> >> >> I thought of: >> >> <function name="local:f3" >> uri="http://www.w3.org/2005/xquery-local-functions"> >> <annotation name="local:ann"/> >> <return type="xs:string"/> >> </function> >> >> Thanks, >> Marco.
Written for BaseX 8.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery