Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSD publicId and schemaLocation key are different.
XSD publicId and schemaLocation key are different. [message #1070038] Wed, 17 July 2013 06:13 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 2
Registered: November 2010
Junior Member
Hello.

when i use my own xds file to xml, i got validation error message.

add xsd files in my eclipse plugin for offline environment.
<extension point="org.eclipse.wst.xml.core.catalogContributions">
	<catalogContribution>
		<public 
			publicId="httpP://www.test.com/schema/test" 
			uri="xsds/test-schema-1.0.xsd" 
			webURL="httpP://www.test.com/schema/test/test-schema-1.0.xsd">
		</public>
	</catalogContribution>
</extension>


if i add this to xml schemaLocation, i got error.
httpP://www.test.com/schema/test httpP://www.test.com/schema/test/test-schema-1.0.xsd


but, if add slash(/) to schemaLocation key, that's ok.
httpP://www.test.com/schema/test/ httpP://www.test.com/schema/test/test-schema-1.0.xsd


what is the problem?

* I add P to http for create this topic.
Re: XSD publicId and schemaLocation key are different. [message #1070062 is a reply to message #1070038] Wed, 17 July 2013 07:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
XML catalog is something supported by WTP so best to ask about it on the
eclipse.webtools forum.

On 17/07/2013 8:13 AM, Missing name Mising name wrote:
> Hello.
>
> when i use my own xds file to xml, i got validation error message.
>
> add xsd files in my eclipse plugin for offline environment.
>
> <extension point="org.eclipse.wst.xml.core.catalogContributions">
> <catalogContribution>
> <public publicId="httpP://www.test.com/schema/test"
> uri="xsds/test-schema-1.0.xsd"
> webURL="httpP://www.test.com/schema/test/test-schema-1.0.xsd">
> </public>
> </catalogContribution>
> </extension>
>
>
> if i add this to xml schemaLocation, i got error.
>
> httpP://www.test.com/schema/test
> httpP://www.test.com/schema/test/test-schema-1.0.xsd
>
>
> but, if add slash(/) to schemaLocation key, that's ok.
>
> httpP://www.test.com/schema/test/
> httpP://www.test.com/schema/test/test-schema-1.0.xsd
>
>
> what is the problem?
>
> * I add P to http for create this topic.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Stack overflow on XSD Resource save
Next Topic:Validate XML file using XSD Schema and parsing in DOM parser
Goto Forum:
  


Current Time: Thu Apr 25 05:53:00 GMT 2024

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

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

Back to the top