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

ODD allows an attList with @org="choice" with @mode="delete" attributes #2533

Open
martindholmes opened this issue Mar 13, 2024 · 1 comment
Assignees
Labels
atop another TEI ODD processor

Comments

@martindholmes
Copy link
Contributor

martindholmes commented Mar 13, 2024

An <attList org="choice"> allows the definition of multiple attributes which are deemed to be in alternation -- only one can be selected. However, you can then put @mode="delete" on any of those attributes, giving rise to a situation which makes no sense at all as far as we (@sydb, @HelenaSabel and myself) can see. Schematron should prevent this.

@raffazizzi
Copy link
Contributor

At the VF2F we're having some trouble figuring out what to do here.

My own view is that attList/@org and attDef/@mode are about two different operations. @mode indicates how to apply the customization (ie: remove this attribute). @org indicates how the resulting compiled ODD should be transformed into RelaxNG.

So the value of @org is inconsequential to the processor's operation here.

On the other hand — and perhaps this is a different ticket — it is unclear how @org should be treated with @mode="change" on the parent. Should it result in switching the value of attList/@org on the resulting spec?

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

No branches or pull requests

3 participants