| 
| smlfn:deref in assert [message #7069] | Thu, 08 February 2007 11:38  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: ana.manole.gmail.com 
 Hi,
 
 when using deref in the test attribute of an assert (as below), I get
 java.lang.NoSuchMethodException: For extension function, could not find
 method org.apache.xml.utils.NodeVector.deref([ExpressionContext,] ).
 
 any hints?
 <xs:element name="SecurePayrollApplication" type="ex:ApplicationType">
 <xs:annotation>
 <xs:appinfo>
 <sch:schema>
 <sch:ns prefix="smlfn"
 uri="http://schemas.serviceml.org/sml/function/2006/07"/>
 <sch:pattern id="Firewall">
 <sch:rule context=".">
 <sch:assert test=
 "smlfn:deref(HostOSRef)/ex:FirewallEnabled='true'">
 Firewall is not enabled on the host operating system
 </sch:assert>
 </sch:rule>
 </sch:pattern>
 </sch:schema>
 </xs:appinfo>
 </xs:annotation>
 </xs:element>
 
 Thanks.
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
| 
| Re: smlfn:deref in assert [message #569178 is a reply to message #7069] | Thu, 08 February 2007 17:52  |  | 
| Eclipse User  |  |  |  |  | Hi Ana, 
 Are you using the most up-to-date code from
 http://wiki.eclipse.org/images/8/8f/Backup-v2.zip?
 If you're still experiencing the same problem, please attach the entire file
 that you're trying to validate.
 
 Thanks,
 Ali Mehregani
 
 "Ana M" <ana.manole@gmail.com> wrote in message
 news:a8fbf68f69e0e059a075a57f116f8add$1@www.eclipse.org...
 >
 > Hi,
 >
 > when using deref in the test attribute of an assert (as below), I get
 > java.lang.NoSuchMethodException: For extension function, could not find
 > method org.apache.xml.utils.NodeVector.deref([ExpressionContext,] ).
 >
 > any hints?
 > <xs:element name="SecurePayrollApplication" type="ex:ApplicationType">
 >    <xs:annotation>
 >      <xs:appinfo>
 >        <sch:schema>
 >          <sch:ns prefix="smlfn"
 > uri="http://schemas.serviceml.org/sml/function/2006/07"/>
 >          <sch:pattern id="Firewall">
 >            <sch:rule context=".">
 >              <sch:assert test=
 >                       "smlfn:deref(HostOSRef)/ex:FirewallEnabled='true'">
 >                Firewall is not enabled on the host operating system
 >              </sch:assert>
 >            </sch:rule>
 >          </sch:pattern>
 >        </sch:schema>
 >      </xs:appinfo>
 >    </xs:annotation>
 > </xs:element>
 >
 > Thanks.
 >
 |  |  |  | 
| 
| smlfn:deref in assert [message #569216 is a reply to message #7094] | Fri, 09 February 2007 10:29  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: ana.manole.gmail.com 
 Hi,
 my fault it was just a wrong namespace.
 
 but I have another question:
 
 When having a pattern with 2 rules, the validation results change
 depending on rule's order and results given are wrong.
 
 If the pattern has only one rule the results are as expected.
 
 What should I use in this case?
 
 Thanks
 |  |  |  | 
| 
| Re: smlfn:deref in assert [message #569242 is a reply to message #7116] | Mon, 12 February 2007 16:59  |  | 
| Eclipse User  |  |  |  |  | You're right Ana.  The validator appears to only evaluate the first rule of a schematron pattern.  I've opened the following defect and I will have it
 resolved shortly:  https://bugs.eclipse.org/bugs/show_bug.cgi?id=173936
 
 Thanks for reporting the error.
 
 "Ana M" <ana.manole@gmail.com> wrote in message
 news:a4fe04c08b6b0cda2aa9015989ac1dfa$1@www.eclipse.org...
 > Hi,
 > my fault it was just a wrong namespace.
 >
 > but I have another question:
 >
 > When having a pattern with 2 rules, the validation results change
 > depending on rule's order and results given are wrong.
 >
 > If the pattern has only one rule the results are as expected.
 >
 > What should I use in this case?
 >
 > Thanks
 >
 |  |  |  | 
|  | 
Powered by 
FUDForum. Page generated in 0.41634 seconds