Hello,

Attached: or-and-marker-test.png

This rule causes testrules to show an error message:
    <rule id="or-and-marker" name="or and marker test">
      <pattern>
        <token>a</token>
        <marker>
          <or>
            <token>happy</token>
            <token>fat</token>
          </or>
         <token>cat</token>
        </marker>
      </pattern>
      <message>Test success</message>
      <short>Test</short>
      <example type="correct">The happy cat is on the mat.</example>
      <example type="incorrect">A <marker>happy cat</marker> is on the 
mat.</example>
      <example type="incorrect">A <marker>fat cat</marker> is on the 
mat.</example>
    </rule>

Testrules gives this error message: Invalid content was found starting with 
element 'or'. One of '{token, unify, and, phraseref, unify-ignore}' is expected.

However, LT seems to operate correctly, as the attached screen shot shows.

Am I doing something stupid or is there an error with testrules?

Regards,

Mike Unwalla
Contact: www.techscribe.co.uk/techw/contact.htm 



------------------------------------------------------------------------------
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to