camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r922617 - in /websites/production/camel/content: cache/main.pageCache schematron.html
Date Wed, 17 Sep 2014 22:17:54 GMT
Author: buildbot
Date: Wed Sep 17 22:17:54 2014
New Revision: 922617

Log:
Production update by buildbot for camel

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

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

Added: websites/production/camel/content/schematron.html
==============================================================================
--- websites/production/camel/content/schematron.html (added)
+++ websites/production/camel/content/schematron.html Wed Sep 17 22:17:54 2014
@@ -0,0 +1,209 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<html>
+<head>
+    <link href="//camel.apache.org/styles/site.css" rel="stylesheet" type="text/css">
+    <link href="//camel.apache.org/styles/type-settings.css" rel="stylesheet" type="text/css">
+    <script src="//camel.apache.org/styles/prototype.js" type="text/javascript"></script>
+    <script src="//camel.apache.org/styles/rico.js" type="text/javascript"></script>
   
+    <script src="//camel.apache.org/styles/site.js" type="text/javascript"></script>
+
+    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
+
+    <style type="text/css">
+      .maincontent { overflow:hidden; }
+    </style>
+    <!--[if IE]>
+    <style type="text/css">
+      .maincontent { width:100%; }
+    </style>
+    <![endif]-->
+
+
+  <link href='//camel.apache.org/styles/highlighter/styles/shCoreCamel.css' rel='stylesheet'
type='text/css' />
+  <link href='//camel.apache.org/styles/highlighter/styles/shThemeCamel.css' rel='stylesheet'
type='text/css' />
+  <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;
+  SyntaxHighlighter.all();
+  </script>
+
+    <title>
+    Apache Camel: Schematron
+    </title>
+</head>
+<body>
+<div class="white_box">
+<div class="header">
+  <div class="header_l">
+    <div class="header_r">
+    </div>
+  </div>
+</div>
+<div class="content">
+  <div class="content_l">
+    <div class="content_r">
+      <div>
+          <!-- Banner -->
+<div id="banner-content"><div id="asf_logo">
+	<div id="activemq_logo" style="height:108px; background:transparent url(banner.data/apache-camel-7.png)
no-repeat scroll left top;">
+            <a shape="rect" style="float:left; width:310px;display:block;text-indent:-5000px;text-decoration:none;line-height:140px;
margin-top:20px; margin-left:18px;" href="http://camel.apache.org/">Camel</a>
+            <a shape="rect" style="float:right; width:180px;display:block;text-indent:-5000px;text-decoration:none;line-height:80px;
margin-top:45px; margin-right:10px;" href="http://www.apache.org">Apache</a>
+	</div>
+</div></div>
+          <!-- Banner -->
+        <div class="top_red_bar">
+          <div id="site-breadcrumbs">
+                <!-- Breadcrumbs -->
+<a href="index.html">Apache Camel</a>&nbsp;&gt;&nbsp;<a href="documentation.html">Documentation</a>&nbsp;&gt;&nbsp;<a
href="components.html">Components</a>&nbsp;&gt;&nbsp;<a href="rest.html">Rest</a>&nbsp;&gt;&nbsp;<a
href="schematron.html">Schematron</a>
+          </div>
+          <!-- Quicklinks -->
+<div id="site-quicklinks"><p><a shape="rect" href="download.html">Download</a>
| <a shape="rect" href="javadoc.html">JavaDoc</a> | <a shape="rect" href="source.html">Source</a>
| <a shape="rect" href="discussion-forums.html">Forums</a> | <a shape="rect"
href="support.html">Support</a></p></div>
+          <!-- Quicklinks -->
+        </div>
+
+	<table border="0">
+	<tbody>
+        <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>
+</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">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+   &lt;from uri=&quot;direct:start&quot; /&gt;
+   &lt;to uri=&quot;schematron:///usr/local/sch/schematron.sch&quot; /&gt;
+   &lt;log message=&quot;Schematron validation status: ${in.header.CamelSchematronValidationStatus}&quot;
/&gt;
+   &lt;choice&gt;
+      &lt;when&gt;
+         &lt;simple&gt;${in.header.CamelSchematronValidationStatus} == &#39;SUCCESS&#39;&lt;/simple&gt;
+         &lt;to uri=&quot;mock:success&quot; /&gt;
+      &lt;/when&gt;
+      &lt;otherwise&gt;
+         &lt;log message=&quot;Failed schematron validation&quot; /&gt;
+         &lt;setBody&gt;
+            &lt;header&gt;CamelSchematronValidationReport&lt;/header&gt;
+         &lt;/setBody&gt;
+         &lt;to uri=&quot;mock:failure&quot; /&gt;
+      &lt;/otherwise&gt;
+   &lt;/choice&gt;
+&lt;/route&gt;]]></script>
+</div></div><h3 id="Schematron-Schematronrulesfilelocationgoodpractice">Schematron
rules file location good practice</h3><p>Schematron rules can change with business
requirement, as such it is recommended to store these rules somewhere in file system. When
the schematron component endpoint is started, the rules are compiled into XSLT as a &#160;Java
Template Object. This is done only once to minimise the overhead of instantiating Java Template
object which can be an expensive operation for large set of rules and given that the process
goes through four pipelines of&#160;<a shape="rect" class="external-link" href="http://www.schematron.com/implementation.html"
rel="nofollow">XSLT transformations</a></p><h3 id="Schematron-Brieftutorialofschematron">Brief
tutorial of schematron</h3><p>Here is an example of schematron rules</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader
pdl" style="border-bottom-width: 1px;"><b>schematron rules</b></div><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;schema xmlns=&quot;http://purl.oclc.org/dsdl/schematron&quot;&gt;
+   &lt;title&gt;Check Sections 12/07&lt;/title&gt;
+   &lt;pattern id=&quot;section-check&quot;&gt;
+      &lt;rule context=&quot;section&quot;&gt;
+         &lt;assert test=&quot;title&quot;&gt;This section has no title&lt;/assert&gt;
+         &lt;assert test=&quot;para&quot;&gt;This section has no paragraphs&lt;/assert&gt;
+      &lt;/rule&gt;
+   &lt;/pattern&gt;
+&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: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;
+      &lt;svrl:text&gt;A chapter should have a title&lt;/svrl:text&gt;
+   &lt;/svrl:failed-assert&gt;
+   &lt;svrl:fired-rule context=&quot;chapter&quot; /&gt;
+   &lt;svrl:failed-assert test=&quot;title&quot; location=&quot;/doc[1]/chapter[2]&quot;&gt;
+      &lt;svrl:text&gt;A chapter should have a title&lt;/svrl:text&gt;
+   &lt;/svrl:failed-assert&gt;
+   &lt;svrl:fired-rule context=&quot;chapter&quot; /&gt;
+&lt;/svrl:schematron-output&gt;]]></script>
+</div></div><h3 id="Schematron-LinkstoSchematronresources">Links to Schematron
resources</h3><ul><li><a shape="rect" class="external-link" href="http://www.mulberrytech.com/papers/schematron-Philly.pdf"
rel="nofollow">Introduction to Schematron</a> by Mulleberry technologies. An excellent
document in PDF to get you started on Schematron.</li><li><a shape="rect" class="external-link"
href="http://www.schematron.com" rel="nofollow">Schematron official site</a>. This
contains links to other resources</li></ul><p>&#160;</p><p>&#160;</p><p>&#160;</p></div>
+        </td>
+        <td valign="top">
+          <div class="navigation">
+            <div class="navigation_top">
+                <!-- NavigationBar -->
+<div class="navigation_bottom" id="navigation_bottom"><h3 id="Navigation-Overview"><a
shape="rect" href="overview.html">Overview</a></h3><ul class="alternate"><li><a
shape="rect" href="index.html">Home</a></li><li><a shape="rect" href="download.html">Download</a></li><li><a
shape="rect" href="getting-started.html">Getting Started</a></li><li><a
shape="rect" href="faq.html">FAQ</a></li></ul><h3 id="Navigation-Documentation"><a
shape="rect" href="documentation.html">Documentation</a></h3><ul class="alternate"><li><a
shape="rect" href="user-guide.html">User Guide</a></li><li><a shape="rect"
href="manual.html">Manual</a></li><li><a shape="rect" href="books.html">Books</a></li><li><a
shape="rect" href="tutorials.html">Tutorials</a></li><li><a shape="rect"
href="examples.html">Examples</a></li><li><a shape="rect" href="cookbook.html">Cookbook</a></li><li><a
shape="rect" href="architecture.html">Architecture</a></li><li><a
shape="rect" href="enterprise-integration-patterns.html">Enterprise
  Integration Patterns</a></li><li><a shape="rect" href="dsl.html">DSL</a></li><li><a
