Hi Mukul, The version attribute which you can add to <xs:schema> is for user convenience only, I suppose as a possible mechanism for versioning their schemas. This attribute has no semantics defined for it. Aside from checking that its value is a valid xs:token it's going to be ignored by Xerces. It's the identifier you pass to SchemaFactory.newInstance() which determines whether you get an XML Schema 1.0 or 1.1 processor. More details on this are on the Wiki [1].
Thanks. [1] http://wiki.apache.org/xerces/Xerces-J:_XML_Schema_1.1_Design_Thoughts Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected] "Mukul Gandhi" <[email protected]> wrote on 12/17/2008 11:53:36 AM: > On Wed, Dec 17, 2008 at 10:20 PM, Mukul Gandhi <[email protected]> wrote: > > 2) Even without specifying version="1.1" in the Schema, type > > alternatives are recognized > > I think this is because, we specified following in the file, > XMLSchema11Test.java > > System.setProperty("javax.xml.validation.SchemaFactory:http://www. > w3.org/XML/XMLSchema/v1.1", > "org.apache.xerces.jaxp.validation.XMLSchema11Factory"); > SchemaFactory sf = > SchemaFactory.newInstance("http://www.w3.org/XML/XMLSchema/v1.1"); > > > -- > Regards, > Mukul Gandhi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]
