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"><validate [source="xpath"]>
+ <schema key="string" />+
+ <resource location="<external-schema>" key="string">*
+ <feature name="<validation-feature-name>" value="true|false"/>*
+ <on-fail>
+ mediator+
+ </on-fail>
+</validate></div>
+ </subsection>
</section>
<section name="Transformation Mediators" id="TransformationMediators">
<subsection name="Header Mediator" id="Header">