shape="rect" href="components.html">Components</a></li><li><a shape="rect"
href="data-format.html">Data Format</a></li><li><a shape="rect" href="languages.html">Languages</a></li><li><a
shape="rect" href="security.html">Security</a></li><li><a shape="rect"
href="security-advisories.html">Security Advisories</a></li></ul><h3
id="Navigation-Search">Search</h3><form enctype="application/x-www-form-urlencoded"
method="get" id="cse-search-box" action="http://www.google.com/cse">
+  <div>
+    <input type="hidden" name="cx" value="007878419884033443453:m5nhvy4hmyq">
+    <input type="hidden" name="ie" value="UTF-8">
+    <input type="text" name="q" size="21">
+    <input type="submit" name="sa" value="Search">
+  </div>
+</form>
+<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script><h3
id="Navigation-Community"><a shape="rect" href="community.html">Community</a></h3><ul
class="alternate"><li><a shape="rect" href="support.html">Support</a></li><li><a
shape="rect" href="contributing.html">Contributing</a></li><li><a
shape="rect" href="discussion-forums.html">Discussion Forums</a></li><li><a
shape="rect" href="mailing-lists.html">Mailing Lists</a></li><li><a
shape="rect" href="user-stories.html">User Stories</a></li><li><a
shape="rect" href="news.html">News</a></li><li><a shape="rect" href="articles.html">Articles</a></li><li><a
shape="rect" href="site.html">Site</a></li><li><a shape="rect" href="team.html">Team</a></li><li><a
shape="rect" class="external-link" href="http://camel-extra.googlecode.com/" rel="nofollow">Camel
Extra</a></li></ul><h3 id="Navigation-Developers"><a shape="rect"
href="developers.html">Developers</a></h3><ul class="alternate"
 ><li><a shape="rect" href="developers.html">Developer Guide</a></li><li><a
