|Validating XML file against moved schema [message #1712361]
||Fri, 23 October 2015 09:42
| Arnaud MERGEY
Registered: March 2010
I have exactly the same issue described in this bug with Mars SR1
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 ?
[Updated on: Fri, 23 October 2015 09:46]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01557 seconds