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

Fixed #34. Handle relative href in xml-model processing instructions #35

Merged
merged 1 commit into from
Feb 1, 2018

Conversation

rosslamont
Copy link
Contributor

Motivation: When resolving xml-model style validations, relative href
do not work. As this is relying on the EntityResolver, there are possibly
other relative entity resolutions which do not work either.

Solution: Added relative URI handling to the resolveURL method of Resolver
class. Code attempts the original code path before attempting to resolve
relative URI's to preserver legacy behavior as much as possible.

  • also updated latest jxvc version.

Fixed #34

@rosslamont
Copy link
Contributor Author

closing: wrong solution - this solution interferes with the "basedir" mojo parameter. Probably a better solution for v2.0

@rosslamont rosslamont closed this Jan 16, 2018
do not work.  As this is relying on the EntityResolver, there are possibly
other relative entity resolutions which do not work either.

Solution: Added relative URI handling to the resolveURL method of Resolver
class.  Code attempts the original code path before attempting to resolve
relative URI's to preserver legacy behavior as much as possible.
 - also updated latest jxvc version.
@rosslamont
Copy link
Contributor Author

Upon further thought, it was possible to keep the original resolution approach which first tries to resolve as a URI, and then attempts to use basedir. If the original approach fails, and the URI is relative, then the new approach is used.

@rosslamont rosslamont reopened this Feb 1, 2018
@rosslamont rosslamont changed the title Handle relative href in xml-model processing instructions Fixed #34. Handle relative href in xml-model processing instructions Feb 1, 2018
@rosslamont rosslamont merged commit dacc2bd into mojohaus:master Feb 1, 2018
@rosslamont rosslamont deleted the issue-34 branch February 23, 2018 20:38
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.

Relative href in xml-model processing instruction doesn't work
1 participant