Thanks for the timely response. The news is disappointing. We have a data driven system that uses the parser to validate portions of our data. With 1.1, we could have done a lot more.
We need both the JAXP validation (which works) and the XS library (which does not work) for extracting annotation information from the XSD. So, we will use plan B instead. -David From: Michael Glavassevich [mailto:[email protected]] Sent: Monday, April 23, 2012 3:51 PM To: [email protected] Subject: Re: How do I load an XSD 1.1 Schema using the XSloader? Andrew Welch <[email protected]<mailto:[email protected]>> wrote on 23/04/2012 03:33:23 PM: > From: Andrew Welch <[email protected]<mailto:[email protected]>> > To: [email protected]<mailto:[email protected]>, > Date: 23/04/2012 03:33 PM > Subject: Re: How do I load an XSD 1.1 Schema using the XSloader? > > On 23 April 2012 19:31, David Glaser > <[email protected]<mailto:[email protected]>> wrote: > > I tried to load an XSD conforming to Version 1.1 using the QueryXS.java > > sample and it refuses to load an XSD containing a single “assert” element. > > > > > > > > I used the getRecognizedVersions() method of the XSImplementationobject to > > determine what versions are supported and it reports “1.0”. > > > > > > > > T then tried to create a new string list that has “1.0” and “1.1” and then > > passed the string list to the createXSLoader method. It threw an exception > > saying > > > > > > > > “FEATURE_NOT_SUPPORTED: The parameter 1.1 is recognized but the requested > > value cannot be set”. > > > > > > > > So, how do I get an XSLoader that will load a 1.1 xsd? > > Are you sure you've got the 2.11 version that supports xsd 1.1 ? > There are 2 versions of 2.11.0, one that supports xsd 1.0, and one > that supports xsd 1.1. Support for the XML Schema 1.1 component model [1] isn't complete. The intent was to only support the JAXP Validation API [2] initially, so would be surprised if you can find a way to get the XSLoader to accept an XML Schema document with XML Schema 1.1 language features. Certainly something I'd like to see working in the future but it's not ready for prime time yet. > -- > Andrew Welch > http://andrewjwelch.com<http://andrewjwelch.com/> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [email protected]<mailto:[email protected]> > For additional commands, e-mail: > [email protected]<mailto:[email protected]> Thanks. [1] https://issues.apache.org/jira/browse/XERCESJ-1362 [2] http://wiki.apache.org/xerces/Xerces-J%3A_XML_Schema_1.1_Design_Thoughts Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: [email protected]<mailto:[email protected]> E-mail: [email protected]<mailto:[email protected]>
