jitendra.kotamr...@sun.com wrote on 04/12/2010 02:02:23 PM: > Michael Glavassevich wrote: > > > > Hi Hansgerd, > > > > XML Schema processors are not required to follow an import for a > > namespace it's already seen and Xerces will not follow such imports by > > default. You would need to enable the "honour-all-schemaLocations" [1] > > feature to get the behaviour you want or add an include to "xsd3.xsd" > > in "xsd1.xsd" (as you've already discovered). The latter solution > > being the one I would go with if I were publishing my schema for > > others to use with potentially any XML Schema processor (not just > > Xerces or XMLSpy). > > > Even this latter solution doesn't seem to work with JDK5( but works with > JDK6). Is that correct ? The reason may be that JDK5 is using older > xerces version.
I wouldn't know. I never use either version. What gets included in the JDK has been forked and changed in all sorts of ways that we wouldn't be aware of. I can only speak for what Apache Xerces does. > thanks, > Jitu > > > > > > Thanks. > > > > [1] > > http://xerces.apache.org/xerces2-j/features.html#honour-all-schemaLocations > > > > Michael Glavassevich > > XML Parser Development > > IBM Toronto Lab > > E-mail: mrgla...@ca.ibm.com > > E-mail: mrgla...@apache.org Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org