0 Replies - 3423 Views - Last Post: 01 December 2012 - 05:29 PM Rate Topic: -----

#1 zeion   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 23-September 12

XQuery XML Universal Quantifier Help

Posted 01 December 2012 - 05:29 PM


I'm not sure if this is the right section to ask but,

I need help with using universal quantifier in XQuery.
I have a set of strings like ("yes", "no, "yes", "no") and I need it to check if every element is "yes"

I have:

if (every $answer in $list satisfies ($answer='yes'))
then ...
else ()

But it is a lexing error.

I have also tried

$answer eq yes
without brackets etc..

What should be the correct syntax?


Is This A Good Question/Topic? 0
  • +

Page 1 of 1