[jbosstools-issues] [JBoss JIRA] (JBIDE-23045) xml validator can't find xsd even though it's specified in xml file

Viacheslav Kabanovich (JIRA) issues at jboss.org
Thu Sep 1 17:15:02 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-23045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287721#comment-13287721 ] 

Viacheslav Kabanovich commented on JBIDE-23045:
-----------------------------------------------

[~jludvice], no, xsi:schemaLocation is only one way to do it. As a user you can make a local copy of the schema and add an entry to XML Catalog for URI of the schema. As a developer you can provide a copy of schema with some Eclipse plugin and add the entry to XML Catalog with extension point "org.eclipse.wst.xml.core.catalogContributions".
So yes, the Eclipse's XML validator is smart and looks into the XML catalog, but to be found schemas must be registered for exactly the same URI as is referenced in XML file. 

> xml validator can't find xsd even though it's specified in xml file
> -------------------------------------------------------------------
>
>                 Key: JBIDE-23045
>                 URL: https://issues.jboss.org/browse/JBIDE-23045
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: upstream
>    Affects Versions: 4.4.0.Final
>            Reporter: Josef Ludvicek
>            Assignee: Rob Stryker
>             Fix For: 4.4.x
>
>         Attachments: examle-blueprint.xml
>
>
> RHDS xml validator can't find xsd schema in following xml file => validation doesn't work
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
>         license agreements. See the NOTICE file distributed with this work for additional 
>         information regarding copyright ownership. The ASF licenses this file to 
>         You under the Apache License, Version 2.0 (the "License"); you may not use 
>         this file except in compliance with the License. You may obtain a copy of 
>         the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
>         by applicable law or agreed to in writing, software distributed under the 
>         License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
>         OF ANY KIND, either express or implied. See the License for the specific 
>         language governing permissions and limitations under the License. -->
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>     xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
>     xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0" xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0">
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list