Tamino version of SQL stored procedures

Hi All,

I was wondering if there is a way to create stored XQueries on Tamino, similar to Stored Procedures in SQL Server, and call those functions from the API.

Thanks for your help,
C