Check which elements are valid to appear at this point. This method also
works if the state is in error, in which case it returns what should
have been seen.
param
state the current state
return
a Vector whose entries are instances of
either XSWildcardDecl or XSElementDecl.