impossible to extract annotation literals with xqdoc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
In Progress
|
Medium
|
Sorin Marian Nasoi |
Bug Description
The current xqdoc output format doesn't allow the extraction of multiple annotation literals.
For example,
%restxq:
results in
<xqdoc:annotation prefix="restxq" namespace="" localname=
The proposal is to structure the literals as follows:
<xqdoc:annotation prefix="restxq" namespace="" localname=
<xqdoc:literal type="string" value="message"/>
<xqdoc:literal type="string" value="
<xqdoc:literal type="string" value="'no message delivered'"/>
<xqdoc:literal type="numeric" value="5"/>
</xqdoc:annotation>
where the order of the literal elements reflects the order of the literals in the annotation.
Related branches
- Matthias Brantner: Needs Fixing
- Sorin Marian Nasoi: Approve
-
Diff: 426 lines (+134/-184)8 files modifiedmodules/com/zorba-xquery/www/modules/xqdoc.xsd (+12/-5)
src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp (+78/-47)
test/rbkt/ExpQueryResults/zorba/xqdoc/annotations.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/xqdoc/collindex.xml.res (+7/-128)
test/rbkt/ExpQueryResults/zorba/xqdoc/local.xml.res (+1/-1)
test/rbkt/ExpQueryResults/zorba/xqdoc/no_global_var.xml.res (+1/-1)
test/rbkt/Queries/zorba/xqdoc/annotations.xq (+32/-0)
test/rbkt/Queries/zorba/xqdoc/moduleDocumentation.xq (+2/-2)
Changed in zorba: | |
assignee: | nobody → Sorin Marian Nasoi (sorin.marian.nasoi) |
tags: | added: hotlist |
Changed in zorba: | |
milestone: | 2.9 → 3.0 |
Changed in zorba: | |
status: | New → In Progress |