Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » xsd location and import problem
xsd location and import problem [message #583351] Tue, 03 February 2004 02:21
Eclipse User
Originally posted by: cipher8000.yahoo.com

Hi Ed,

I recently upgraded to xsd 2.0, and started have few problems related to
schema location and imports:

Please find the attachment for foo.xsd. I have deployed my xsd files under
tomcat webapps ROOT/xsd folder and i refer them using this following URL:
http://localhost:7575/./xsd/foo.xsd

When i tried to validate this schema using xsd-standalone-test.bat, i get
the following:

c:>xsd-standalone-test.bat -validate http://localhost:7575/./xsd/foo.xsd
--> http://localhost:7575/./xsd/foo.xsd
Error: URI http://localhost:7575/./xsd/foo.xsd Line 1 Column 1
XSD: The element may not have duplicate name and target namespace
'http://www.foo.com/foo#foo'
Error: URI http://localhost:7575/./xsd/foo.xsd Line 1 Column 1
XSD: The element may not have duplicate name and target namespace
'http://www.foo.com/foo#fooBoo'
Error: URI http://localhost:7575/./xsd/foo.xsd Line 17 Column 4
XSD: The type may not have duplicate name and target namespace
'http://www.foo.com/foo#FooType'


But if i use without "." (http://localhost:7575/xsd/foo.xsd) , then i don't
get validation error..
c:>xsd-standalone-test.bat -validate http://localhost:7575/xsd/foo.xsd

Please find the attachment for foo.xsd and boo.xsd. i deployed these files
under tomcat's webapps/ROOT/xsd directory.

thanks in advance for your help.

-muruga



  • Attachment: foo.xsd
    (Size: 0.86KB, Downloaded 81 times)
  • Attachment: boo.xsd
    (Size: 0.87KB, Downloaded 66 times)
Previous Topic:Imported schema not resolved in wsdl
Next Topic:Retreiving the original content of an extended type
Goto Forum:
  


Current Time: Tue Sep 23 14:41:25 GMT 2014

Powered by FUDForum. Page generated in 0.02890 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software