camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r922692 - in /websites/production/camel/content: cache/main.pageCache schematron.html
Date Thu, 18 Sep 2014 13:18:51 GMT
Author: buildbot
Date: Thu Sep 18 13:18:51 2014
New Revision: 922692

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/schematron.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/schematron.html
==============================================================================
--- websites/production/camel/content/schematron.html (original)
+++ websites/production/camel/content/schematron.html Thu Sep 18 13:18:51 2014
@@ -41,7 +41,6 @@
   <script src='//camel.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
   <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
-  <script src='//camel.apache.org/styles/highlighter/scripts/shBrushBash.js' type='text/javascript'></script>
   
   <script type="text/javascript">
   SyntaxHighlighter.defaults['toolbar'] = false;
@@ -87,7 +86,7 @@
         <tr>
         <td valign="top" width="100%">
 <div class="wiki-content maincontent"><h2 id="Schematron-SchematronComponent">Schematron
Component</h2><p><strong>Available as of Camel 2.14</strong></p><p><a
shape="rect" class="external-link" href="http://www.schematron.com/index.html" rel="nofollow">Schematron</a>&#160;is
an XML-based language for validating XML instance documents. It is used to make assertions
about data in an XML document and it is also used to express operational and business rules.
Schematron is an&#160;<a shape="rect" class="external-link" href="http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html"
rel="nofollow">ISO Standard</a>. The schematron component uses the leading <a
shape="rect" class="external-link" href="http://www.schematron.com/implementation.html" rel="nofollow">implementation</a>
of ISO schematron. It is an XSLT based implementation. The schematron rules is run through
<a shape="rect" class="external-link" href="http://www.schematron.com/implementation.html"
rel="nofollow">four 
 XSLT pipelines</a>, which generates a final XSLT which will be used as the basis for
running the assertion against the XML document. The component is written in a way that Schematron
rules are loaded at the start of the endpoint (only once) this is to minimise the overhead
of instantiating a Java Templates object representing the rules.</p><h3 id="Schematron-URIformat">URI
format</h3><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: bash; gutter: false" type="syntaxhighlighter"><![CDATA[schematron://path?[options]]]></script>
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[schematron://path?[options]]]></script>
 </div></div><h3 id="Schematron-URIoptions">URI options</h3><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Default
value</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">path</td><td colspan="1" rowspan="1"
class="confluenceTd">mandatory</td><td colspan="1" rowspan="1" class="confluenceTd">The
path to the schematron rules file. Can either be in class path or location in the file system.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">abort</td><td colspan="1" rowspan="1"
class="confluenceTd">false</td><td colspan="1" rowspan="1" class="confluenceTd">flag
to abort the route and throw a schematron validation exception.</td></tr></tbody></table></div><h3
id="Schematron-Headers">Headers</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" ro
 wspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th><th
colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1"
class="confluenceTh">In/Out</th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">CamelSchematronValidationStatus</td><td colspan="1" rowspan="1"
class="confluenceTd">The schematron validation status: SUCCESS / FAILED</td><td
colspan="1" rowspan="1" class="confluenceTd">String</td><td colspan="1" rowspan="1"
class="confluenceTd">IN</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">CamelSchematronValidationReport</td><td
colspan="1" rowspan="1" class="confluenceTd">The schematrion report body in XML format.
See an example below</td><td colspan="1" rowspan="1" class="confluenceTd">String</td><td
colspan="1" rowspan="1" class="confluenceTd">IN</td></tr></tbody></table></div><h3
id="Schematron-URIandpathsyntax">URI and path syntax</h3><p>The following example
shows how to invoke 
 the schematron processor in Java DSL. The schematron rules file is sourced from the class
path:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from(&quot;direct:start&quot;).to(&quot;schematron://sch/schematron.sch&quot;).to(&quot;mock:result&quot;)]]></script>
 </div></div><p>&#160;</p><p>The following example shows
how to invoke the schematron processor in XML DSL. The schematrion rules file is sourced from
the file system:</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
@@ -129,10 +128,14 @@
 &lt;/schema&gt;]]></script>
 </div></div><p>&#160;</p><p>Here is an example of schematron
report:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;?xml
version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;svrl:schematron-output xmlns:svrl=&quot;http://purl.oclc.org/dsdl/svrl&quot;
xmlns:iso=&quot;http://purl.oclc.org/dsdl/schematron&quot; xmlns:saxon=&quot;http://saxon.sf.net/&quot;
xmlns:schold=&quot;http://www.ascc.net/xml/schematron&quot; xmlns:xhtml=&quot;http://www.w3.org/1999/xhtml&quot;
xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
schemaVersion=&quot;&quot; title=&quot;&quot;&gt;
-   &lt;!--
-
-      --&gt;
+&lt;svrl:schematron-output xmlns:svrl=&quot;http://purl.oclc.org/dsdl/svrl&quot;
+ xmlns:iso=&quot;http://purl.oclc.org/dsdl/schematron&quot;
+ xmlns:saxon=&quot;http://saxon.sf.net/&quot;
+ xmlns:schold=&quot;http://www.ascc.net/xml/schematron&quot;
+ xmlns:xhtml=&quot;http://www.w3.org/1999/xhtml&quot;
+ xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
+ xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; schemaVersion=&quot;&quot;
title=&quot;&quot;&gt;
+   
    &lt;svrl:active-pattern document=&quot;&quot; /&gt;
    &lt;svrl:fired-rule context=&quot;chapter&quot; /&gt;
    &lt;svrl:failed-assert test=&quot;title&quot; location=&quot;/doc[1]/chapter[1]&quot;&gt;



Mime
View raw message