Se è presente l'attributo "ref", gli attributi "type" e gli elementi "complexType", "simpleType", "key", "keyref" e "unique" non possono essere presenti.
Click to search this error in Google
English version
When the 'ref' attribute is present the 'type' attribute and the 'complexType', 'simpleType', 'key', 'keyref' and 'unique' elements cannot be present.