Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » xsd location and import problem
xsd location and import problem [message #583351] Mon, 02 February 2004 21:21
Eclipse UserFriend
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 170 times)
  • Attachment: boo.xsd
    (Size: 0.87KB, Downloaded 169 times)
Previous Topic:Imported schema not resolved in wsdl
Next Topic:Retreiving the original content of an extended type
Goto Forum:
  


Current Time: Thu Jul 03 19:39:42 EDT 2025

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

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

Back to the top