shape="rect" href="source.html">Source</a></li><li><a shape="rect"
href="building.html">Building</a></li><li><a shape="rect" href="javadoc.html">JavaDoc</a></li><li><a
shape="rect" href="irc-room.html">IRC Room</a></li></ul><h3 id="Navigation-ApacheSoftwareFoundation">Apache
Software Foundation</h3><ul class="alternate"><li><a shape="rect" class="external-link"
href="http://www.apache.org/licenses/">License</a></li><li><a shape="rect"
class="external-link" href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li><li><a
shape="rect" class="external-link" href="http://www.apache.org/foundation/thanks.html">Thanks</a></li><li><a
shape="rect" class="external-link" href="http://www.apache.org/security/">Security</a></li></ul></div>
+                <!-- NavigationBar -->
+            </div>
+          </div>
+        </td>
+        </tr>
+	</tbody>
+        </table>
+
+
+        <div class="bottom_red_bar"></div>
+      </div>
+    </div>
+  </div>
+</div>
+<div class="black_box">
+<div class="footer">
+  <div class="footer_l">
+    <div class="footer_r">
+      <div>
+        <a href="$base/privacy-policy.html">Privacy Policy</a> -
+        (<a href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=46632340">edit
page</a>)
+   	 (<a href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=46632340&amp;showComments=true&amp;showCommentArea=true#addcomment">add
comment</a>)
+      </div>
+    </div>
+  </div>
+</div>
+</div>
+</div>
+<div class="design_attribution">
+&copy; 2004-2014 The Apache Software Foundation.
+<br>          
+Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are
trademarks of The Apache Software Foundation.  All other marks mentioned may be trademarks
or registered trademarks of their respective owners.
+<br>
+<a href="http://hiramchirino.com">Graphic Design By Hiram</a>
+</div>
+
+<!-- Camel committers that would like access to the Analytics, send a note to private@camel.apache.org
-->
+<script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-25976253-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+  })();
+
+</script>
+
+</body>
+</html>
+
+



Mime
View raw message