<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Business Validation in Oracle SOA Suite 11g using Schematron</title>
	<atom:link href="http://technology.amis.nl/2012/01/05/business-validation-in-oracle-soa-suite-11g-using-schematron/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2012/01/05/business-validation-in-oracle-soa-suite-11g-using-schematron/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=business-validation-in-oracle-soa-suite-11g-using-schematron</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Markus Zehnder</title>
		<link>http://technology.amis.nl/2012/01/05/business-validation-in-oracle-soa-suite-11g-using-schematron/#comment-7186</link>
		<dc:creator>Markus Zehnder</dc:creator>
		<pubDate>Tue, 08 May 2012 11:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=14758#comment-7186</guid>
		<description><![CDATA[Hi Emiel

There is a (hack) way to insert context information in the error messages. I hope the following checksum validation example will remain readable:
&lt;code&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
 &lt;!DOCTYPE schema [
 &lt;!ENTITY length &quot;string-length(.)&quot;&gt;
 &lt;!ENTITY diagName &#039;&lt;value-of select=&quot;name()&quot;/&gt;&#039;&gt;
 &lt;!ENTITY diagValue &#039;&lt;value-of select=&quot;.&quot;/&gt;&#039;&gt;
 ]&gt;
&lt;sch:schema xmlns=&quot;http://www.ascc.net/xml/schematron&quot; xmlns:sch=&quot;http://www.ascc.net/xml/schematron&quot; queryBinding=&quot;xslt2&quot;&gt;
     &lt;sch:pattern name=&quot;test&quot;&gt;
          &lt;sch:rule context=&quot;/UpdateRequest/Checksum&quot;&gt;
              &lt;sch:assert test=&quot;ends-with((
                                  (substring(.,&amp;length; - 8,1) * 3) +
                                  (substring(.,&amp;length; - 7,1) * 2) +
                                  (substring(.,&amp;length; - 6,1) * 7) +
                                  (substring(.,&amp;length; - 5,1) * 6) +
                                  (substring(.,&amp;length; - 4,1) * 5) +
                                  (substring(.,&amp;length; - 3,1) * 4) +
                                  (substring(.,&amp;length; - 2,1) * 3) +
                                  (substring(.,&amp;length; - 1,1) * 2)
                                ) mod 11, substring(.,&amp;length;,1))&quot;&gt;[E&#124;Checksum&#124;INVALID] Invalid value: &#039;&amp;diagValue;&#039; in field &#039;&amp;diagName;&#039;&lt;/sch:assert&gt;
          &lt;/sch:rule&gt;
     &lt;/sch:pattern&gt;
&lt;/sch:schema&gt;
&lt;/code&gt;

I&#039;m using Schematron extensively in a large OSB / SOA project and can&#039;t understand why Oracle is using a 10 year old Schematron implementation. The ISO version is way more powerful...]]></description>
		<content:encoded><![CDATA[<p>Hi Emiel</p>
<p>There is a (hack) way to insert context information in the error messages. I hope the following checksum validation example will remain readable:<br />
<code><br />
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<br />
 &lt;!DOCTYPE schema [<br />
 &lt;!ENTITY length "string-length(.)"&gt;<br />
 &lt;!ENTITY diagName '&lt;value-of select="name()"/&gt;'&gt;<br />
 &lt;!ENTITY diagValue '&lt;value-of select="."/&gt;'&gt;<br />
 ]&gt;<br />
&lt;sch:schema xmlns="http://www.ascc.net/xml/schematron" xmlns:sch="http://www.ascc.net/xml/schematron" queryBinding="xslt2"&gt;<br />
     &lt;sch:pattern name="test"&gt;<br />
          &lt;sch:rule context="/UpdateRequest/Checksum"&gt;<br />
              &lt;sch:assert test="ends-with((<br />
                                  (substring(.,&amp;length; - 8,1) * 3) +<br />
                                  (substring(.,&amp;length; - 7,1) * 2) +<br />
                                  (substring(.,&amp;length; - 6,1) * 7) +<br />
                                  (substring(.,&amp;length; - 5,1) * 6) +<br />
                                  (substring(.,&amp;length; - 4,1) * 5) +<br />
                                  (substring(.,&amp;length; - 3,1) * 4) +<br />
                                  (substring(.,&amp;length; - 2,1) * 3) +<br />
                                  (substring(.,&amp;length; - 1,1) * 2)<br />
                                ) mod 11, substring(.,&amp;length;,1))"&gt;[E|Checksum|INVALID] Invalid value: '&amp;diagValue;' in field '&amp;diagName;'&lt;/sch:assert&gt;<br />
          &lt;/sch:rule&gt;<br />
     &lt;/sch:pattern&gt;<br />
&lt;/sch:schema&gt;<br />
</code></p>
<p>I&#8217;m using Schematron extensively in a large OSB / SOA project and can&#8217;t understand why Oracle is using a 10 year old Schematron implementation. The ISO version is way more powerful&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan</title>
		<link>http://technology.amis.nl/2012/01/05/business-validation-in-oracle-soa-suite-11g-using-schematron/#comment-7143</link>
		<dc:creator>Juan</dc:creator>
		<pubDate>Wed, 11 Apr 2012 13:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=14758#comment-7143</guid>
		<description><![CDATA[Hi Emiel,

The reason why you don&#039;t get additional context information on the error messages is because of schematron.  The sch file has to be updated with  elements and the xpath function that you need to return the context value.   I use oXygen to develop and test my XSD&#039;s and SCH files, which is much easier than JDeveloper.

Extend the sample schematron something like this:

    
assert test=&quot;Xpath expression&quot;
value-of select=&quot;Xpath expression of values that you want to see&quot;
        
    ]]></description>
		<content:encoded><![CDATA[<p>Hi Emiel,</p>
<p>The reason why you don&#8217;t get additional context information on the error messages is because of schematron.  The sch file has to be updated with  elements and the xpath function that you need to return the context value.   I use oXygen to develop and test my XSD&#8217;s and SCH files, which is much easier than JDeveloper.</p>
<p>Extend the sample schematron something like this:</p>
<p>assert test=&#8221;Xpath expression&#8221;<br />
value-of select=&#8221;Xpath expression of values that you want to see&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emiel Paasschens</title>
		<link>http://technology.amis.nl/2012/01/05/business-validation-in-oracle-soa-suite-11g-using-schematron/#comment-6980</link>
		<dc:creator>Emiel Paasschens</dc:creator>
		<pubDate>Sat, 21 Jan 2012 15:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=14758#comment-6980</guid>
		<description><![CDATA[&lt;p&gt;@Sabaristi See my previous blog about Schematron (http://technology.amis.nl/blog/7933/extend-xml-document-validation-with-schematron), in which I explain that the Schematron validation is in fact a double xslt transformation.&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>@Sabaristi See my previous blog about Schematron (<a href="http://technology.amis.nl/blog/7933/extend-xml-document-validation-with-schematron" rel="nofollow">http://technology.amis.nl/blog/7933/extend-xml-document-validation-with-schematron</a>), in which I explain that the Schematron validation is in fact a double xslt transformation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sabarisri</title>
		<link>http://technology.amis.nl/2012/01/05/business-validation-in-oracle-soa-suite-11g-using-schematron/#comment-6979</link>
		<dc:creator>Sabarisri</dc:creator>
		<pubDate>Sat, 21 Jan 2012 10:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=14758#comment-6979</guid>
		<description><![CDATA[Hi Emiel,

The post was very useful. Thanks for this. I haveÂ  doubt in this.

&lt;em&gt;&quot;The namespaces of our input payload (â€œhttp://amis.nl/schematrondemo/companyâ€ and â€œhttp://amis.nl/schematrondemo/commonâ€) have to be declared. This can not be done in the normal way with a â€œxmlnsâ€ attribute, because the declarations have to â€™surviveâ€™ the double xsl transformation&quot;

&lt;/em&gt;What do u mean by &#039;survive double xsl transformation&#039; here.?]]></description>
		<content:encoded><![CDATA[<p>Hi Emiel,</p>
<p>The post was very useful. Thanks for this. I haveÂ  doubt in this.</p>
<p><em>&#8220;The namespaces of our input payload (â€œhttp://amis.nl/schematrondemo/companyâ€ and â€œhttp://amis.nl/schematrondemo/commonâ€) have to be declared. This can not be done in the normal way with a â€œxmlnsâ€ attribute, because the declarations have to â€™surviveâ€™ the double xsl transformation&#8221;</p>
<p></em>What do u mean by &#8216;survive double xsl transformation&#8217; here.?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
