17. script

script(script_location, context_node?)

Run the XED script found at specified location. Parameter script_location must be an absolute or relative URI. A relative URI is relative to the location of the XED script containing the script() command. Parameter context_node defaults to the current context node.

XED scripts run this way are loaded and cached once for all. Therefore there is almost no performance penalty in using command script(), and this, even inside for-each loops.



script("utils/arrange.xed", .//db:index);