Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Validating XML file against moved schema
Validating XML file against moved schema [message #1712361] Fri, 23 October 2015 09:42 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 220
Registered: March 2010
Location: France
Senior Member
Hello

I have exactly the same issue described in this bug with Mars SR1
https://bugs.eclipse.org/bugs/show_bug.cgi?id=474741

It can be reproduced with attached xml fle.

I tried to workaround it by updating my file and replacing http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd with https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd

unfortunately it still displays error because other schemas http://cxf.apache.org/schemas/blueprint/jaxrs.xsd and http://cxf.apache.org/schemas/blueprint/core.xsd also use blueprint with http instead of https.

I also tried to add this in XML catalog

Entry element: Rewrite
Start string: http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
Rewrite prefix: https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
Key type: System ID

So it seems to well use https instead of http, but unfortunately it still fails with

"derivation-ok-restriction.2.1.2:Error for tpye 'Tinlined-reference'. The attribute use 'depends-on' on this type has type 'TdependsOn",which is not validly derived from 'TdependsOn',the type of the matching attribute use in the base type.
derivation-ok-restriction.2.1.2:Error for tpye 'Tinlined-reference-list'. The attribute use 'depends-on' on this type has type 'TdependsOn",which is not validly derived from 'TdependsOn',the type of the matching attribute use in the base type."

blueprint xsd is ok, and the error is gone if in my file I remove elements prefixed with cxf or elements prefix with jaxrs.

It seems there is a bug in validation, it is caused by the fact that both cxf jaxrs and core schemas use same blueprint schemas themself

Do you know any way to workaround this issue, annd be able to have completion and no validation error in my file as everything is valid ?

thanks

[Updated on: Fri, 23 October 2015 09:46]

Report message to a moderator

Re: Validating XML file against moved schema [message #1712433 is a reply to message #1712361] Sat, 24 October 2015 13:30 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 220
Registered: March 2010
Location: France
Senior Member
As almost all osgi schemas has been moved from http to https, I have now all my declarative service component files displayed with validation error unless I set schemaLocation with https instead of http
Previous Topic:Eclipse Luna - Generate XML from XSD missing
Next Topic:How to enable Javascript syntax checker?
Goto Forum:
  


Current Time: Mon Jun 25 02:47:58 GMT 2018

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

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

Back to the top