processContents strict vs lax vs skip for xsd:any

Because the XSD specifies

<any processContents="strict" />

in the content model of aspect, your XML is invalid due to processContents="strict", which requires that the XML processor must be able to obtain the XSD definition for, in this case, security and must be able to validate it.

If you change this to

<any processContents="lax" />

your XML will be valid, and if you come to define security in your XSD, the definition will be used during validation. (If the definition cannot be found, your document will still be considered to be valid.) This requires that the content be valid only if XML processor can find its definition.

If you change this to

<any processContents="skip" />

your XML will be valid and the XML processor will make no attempt to validate the children content under aspect (other than that requiring it to be some single element per the sequence constraint).

Notes: