-
Notifications
You must be signed in to change notification settings - Fork 11
Extend xqdoc format to capture XQuery 3 annotations #24
Comments
Zorba's schema for XQDoc annotations is here: |
Some discussion on the Zorba user list https://groups.google.com/forum/?fromgroups=#!topic/zorba-users/J8rDpF6y6Fg |
The proposal at https://bugs.launchpad.net/zorba/+bug/1124374 looks good to me
results in
where the order of the literal elements reflects the order of the literals in the annotation. @adamretter Does Existdb have any opinions in this area? |
We just added an Inspection Module to BaseX that provides both an xqDoc and a custom documentation function. After having some discussion on the existing xqDoc schema, we eventually did the following:
As a result, Andy’s RESTXQ example results in the following output: <xqdoc:namespaces>
<xqdoc:namespace prefix="restxq" uri="http://exquery.org/ns/restxq"/>
</xqdoc:namespaces>
...
<xqdoc:annotations>
<xqdoc:annotation name="restxq:form-param">
<xqdoc:literal type="xs:string">message</xqdoc:literal>
<xqdoc:literal type="xs:string">{$message}</xqdoc:literal>
<xqdoc:literal type="xs:string">'no message delivered'</xqdoc:literal>
<xqdoc:literal type="xs:integer">5</xqdoc:literal>
</xqdoc:annotation>
</xqdoc:annotations> Feeback is welcome! |
I talked to Darin McBeath, and we would now be interested in what you all think about the proposed xqDoc extensions… Would you be like to see the schema extended the way it has been proposed in my last comment? |
Looks good. |
1 similar comment
Looks good. |
👍 |
Yes please. On 4 June 2013 13:36, Christian Gruen notifications@github.com wrote:
Adam Retter skype: adam.retter |
looks good to me. |
Darin hast just updated xqdoc.org with the proposed changes. Thanks all for your feedback! |
It would be good if the
xqdoc
XML format included information about annotations in the source. One use for this is documentingRESTXQ
applicationsI believe the Zorba
xqdoc
module is already doing this http://www.zorba-xquery.com/html/modules/zorba/xqdoc/xqdoc Although I cant find any documentation for this.The text was updated successfully, but these errors were encountered: