Home >Online Product Documentation >Table of Contents >Creating a User-Defined Function
You can create a user-defined function by typing its definition in the XQuery Source tab, but it can be easier to have Stylus Studio create a user-defined function for you. You do this by selecting existing code and refactoring that code as a user-defined function. Any complete block of code can be used for refactoring. Examples include XML fragments and FLWOR expressions.
When you create a user-defined function using the refactoring feature, Stylus Studio