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

schemaLocation remapping when validating against a schema directory #60

Open
bworrell opened this issue Mar 13, 2015 · 0 comments
Open

Comments

@bworrell
Copy link
Contributor

When validating a document using --schema-dir or the schemas parameter, the underlying libxml2 schema parsing engine still attempts to resolve remote xs:import and xs:include schemas. This can hang the validator when the system is offline.

We should look into remapping xs:include and xs:import statements to localized schemas found within the input schema directory. This would require a pre-parse of the schemas and the creation of a localized, tmp set of modified schemas to validate against.

This gets tricky when you factor in xs:include, because multiple schemas define the same targetNamespace.

This may also be something we just don't want to do, as we'd technically be validating against a modification of the input schemas and not the input schemas themselves. This could potentially result in undesired behaviors and false positives/negatives. We need to consider if this is okay or not.

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

No branches or pull requests

1 participant