[
https://issues.jboss.org/browse/JGRP-2022?page=com.atlassian.jira.plugin....
]
Manuel Dominguez Sarmiento commented on JGRP-2022:
--------------------------------------------------
You're thinking of XML validation, not XSD (schema) validation. The resources are
valid XML, however they are invalid XSD.
Create a new project in Eclipse (any kind will do), and make sure you have XML Schema
Validator turned on (Preferences -> Validation -> check that "XML Schema
Validator" is enabled). Copy the three attached files into the project, and you will
get the following errors as soon as validation completes:
src-resolve.4.1: Error resolving component 'RelayConfigurationType'. It was
detected that 'RelayConfigurationType' has no namespace, but components with no
target namespace are not referenceable from schema document
'file:///Users/Manuel/Development/workspace-mars/Test/WebContent/relay.xsd'. If
'RelayConfigurationType' is intended to have a namespace, perhaps a prefix needs
to be provided. If it is intended that 'RelayConfigurationType' has no namespace,
then an 'import' without a "namespace" attribute should be added to
'file:///Users/Manuel/Development/workspace-mars/Test/WebContent/relay.xsd'.
src-resolve.4.1: Error resolving component 'ConfigType'. It was detected that
'ConfigType' has no namespace, but components with no target namespace are not
referenceable from schema document
'file:///Users/Manuel/Development/workspace-mars/Test/WebContent/jgroups.xsd'. If
'ConfigType' is intended to have a namespace, perhaps a prefix needs to be
provided. If it is intended that 'ConfigType' has no namespace, then an
'import' without a "namespace" attribute should be added to
'file:///Users/Manuel/Development/workspace-mars/Test/WebContent/jgroups.xsd'.
src-resolve.4.1: Error resolving component 'ForkStacksType'. It was detected that
'ForkStacksType' has no namespace, but components with no target namespace are not
referenceable from schema document
'file:///Users/Manuel/Development/workspace-mars/Test/WebContent/fork-stacks.xsd'.
If 'ForkStacksType' is intended to have a namespace, perhaps a prefix needs to be
provided. If it is intended that 'ForkStacksType' has no namespace, then an
'import' without a "namespace" attribute should be added to
'file:///Users/Manuel/Development/workspace-mars/Test/WebContent/fork-stacks.xsd'.
XSD schemas do not properly validate
------------------------------------
Key: JGRP-2022
URL:
https://issues.jboss.org/browse/JGRP-2022
Project: JGroups
Issue Type: Bug
Affects Versions: 3.6.8
Reporter: Manuel Dominguez Sarmiento
Assignee: Bela Ban
Priority: Minor
Fix For: 4.0
Attachments: fork-stacks.xsd, jgroups.xsd, relay.xsd
Affected resources:
- jgroups.xsd
- relay.xsd
- fork-stacks.xsd
Paste these files into an Eclipse project, or run them through Oxygen XML or any other
XML / XSD validator, you will get errors relating to src-resolve.4.1
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)