Author: hiranya
Date: Sun Aug 11 19:25:51 2013
New Revision: 1512992

URL: http://svn.apache.org/r1512992
Log:
Adding some missing documentation on the validate mediator

Modified:
    
synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/mediators.xml

Modified: 
synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/mediators.xml
URL: 
http://svn.apache.org/viewvc/synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/mediators.xml?rev=1512992&r1=1512991&r2=1512992&view=diff
==============================================================================
--- 
synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/mediators.xml 
(original)
+++ 
synapse/trunk/java/modules/documentation/src/site/xdoc/userguide/mediators.xml 
Sun Aug 11 19:25:51 2013
@@ -28,6 +28,7 @@
                         <li><a href="#Filter">Filter Mediator</a></li>
                         <li><a href="#InOut">In/Out Mediator</a></li>
                         <li><a href="#Switch">Switch Mediator</a></li>
+                        <li><a href="#Validate">Validate Mediator</a></li>
                     </ul>
                 </li>
                 <li>
@@ -381,6 +382,27 @@
                     case (if available).
                 </p>
             </subsection>
+            <subsection name="Validate Mediator" id="Validate">
+                <p>
+                    The validate mediator validates the XML node selected by
+                    the source xpath expression, against the specified XML 
schema. If the source
+                    attribute is not specified, the validation is performed 
against the first
+                    child of the SOAP body of the current message. If the 
validation fails,
+                    the on-fail sequence of mediators is executed. Feature 
elements could be used to
+                    turn on/off some of the underlying features of the schema 
validator (See <a
+                    
href="http://xerces.apache.org/xerces2-j/features.html";>http://xerces.apache.org/xerces2-j/features.html</a>).
+                    The schema can be specified as a static or dynamic key. 
When
+                    needed, imports can be specified using additional 
resources.
+                </p>
+                <div class="xmlConf">&lt;validate [source="xpath"]&gt;
+    &lt;schema key="string" /&gt;+
+    &lt;resource location="&lt;external-schema&gt;" key="string"&gt;*
+    &lt;feature name="&lt;validation-feature-name&gt;" value="true|false"/&gt;*
+    &lt;on-fail&gt;
+        mediator+
+    &lt;/on-fail&gt;
+&lt;/validate&gt;</div>
+            </subsection>
         </section>
         <section name="Transformation Mediators" id="TransformationMediators">
             <subsection name="Header Mediator" id="Header">


Reply via email to