Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Embedding xsd schemas #540

Closed
andrew-hardin opened this issue Feb 6, 2022 · 1 comment
Closed

Embedding xsd schemas #540

andrew-hardin opened this issue Feb 6, 2022 · 1 comment

Comments

@andrew-hardin
Copy link
Contributor

andrew-hardin commented Feb 6, 2022

There's a fair amount of brittle book keeping required to track the location of schemas and resolve them at run-time. An alternative approach involves embedding the schemas into the source (e.g. xxd -i schema.xsd), then at run-time passing those buffers to the xml validator.

Is that a feature that may be valuable to the broader community? If so, is it a feature that replaces the existing schema path machinery, or, does that path based machinery enable a valuable use case that I'm ignorant to? If so, it probably makes sense to maintain the existing schema paths for backwards compatibility.

@JDanielSmith
Copy link
Contributor

JDanielSmith commented Feb 7, 2022

Yes, the schema-path machinery is a bit complicated; I like the idea of embedding a schema! But this probably needs to get run through "the process" (although I'm not sure exactly what that might be) as an enhancement.

This probably isn't possible in a standard way unless/until std::embed/#embed is accepted.

@ngageoint ngageoint locked and limited conversation to collaborators Feb 10, 2022
@JDanielSmith JDanielSmith converted this issue into discussion #543 Feb 10, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants