An <element> with no referenced or included type definition will correspond to an element declaration which has the same type definition as the first substitution-group head named in the substitutionGroup [attribute], if present, otherwise xs:anyType.
The following valid XML schema:
produces the following error message:
The relevant section of the XML Schema standard is:
https://www.w3.org/TR/xmlschema11-1/#declare-element