=Forward and Redirect=
The two XML elements <code>restxq:forward</code> and <code>restxq:redirect</code> can be used in the context of [[Web Application]]s, precisely in the context of RESTXQ. These nodes allow e.g. multiple [[XQuery Update]]s in a row by redirecting to the RESTXQ path of updating functions. Both wrap an a URL to a RESTXQ path. The wrapped URL should be properly encoded via <code>fn:encode-for-uri()</code>.
Remember to encode the wrapped URL, e.g. using <code>fn:encode-for-uri()</code>. Note that the two extensions , currently, these elements are not part of RESTXQ specification yet.
==restxq:forward==