Author: indika
Date: Mon Jun 29 23:36:09 2009
New Revision: 40371
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=40371

Log:
update XQuery mediator doc

Modified:
   trunk/esb/java/docs/xdoc/mediators/xquery.xml

Modified: trunk/esb/java/docs/xdoc/mediators/xquery.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/esb/java/docs/xdoc/mediators/xquery.xml?rev=40371&r1=40370&r2=40371&view=diff
==============================================================================
--- trunk/esb/java/docs/xdoc/mediators/xquery.xml       (original)
+++ trunk/esb/java/docs/xdoc/mediators/xquery.xml       Mon Jun 29 23:36:09 2009
@@ -92,5 +92,26 @@
     query. </li>
   <li>Action: Delete the variable. </li>
 </ul>
+
+<h3>Examples </h3>
+<ol>
+  <li></li>
+</ol>
+<pre>&lt;xquery key="xquery\example.xq"&gt;
+      &lt;variable name="payload" type="ELEMENT"/&gt;
+&lt;/xquery&gt;</pre>
+
+<p>In the above configuration, XQuery script is in the registry and that script
+can be picked by key <strong>xquery\example.xq</strong>. There is a one
+variable name <strong>payload</strong> and type as <strong>ELEMENT</strong>. As
+there is no expression in the variable definitions, default value - the first
+child of SOAP Body is used as the value of variable <strong>payload</strong>. .
+Within XQuery script, you can access this variable by defining <strong>declare
+variable $payload as document-node() external;</strong> . Refer sample 390 and
+391 for more information.</p>
+
+<p></p>
+
+<p></p>
 </body>
 </html>

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to