<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
This ("The filtered expression in an XSLT 2.0 pattern must be a
simple step") is an issue introduced in Saxon 9.5 (bundled with
Oxygen v15.0). ISaxon 9.5 does not accept patterns of this form for
template matching: path[boolean-predicate][1]<br>
This bug has already been reported against Saxon 9.5 and resolved in
9.5.1.1: <a class="moz-txt-link-freetext" href="https://saxonica.plan.io/issues/1812">https://saxonica.plan.io/issues/1812</a><br>
We will integrate Saxon 9.5.1.1 (or later depending on availability)
in Oxygen v15.1.<br>
<br>
Meanwhile, a workaround for v15.0 is to set the XSLT version to 3.0
in the XSLT generated from Schematron. A patch is available here:<br>
<a class="moz-txt-link-freetext" href="http://mirror.oxygenxml.com/userFiles/schematronPatch.zip">http://mirror.oxygenxml.com/userFiles/schematronPatch.zip</a><br>
Navigate to the Oxygen installation folder and in the 'lib' folder
create a folder named 'endorsed'. Place the .jar patch there:<br>
Oxygen/lib/endorsed/schematronPatch.jar<br>
After you restart Oxygen the Schematron validation should work
correctly.<br>
<br>
Regards,<br>
Adrian<br>
<br>
<pre class="moz-signature" cols="72">Adrian Buza
oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202
Fax: +40-251-461482
<a class="moz-txt-link-abbreviated" href="mailto:support@oxygenxml.com">support@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a></pre>
<br>
<div class="moz-cite-prefix">On 02.08.2013 08:15, Ananth Narayanan
wrote:<br>
</div>
<blockquote
cite="mid:BLU405-EAS316A873DC82922D416B07E2D5510@phx.gbl"
type="cite">
<style><!--
.hmmessage p {
margin:0px;
padding:0px;
}
body.hmmessage {
font-family:Calibri;
font-size:12pt;
}
--></style>
<div style="font-family:Calibri,"Segoe
UI",Meiryo,"Microsoft YaHei UI","Microsoft
JhengHei UI","Malgun Gothic","Khmer
UI","Nirmala UI",Tunga,"Lao
UI",Ebrima,sans-serif;font-size:16px;">
<div>Dear All,</div>
<div dir="ltr">
<div><br>
</div>
<div data-focusfrompointer="true">Could any one help me on how
to resolve the error, I pasted the error as an XML file
below. I am validating the XML file using rules.sch file.</div>
<div><br>
</div>
<div>--------------------</div>
<div><br>
</div>
<div><?xml version="1.0" encoding="UTF-8"?></div>
<div><report xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.oxygenxml.com/ns/report">"http://www.oxygenxml.com/ns/report"</a>></div>
<div><incident></div>
<div><engine>ISO Schematron (XSLT 2.0)</engine></div>
<div><severity>error</severity></div>
<div><description>Failed to compile stylesheet. 4 errors
detected.</description></div>
<div><systemID>C:\DATA\Rule-based
validation\rules.sch</systemID></div>
<div><operationDescription></div>
<div><mainValidationFile>C:\DATA\sample.xml</mainValidationFile></div>
<div></operationDescription></div>
<div></incident></div>
<div><incident></div>
<div><engine>ISO Schematron (XSLT 2.0)</engine></div>
<div><severity>fatal</severity></div>
<div><description>The filtered expression in an XSLT 2.0
pattern must be a simple step</description></div>
<div><systemID>C:\DATA\Rule-based
validation\rules.sch</systemID></div>
<div><operationDescription></div>
<div><mainValidationFile>C:\DATA\sample.xml</mainValidationFile></div>
<div></operationDescription></div>
<div></incident></div>
<div><incident></div>
<div><engine>ISO Schematron (XSLT 2.0)</engine></div>
<div><severity>fatal</severity></div>
<div><description>The filtered expression in an XSLT 2.0
pattern must be a simple step</description></div>
<div><systemID>C:\DATA\Rule-based
validation\rules.sch</systemID></div>
<div><operationDescription></div>
<div><mainValidationFile>C:\DATA\sample.xml</mainValidationFile></div>
<div></operationDescription></div>
<div></incident></div>
<div><incident></div>
<div><engine>ISO Schematron (XSLT 2.0)</engine></div>
<div><severity>fatal</severity></div>
<div><description>The filtered expression in an XSLT 2.0
pattern must be a simple step</description></div>
<div><systemID>C:\DATA\Rule-based
validation\rules.sch</systemID></div>
<div><operationDescription></div>
<div><mainValidationFile>C:\DATA\sample.xml</mainValidationFile></div>
<div></operationDescription></div>
<div></incident></div>
<div><incident></div>
<div><engine>ISO Schematron (XSLT 2.0)</engine></div>
<div><severity>fatal</severity></div>
<div><description>The filtered expression in an XSLT 2.0
pattern must be a simple step</description></div>
<div><systemID>C:\DATA\Rule-based
validation\rules.sch</systemID></div>
<div><operationDescription></div>
<div><mainValidationFile>C:\DATA\sample.xml</mainValidationFile></div>
<div></operationDescription></div>
<div></incident></div>
<div><incident></div>
<div><engine>ISO Schematron (XSLT 2.0)</engine></div>
<div><severity>fatal</severity></div>
<div><description>Got a fatal error trying to create a
transformer from the stylesheet!</description></div>
<div><systemID>C:\DATA\sample.xml</systemID></div>
<div><operationDescription></div>
<div><mainValidationFile>C:\DATA\sample.xml</mainValidationFile></div>
<div></operationDescription></div>
<div></incident></div>
<div></report></div>
<div><br>
</div>
<div>-------------</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>Anantha</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Adrian Buza
oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202
Fax: +40-251-461482
<a class="moz-txt-link-abbreviated" href="mailto:support@oxygenxml.com">support@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a></pre>
</body>
</html>