XSD1.1 alternative test and errors

2010-05-03 Thread yoann moranville
Dear all, I am facing an issue while validating using XSD1.1. I want to decide on the type of an element depending on one of its attribute value: Now that works, both types "myElement.value1" and "myElement.value2" are complex types. However, I realized that if I have @attribute = '

Re: XSD1.1 alternative test and errors

2010-05-03 Thread Michael Glavassevich
Hi Yoann, Are you using a binary built from the XML Schema 1.1 development branch [1]? We're still working on implementing these features. It's possible support for xs:error isn't there yet or isn't correct. I haven't looked at this much though. Khaled, Mukul and/or Hiranya would probably have mo

Re: XSD1.1 alternative test and errors

2010-05-03 Thread Khaled Noaman
Hi Yoann, It seems you are getting the desired behavior, i.e. the type assigned to the element is xs:error. Since xs:error is just a special simple type definition, whose name is error in the XSD namespace, Xerces-J is throwing the right error message (no attributes are allowed for simple types