Darin has started this effort: http://xqdoc.org/xquery-style.html In fact, we started from these conventions in the XQLint/Cloud9 code formatter.
On Wed, May 29, 2013 at 11:35 AM, Adam Retter <[email protected]> wrote: > I think it could be valuable for us (W3C WG?) to come up with a coding > standards for XQuery, so that when we look at XQuery code its all > formatted the same. > > i.e. Where should braces go? > > declare local:function($a, $b) { > () > }; > > or > > declare local:function($a, $b) > { > () > }; > > i.e. Where should return statements go? > > let $x = $y return > $x > > or > > let $x = $y > return > $x > > > I think you get the idea... > > On 29 May 2013 07:10, Liam R E Quin <[email protected]> wrote: >> On Wed, 2013-05-29 at 11:36 +0530, abhinav mishra wrote: >>> Hi, >>> >>> I am looking for some tools/plugins which provides xquery coding style >>> check and suggest the xquery coding standards if not followed properly. >>> >>> Just like Eclipse has plugins like “CheckStyle“ which gives warning if >>> Java coding standards are not followed. >> >> Sorry to post a 2nd time - there are eclipse plugins for XQuery, and >> some editors have support for syntax checking in XQuery (e.g. OxygenXML, >> and the GUI part of BaseX, to name a couple), in case that's what you >> meant. >> >> Liam >> >> -- >> Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ >> Pictures from old books: http://fromoldbooks.org/ >> Ankh: irc.sorcery.net irc.gnome.org freenode/#xml >> >> _______________________________________________ >> [email protected] >> http://x-query.com/mailman/listinfo/talk > > > > -- > Adam Retter > > skype: adam.retter > tweet: adamretter > http://www.adamretter.org.uk > > _______________________________________________ > [email protected] > http://x-query.com/mailman/listinfo/talk _______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
