Tamino version of stored procedures

Hi All,

I’ve been trying to find a way to store local XQueries on Tamino so that I can call them from one of the APIs. Would creating an X-Tension be the equivalent of creating a stored procedure in SQL Server?

Thanks,
C

I haven’t tried it myself yet, but it sounds like you want to use “Query Functions at Root Level” as documented in the manual …/servext/setypes.htm#seqfxml

Quoting from the manual:
This is as if a query function were entered instead of an XML query.

Examples:

MySubString(‘abcdefg’,2,4)
MyFunc(‘Hello’,/a/b,12)

At such a location the function is called just once and the return value is inserted into the Tamino response document.

Bill

Bill,

Thanks for your help. I’ve also learned that XQuery4 queries will be supported in X-tension Query Functions in the Tamino 4.2 Release at the end of June (2004). Currently, only X-Query, or XQL, callbacks are supported.

–Clifford