Matisse, Consider loading the FunctX library module into Sedna so that it can be used in your ad-hoc queries going forward.
Check out "2.5.5 Managing Modules" in the Sedna Documentation: http://www.sedna.org/progguide/ProgGuidesu8.html#x14-570002.5.5 On the Sedna terminal you could load the FunctX library module with a command like: LOAD MODULE "functx-1.0-doc-2007-01.xq" Once the library module is loaded into Sedna, it will remain there (even if you restart the Database). Now you will be able to use and re-use functions contained within this library module in all your ad-hoc queries going forward. Consider the following ad-hoc XQuery expression (or MainModule): ----------------- import module namespace functx = "http://www.functx.com"; functx:reverse-string("apple") ----------------- Regards, Charles > If I wish to use a user defined function in an XQuery (for example, any of > the functions from http://www.xqueryfunctions.com/) the only option I see > is to include the function definition in the query I pass to sedna. This > seems inefficient. > > What is the performance impact of adding function definitions to every > query? > Is there a better way? > Perhaps a way to have a local library of functions that are always > available for a particular database? > > > -Matisse > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Sedna-discussion mailing list > Sedna-discussion@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sedna-discussion > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Sedna-discussion mailing list Sedna-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sedna-discussion