Get annotation values from introspection/sctx

Bug #897588 reported by William Candillon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Nicolae Brinza

Bug Description

The following functions should be added:
declare function sctx:function-annotation($function-name as xs:QName, $arity as xs:integer, $annotation as xs:QName) as xs:anyAtomicType* external;
declare function sctx:variable-annotations($name as xs:QName) as xs:QName* external;
declare function sctx:variable-annotation($name as xs:QName, $annotation as xs:QName) as xs:anyAtomicType* external;

Revision history for this message
William Candillon (wcandillon) wrote :

The following functions should be added:
declare function sctx:function-annotation($function-name as xs:QName, $arity as xs:integer, $annotation as xs:QName) as xs:anyAtomicType* external;
declare function sctx:variable-annotations($name as xs:QName) as xs:QName* external;
declare function sctx:variable-annotation($name as xs:QName, $annotation as xs:QName) as xs:anyAtomicType* external;

description: updated
Changed in zorba:
assignee: nobody → Nicolae Brinza (nbrinza)
Changed in zorba:
importance: Undecided → Medium
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

I would prefer having a function annotation($name as xs:QName, $arity as xs:integer) to return something as follows:

<QNameOfAnnotation><value>StringLiteral1</value><value>StringLiteral2</value><QNameOfAnnotation>

or

<annotation><name>QNameOfAnnotation</name><value>StringLiteral1</value><value>StringLiteral2</value><annotation>

Revision history for this message
William Candillon (wcandillon) wrote :

I have implemented one of the function at https://code.launchpad.net/~zorba-coders/zorba/bug897588

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.