Learn XQuery |
Home:Learn XQuery: XQuery Tips and Tricks:Function Libraries Can I create a library of XQuery functions?Yes! In fact, a library of external XQuery functions is a great way to avoid having to redefine functions in the prologs of every query you write. You can use the “import module” directive in XQuery; for example, suppose you have defined a library of functions like myFunctions.xquery: module namespace utilities = "myUtilities"; You can then use the functions defined in that module in any other XQuery doing: import module namespace utilities = "myUtilities" at "myFunctions.xquery"; Next Question! |
Submit Your DataDirect XQuery Tip or TrickTell us your XQuery Tip or Trick – if it gets published on our site, you’ll receive a |





