Skip to content

Suggestion for using java.net.URL#87

Merged
lcduarte merged 6 commits into
xmlet:masterfrom
waldi5001:draft/use_url_for_locations
Apr 25, 2026
Merged

Suggestion for using java.net.URL#87
lcduarte merged 6 commits into
xmlet:masterfrom
waldi5001:draft/use_url_for_locations

Conversation

@waldi5001
Copy link
Copy Markdown
Contributor

Whilst working with the XsdParser, I came across some issues with location handling, as you can see in my first commit. This gave me the idea not to handle the resolution and normalisation of locations myself. I also noticed that this was being done manually in several places in the code. So I decided to build a version that works exclusively with URLs.

This PR should be seen more as a suggestion. I think there are a few things we could still improve or expand upon should you decide to accept it.

waldi5001 and others added 6 commits April 22, 2026 22:28
It is XML conform to include other schemas with ./location/schema.xsd.
The resolving of the location is made by File#getCanonicalPath.
Additional http(s) URLs are ignored of resolving relative paths.
writing own url handler to demonstrate inventions of own url schemes
@lcduarte lcduarte merged commit a556c1e into xmlet:master Apr 25, 2026
@lcduarte
Copy link
Copy Markdown
Member

Thanks for the suggestion, it looks good, I'll approve it. Will you make more changes or you'd rather that I publish a version with these changes? @waldi5001

@waldi5001
Copy link
Copy Markdown
Contributor Author

waldi5001 commented Apr 26, 2026

Thank you. I think a new version is a gold idea.

@lcduarte
Copy link
Copy Markdown
Member

@waldi5001 Done, deployed 1.3.0, with both of your fixes and a few other changes.

@waldi5001 waldi5001 deleted the draft/use_url_for_locations branch April 28, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants