spring-beans.xsd does not define "local". Why?

Friday, January 10, 2014

Almost every spring project uses spring-beans.xsd (refers to it to be more precise). However, if you look at the file, http://www.springframework.org/schema/beans/spring-beans.xsd, you'll see that it is version 3.2 and doesn't have a definition for the attribute "local".

What's even more interesting, is that http://www.springframework.org/schema/beans/spring-beans-3.2.xsd does actually define "local".

Also since the file is pulled out of the jar (org/springframework/beans/factory/xml/spring-beans-3.2.xsd) due to spring.schema, I don't think any project will have compile or runtime issues.

Eclipse's xml validator on the other hand, I think, uses only the internet link and shows an xml error, more specifically :

"cvc-complex-type.3.2.2: Attribute 'local' is not allowed to appear in element 'ref'"

Is this is a bug?