Is there any way in MarkLogic 8 to create pipe that runs when an XML document is created or updated in order to do some statistical calculation such as count number of nodes in which certain words appear and store results in a file? Is there any way in MarkLogic 8 to create pipe