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

Schema for includes #90

Open
mbakeranalecta opened this issue Sep 8, 2016 · 1 comment
Open

Schema for includes #90

mbakeranalecta opened this issue Sep 8, 2016 · 1 comment
Labels

Comments

@mbakeranalecta
Copy link
Owner

mbakeranalecta commented Sep 8, 2016

To ensure that all SAM documents are stand alone, an include must be specified in the schema and must specify the structure of the document that is included. This can either be done by specifying the block or blocks from the current schema that can be included:

 <<<(section, list)

Or by indicating another schema:

<<<(http://example.com/schema.sams)

In the former case, the current schema is used to evaluate the imported file. In the second case, the specified schema is loaded and used to evaluate the imported file.

@mbakeranalecta
Copy link
Owner Author

It is worth noting here that because we have the capacity to validate the result document against an XML schema, we really have two forms of validations for these issues. The XML validation works on the result of doing the include. The SAM schema works on the components of the include. Does this distinction make any difference to what we want the SAM schema to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant