Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumssmlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/7069/#msg_7069
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.]]>2007-02-08T16:38:04-00:00Re: smlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/569178/#msg_569178
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.
>]]>No real name2007-02-08T22:52:52-00:00Re: smlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/7094/#msg_7094
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.
>]]>No real name2007-02-08T22:52:52-00:00smlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/569216/#msg_569216
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]]>2007-02-09T15:29:54-00:00smlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/7116/#msg_7116
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]]>2007-02-09T15:29:54-00:00Re: smlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/569242/#msg_569242
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
>]]>No real name2007-02-12T21:59:22-00:00Re: smlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/7140/#msg_7140
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
>]]>No real name2007-02-12T21:59:22-00:00Re: smlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/7983/#msg_7983
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173936 is now fixed.
You can try the latest code from COSMOS CVS.
Thanks,
Ali Mehregani
"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:eqqo09$vrc$1@utils.eclipse.org...
> 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
>>
>
>]]>No real name2007-02-21T16:14:02-00:00Re: smlfn:deref in assert
https://www.eclipse.org/forums/index.php/mv/msg/2438/569523/#msg_569523
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173936 is now fixed.
You can try the latest code from COSMOS CVS.
Thanks,
Ali Mehregani
"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:eqqo09$vrc$1@utils.eclipse.org...
> 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
>>
>
>]]>No real name2007-02-21T16:14:02-00:00