Hi all, I tried XML Schema 1.1 validation (using latest Xerces-J xml-schema-1.1-dev code from SVN) with following examples:
XSD 1.1 document <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="test" type="xs:anyType"> <xs:alternative test="@type='I'" type="xs:integer"/> <xs:alternative test="@type='S'" type="xs:string"/> <xs:alternative test="@type='F'" type="xs:float"/> <xs:alternative type="xs:string"/> </xs:element> </xs:schema> XML document <test type="I">abc</test> With the above example, Xerces reports the XML document as valid. Shouldn't the validation fail in this case (since value 'abc' is not an integer)? Would this be a bug, that needs to be fixed? -- Regards, Mukul Gandhi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
