Menu

#2 one-of token issue

open
nobody
None
5
2012-09-14
2012-09-14
mehdi
No

<rule id="task">
<item>can you</item>
<one-of>
<item>on<tag> state = HIGH </tag></item>
<item>off<tag> state = LOW </tag></item>
</one-of>
<item>please</item>
</rule>

never get matched, but

<rule id="task">
<item>can you</item>
<one-of>
<item>on<tag> state = HIGH </tag></item>
<item>off<tag> state = LOW </tag></item>
</one-of>
</rule>

can be matched

Discussion

  • mehdi

    mehdi - 2012-09-14

    complete Grammar never matched

     
  • mehdi

    mehdi - 2012-09-14

    Actually, the previous code works BUT the real bug is if the <one-of> is on a ruleref. Then, all elements following the ruleref will never been matched

     

Log in to post a comment.