Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Eclipse Validator Shows False errors(Eclipse Validator Showing False errors)
Eclipse Validator Shows False errors [message #1221482] Tue, 17 December 2013 20:04 Go to next message
steve@doitnext.com Mising name is currently offline steve@doitnext.com Mising name
Messages: 2
Registered: December 2013
Junior Member
I have placed a Spring Schema extension in one of my Jar files and mapped it correctly using the spring.schemas and spring.handlers. I have made the XSD for the extension available on the web. yet when I edit an XML file that uses the extension schema I get a little red X in the right hand side with the following info in the popupup:

Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'access:access-rules'.
- schema_reference.4: Failed to read schema document 'http:\//mcon.cloud.go.com/schema/filter/access-rules-1.0.xsd', because 1) could not find the document;
2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

Yet the project builds and other projects are able to use this schema in their spring shemas albeit with the little red x in their editor when they look at the spring config .xml files.

The public location of the XSD is: http:\//mcon.cloud.go.com/mcon-filters/schemas/access-rules-1.0.xsd



And the XML I am using in my spring config is (with obfuscated links to prevent the You can only use links to the eclipse.org sites while you have fewer than 5 messages issue ):
<beans xmlns="http:\//www.springframework.org/schema/beans"
	xmlns:context="http:\//www.springframework.org/schema/context"
	xmlns:xsi="http:\//www.w3.org/2001/XMLSchema-instance" 
	xmlns:util="http:\//www.springframework.org/schema/util" 
	xmlns:access="http:\//mcon.cloud.go.com/mcon-filters/schemas/access-rules"
	xsi:schemaLocation="http:\//www.springframework.org/schema/beans 
		    http:\//www.springframework.org/schema/beans/spring-beans-3.0.xsd 
            http:\//www.springframework.org/schema/aop 
            http:\//www.springframework.org/schema/aop/spring-aop-3.0.xsd 
            http:\//www.springframework.org/schema/context 
            http:\//www.springframework.org/schema/context/spring-context-3.0.xsd 
            http:\//www.springframework.org/schema/util 
            http:\//www.springframework.org/schema/util/spring-util-3.0.xsd
            http:\//mcon.cloud.go.com/mcon-filters/schemas/access-rules
            http:\//mcon.cloud.go.com/mcon-filters/schemas/access-rules-1.0.xsd" >
            
   <access:access-rules  id="V3AccessRules" mustAllow="true">
   		<access:scope-matching name="rule1" matching-logic="ANY">
   			<access:urls>
   				<access:pattern>.*(A?)</access:pattern>
   			</access:urls>
   			<access:scopes>
   				<access:pattern>ALD</access:pattern>
   			</access:scopes>
   		</access:scope-matching>
   		<access:clientScope-matching name="rule2" matching-logic="ANY">
   			<access:urls>
   				<access:pattern>.*(A?)</access:pattern>
   			</access:urls>
   			<access:scopes>
   				<access:pattern>ALF</access:pattern>
   			</access:scopes>
   		</access:clientScope-matching>
   </access:access-rules>
</beans>

The red x appears next to: <access:access-rules id="V3AccessRules" mustAllow="true">
Re: Eclipse Validator Shows False errors [message #1222115 is a reply to message #1221482] Thu, 19 December 2013 17:43 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26126
Registered: July 2009
Senior Member
Steve,

This is a more a question to direct to the Web Tools forum. The XSD
model doesn't do instance validation like what you show in this posting.

On 17/12/2013 9:04 PM, steve@xxxxxxxx Mising name wrote:
> I have placed a Spring Schema extension in one of my Jar files and
> mapped it correctly using the spring.schemas and spring.handlers. I
> have made the XSD for the extension available on the web. yet when I
> edit an XML file that uses the extension schema I get a little red X
> in the right hand side with the following info in the popupup:
>
> Multiple annotations found at this line:
> - cvc-complex-type.2.4.c: The matching wildcard is strict, but no
> declaration can be found for element 'access:access-rules'.
> - schema_reference.4: Failed to read schema document
> 'http:\//mcon.cloud.go.com/schema/filter/access-rules-1.0.xsd',
> because 1) could not find the document; 2) the document could not
> be read; 3) the root element of the document is not <xsd:schema>.
>
> Yet the project builds and other projects are able to use this schema
> in their spring shemas albeit with the little red x in their editor
> when they look at the spring config .xml files.
>
> The public location of the XSD is:
> http:\//mcon.cloud.go.com/mcon-filters/schemas/access-rules-1.0.xsd
>
>
>
> And the XML I am using in my spring config is (with obfuscated links
> to prevent the You can only use links to the eclipse.org sites while
> you have fewer than 5 messages issue ):
>
> <beans xmlns="http:\//www.springframework.org/schema/beans"
> xmlns:context="http:\//www.springframework.org/schema/context"
> xmlns:xsi="http:\//www.w3.org/2001/XMLSchema-instance"
> xmlns:util="http:\//www.springframework.org/schema/util"
> xmlns:access="http:\//mcon.cloud.go.com/mcon-filters/schemas/access-rules"
> xsi:schemaLocation="http:\//www.springframework.org/schema/beans
> http:\//www.springframework.org/schema/beans/spring-beans-3.0.xsd
> http:\//www.springframework.org/schema/aop
> http:\//www.springframework.org/schema/aop/spring-aop-3.0.xsd
> http:\//www.springframework.org/schema/context
> http:\//www.springframework.org/schema/context/spring-context-3.0.xsd
> http:\//www.springframework.org/schema/util
> http:\//www.springframework.org/schema/util/spring-util-3.0.xsd
> http:\//mcon.cloud.go.com/mcon-filters/schemas/access-rules
> http:\//mcon.cloud.go.com/mcon-filters/schemas/access-rules-1.0.xsd" >
> <access:access-rules id="V3AccessRules" mustAllow="true">
> <access:scope-matching name="rule1" matching-logic="ANY">
> <access:urls>
> <access:pattern>.*(A?)</access:pattern>
> </access:urls>
> <access:scopes>
> <access:pattern>ALD</access:pattern>
> </access:scopes>
> </access:scope-matching>
> <access:clientScope-matching name="rule2" matching-logic="ANY">
> <access:urls>
> <access:pattern>.*(A?)</access:pattern>
> </access:urls>
> <access:scopes>
> <access:pattern>ALF</access:pattern>
> </access:scopes>
> </access:clientScope-matching>
> </access:access-rules>
> </beans>
>
> The red x appears next to: <access:access-rules id="V3AccessRules"
> mustAllow="true">
Previous Topic:Validate XML file using XSD Schema and parsing in DOM parser
Next Topic:How do we make integer datatype behave like String data type in XML/XSD?
Goto Forum:
  


Current Time: Mon Oct 20 21:28:30 GMT 2014

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

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