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

Log:
update XQuery mediator doc

Modified:
   branches/esb/java/2.1/product/docs/xdoc/mediators/xquery.xml

Modified: branches/esb/java/2.1/product/docs/xdoc/mediators/xquery.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/docs/xdoc/mediators/xquery.xml?rev=40370&r1=40369&r2=40370&view=diff
==============================================================================
--- branches/esb/java/2.1/product/docs/xdoc/mediators/xquery.xml        
(original)
+++ branches/esb/java/2.1/product/docs/xdoc/mediators/xquery.xml        Mon Jun 
29 23:35: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