[
https://issues.jboss.org/browse/JBIDE-23045?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich edited comment on JBIDE-23045 at 8/30/16 3:00 AM:
------------------------------------------------------------------------
I see warning "No grammar constraints (DTD or XML Schema) referenced in the
document.".
Attributes
{code}
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
https://osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://karaf.apache.org/xmlns/jaas/v1.0.0 http://karaf.apache.org/xmlns/jaas/v1.0.0
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0
http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.0.0.xsd"
{code}
added to the root element help to fix the warning. After that I see two errors for
example-blueprint.xml:
- Attribute 'id' is not allowed to appear in element 'jaas:config'.
- Invalid content was found starting with element 'jaas:keystore'.
That seems reasonable to me: the referenced jaas schema defines only attributes
'name' and 'rank' for 'config', and 'keystore' should be a
child of 'blueprint', not 'config'.
was (Author: scabanovich):
I see warning "No grammar constraints (DTD or XML Schema) referenced in the
document.".
Attributes
{code}
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
https://osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://karaf.apache.org/xmlns/jaas/v1.0.0 http://karaf.apache.org/xmlns/jaas/v1.0.0
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0
http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.0.0.xsd"
{code}
added to the root element help to fix the warning. After that I see two errors for
example-blueprint.xml:
- Attribute 'id' is not allowed to appear in element 'jaas:config'.
- Invalid content was found starting with element 'jaas:keystore'.
That seems reasonable to me: the referenced jaas schema defines only attributes
'name' and 'rank' for 'config', and 'keystore' should be a
child of 'blueprint', not 'config.
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....
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)