Where does xsd:attribute declaration go in global xsd:complexType?
问题 I want to declare an attribute of an element already defined. I would like that the element person could have 2 attributes ( name , id ) I have this: <xs:element name="person" type="perso" /> <xs:complexType name="perso"> <!-- I tried to declare the attribute here.Not working--> <xs:sequence> <!-- I tried to declare the attribute here.Not working--> <xs:element name="description" type="xs:string" /> </xs:sequence> </xs:complexType> I am looking to declare a global, not local, complex type. I