Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamline XML namespace support towards unversioned schemas [SPR-13499] #18077

Closed
spring-projects-issues opened this issue Sep 24, 2015 · 0 comments
Assignees
Labels
in: core type: task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Sep 24, 2015

Juergen Hoeller opened SPR-13499 and commented

Spring's XML namespace schemas, or more specifically their xsd files, are traditionally organized in versions, e.g. spring-context-4.2.xsd. While this was effective enough for the evolution of those schemas over a long period, we haven't seen many changes to the schemas lately and are therefore bound to create new versioned copies of the exact same xsd files in most cases.

We'll keep doing this for 4.3 but should consider a different approach for 5.0: simply managing canonical spring-context.xsd etc files and always picking up the latest files even for version-specific declarations in XML bean definition documents. This is entirely backwards compatible for all 4.x schemas; there are just some outdated 3.x variants of attributes not exposed anymore which should be acceptable.

In general, as of 5.0, let's drop support for all outdated pre-4.0 attributes in our XML schemas. We'll keep accepting older schema declarations but will parse them against the latest xsd files, with outdated attributes automatically failing schema validation on startup then. 99% of all XML bean dean definition documents will keep working without changes, and the rest should be easy to migrate to 4.x / 5.0 xsd variants.


Referenced from: commits 91ac0bf, bc2c22d

@spring-projects-issues spring-projects-issues added the type: task label Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.0 M1 milestone Jan 11, 2019
@sbrannen sbrannen added the in: core label Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: task
Projects
None yet
Development

No branches or pull requests

3 participants