Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'generate xqdoc' #31

Open
dizzzz opened this issue Jul 30, 2013 · 6 comments
Open

Add 'generate xqdoc' #31

dizzzz opened this issue Jul 30, 2013 · 6 comments

Comments

@dizzzz
Copy link
Member

dizzzz commented Jul 30, 2013

It would be nice if eXide could generate for xquery schrips/modules xqdoc compatible documentation (skeleton) based on the function signature.

This will encourage writing documentation, and saves lots of typing :-)

@pwin
Copy link

pwin commented Jul 22, 2017

can this modification include capacity to operate with restxq scripts? The current xqdoc fails with the '%' char of the restxq annotation

@joewiz
Copy link
Member

joewiz commented Jul 24, 2017

@pwin I think I may have seen similar problems. Could you post a small example that reproduces the error you're seeing?

@duncdrum
Copy link
Contributor

There are more problems with how special characters within xqdoc annotations get parsed

@pwin
Copy link

pwin commented Jul 25, 2017 via email

@joewiz
Copy link
Member

joewiz commented Jul 26, 2017

I think the formatting got mangled in your email. Let me try to get that into markdown. Is this right?

xquery version "3.0";

module namespace demo="http://exist-db.org/apps/restxq/demo";

(:~ : List all addresses and return them as XML. :)

declare 
    %rest:GET
    %rest:path("/address")    
    %rest:produces("application/xml", "text/xml") 
function demo:addresses() {
    <addresses>
        <myaddress/>
    </addresses>
};

And:

xquery version "3.1";

xqdm:scan(xs:anyURI('xmldb:exist:///db/apps/sports-api/example-restxq-file.xql'))

Did I get that correctly?

@pwin
Copy link

pwin commented Jul 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants