impossible to extract annotation literals with xqdoc

Bug #1124374 reported by Matthias Brantner
6
This bug affects 1 person
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:form-param("message","{$message}", "'no message delivered'", 5)

results in

<xqdoc:annotation prefix="restxq" namespace="" localname="form-param" value="message {$message} 'no message delivered' 5"/>.

The proposal is to structure the literals as follows:

<xqdoc:annotation prefix="restxq" namespace="" localname="form-param"/>
  <xqdoc:literal type="string" value="message"/>
  <xqdoc:literal type="string" value="{$message}"/>
  <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.

Tags: hotlist

Related branches

Chris Hillery (ceejatec)
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
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.