Jaume, could you comment on this? I think you added support for <or>. Can we just relax the XML syntax?
Regards Daniel On 2015-05-28 17:05, Mike Unwalla wrote: > 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? ------------------------------------------------------------------------------ _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel