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

Resolve relative URIs against the static base. #3

Open
cfoster opened this issue Jan 19, 2017 · 0 comments
Open

Resolve relative URIs against the static base. #3

cfoster opened this issue Jan 19, 2017 · 0 comments
Assignees

Comments

@cfoster
Copy link
Owner

cfoster commented Jan 19, 2017

The implementations of the applier functions create an InputSource containing the relative URI as a systemId, which although is common practice, is against the contract for InputSource.setSystemId() -- "If the system identifier is a URL, it must be fully resolved (it may not be a relative URL)."

Action

To resolve href against static base in extension function, override supplyStaticContext() in the implemenations of ExtensionFunctionCall - and capture the value of staticContext.getStaticBaseUri().

@cfoster cfoster self-assigned this Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant