<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1434312431892_125554"><span id="yui_3_16_0_1_1434312431892_125623"> Thank you Radu. It is probably because I don't know code templates very well, but I am not quite sure how they could help here.</span></div><div id="yui_3_16_0_1_1434312431892_125644"><br><span id="yui_3_16_0_1_1434312431892_125623"></span></div><div id="yui_3_16_0_1_1434312431892_125696"><span id="yui_3_16_0_1_1434312431892_125623"> As far as I understand, they are fixed pieces of code, that get inserted via a shortcut expansion mechanism, aren't they? But I probably miss something.<br></span></div><div id="yui_3_16_0_1_1434312431892_125700"><br><span id="yui_3_16_0_1_1434312431892_125623"></span></div><div id="yui_3_16_0_1_1434312431892_125695"><span id="yui_3_16_0_1_1434312431892_125623"> Regards,</span></div><div id="yui_3_16_0_1_1434312431892_125571"> </div><div id="yui_3_16_0_1_1434312431892_125573"><div id="yui_3_16_0_1_1434312431892_125572">-- <br>Florent Georges<br>http://fgeorges.org/<br>http://h2oconsulting.be/</div></div> <br><div id="yui_3_16_0_1_1434312431892_125597" class="qtdSeparateBR"><br></div><div style="display: block;" id="yui_3_16_0_1_1434312431892_125594" class="yahoo_quoted"> <div id="yui_3_16_0_1_1434312431892_125593" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1434312431892_125592" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1434312431892_125596" dir="ltr"> <font id="yui_3_16_0_1_1434312431892_125595" face="Arial" size="2"> Le Mardi 16 juin 2015 15h53, Radu Pisoi wrote:<br> </font> </div> <blockquote id="yui_3_16_0_1_1434312431892_125591" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <br><br> <div id="yui_3_16_0_1_1434312431892_125600" class="y_msg_container">Hi Florent,<br clear="none"><br clear="none">Unfortunately, there is no specific mechanism that can be used to augment the list of functions proposed by the content completion assistant when editing an XQuery document.<br clear="none"><br clear="none">An alternative solution is to use the code templates support that can be customized for a certain document type. The addition of a new code template is possible by opening the 'Editor/Templates/Code Templates' preferences page. <br clear="none"><br clear="none">After you have defined your custom code templates, you can use them by invoking the 'Show Code Templates'(Ctrl + Shift + Space) action.<br clear="none"><br clear="none">More about code templates support can be found in our documentation: <a id="yui_3_16_0_1_1434312431892_125601" shape="rect" href="http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/code-templates.html" target="_blank">http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/code-templates.html</a><br clear="none"><br clear="none">Regards,<br clear="none">Radu<br clear="none">--<br clear="none">Radu Pisoi<br clear="none"><oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger<br clear="none"><a shape="rect" href="http://www.oxygenxml.com/" target="_blank">http://www.oxygenxml.com</a><br clear="none"><br clear="none">On 6/15/2015 5:38 PM, Florent Georges wrote:<br clear="none">> Hi,<br clear="none">> <br clear="none">> Is there any way, in oXygen, to augment the list of function names<br clear="none">> to use for auto-completion when in an XQuery editor?<br clear="none">> <br clear="none">> Basically, a processor can add any function to the static context.<br clear="none">> So some functions can be called in a module (so should be available<br clear="none">> for code completion), even with no corresponding import statement.<br clear="none">> <br clear="none">> I have such a list of extra functions I would like to be available<br clear="none">> in oXygen when I write XQuery code (not to be evaluated, just for<br clear="none">> writing code). The ideal solution woud not require having any<br clear="none">> specific scenario nor processor "attached" to the file.<br clear="none">> <br clear="none">> Is this possible?<br clear="none">> <br clear="none">> Regards,<br clear="none">> -- <br clear="none">> Florent Georges<br clear="none">> <a shape="rect" href="http://fgeorges.org/" target="_blank">http://fgeorges.org/</a><br clear="none">> <a shape="rect" href="http://h2oconsulting.be/" target="_blank">http://h2oconsulting.be/</a><br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> _______________________________________________<br clear="none">> oXygen-user mailing list<br clear="none">> <a shape="rect" ymailto="mailto:oXygen-user@oxygenxml.com" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br clear="none">> <a shape="rect" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><div class="yqt2332400662" id="yqtfd14013"><br clear="none">> <br clear="none"><br clear="none">_______________________________________________<br clear="none">oXygen-user mailing list<br clear="none"><a shape="rect" ymailto="mailto:oXygen-user@oxygenxml.com" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><br clear="none"><a shape="rect" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user" target="_blank">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><br clear="none"></div><br><br></div> </blockquote> </div> </div> </div></div></body></html>