Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Validating XML file against moved schema
Validating XML file against moved schema [message #1712361] Fri, 23 October 2015 05:42 Go to next message
Eclipse UserFriend
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 05:46] by Moderator

Re: Validating XML file against moved schema [message #1712433 is a reply to message #1712361] Sat, 24 October 2015 09:30 Go to previous message
Eclipse UserFriend
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: Sun Jul 27 09:01:58 EDT 2025

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

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

Back to the top