XSD conditional type assignment default type confusion?
问题 I try to design a XSD with CTA. I have the following XML: <?xml version="1.0" encoding="UTF-8"?> <persons xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test.xsd"> <person version="1"> <firstname>toto</firstname> <lastname>tutu</lastname> </person> <person version="2"> <firstname>toto</firstname> <lastname>tutu</lastname> <birthdate>2017-12-18</birthdate> </person> </persons> The XSD looks like: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns