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

Clarify information sets cardinality of attributes. #879

Closed
nigelmegitt opened this issue Jul 3, 2018 · 4 comments
Closed

Clarify information sets cardinality of attributes. #879

nigelmegitt opened this issue Jul 3, 2018 · 4 comments

Comments

@nigelmegitt
Copy link
Contributor

Many elements permit {any attribute in TT Style Namespaces} or similar language. This test was taken from the initial element, as an example. Whereas for Content the cardinality is indicated, it is omitted for attributes. This could lead to the unintended interpretation that the text permits only a single attribute in the given namespace, rather than any number of such attributes.

Raising this and marking as agenda for discussion on the next call. Is there anything we can do to clarify this editorially in the TTML2 and TTML1 3rd Edition specs? For example append a * after the curly braces.

@nigelmegitt nigelmegitt added this to the PR milestone Jul 3, 2018
@skynavga
Copy link
Collaborator

skynavga commented Jul 3, 2018

We could add a note under conventions, but the use of curly braces follows the customary set notation, which means anything any the set. So a kleene operator * is not needed.

@nigelmegitt
Copy link
Contributor Author

The wording doesn't say any attributes, it says any attribute, singular, which suggests only one is permitted. If {} means "any number of these" then we should certainly add that to the document conventions.

@palemieux
Copy link
Contributor

In TTML1, we had {a single attribute in TT Style namespace}, which a contrast to {any attribute in TT Style Namespaces}.

@skynavga
Copy link
Collaborator

skynavga commented Jul 4, 2018

The convention used in TTML for specifying element information item syntax comes from [1]. In reviewing the usage there, I see a variety of instances of

{any attributes with non-schema namespace . . .}

So it would seem proper that we add change any attribute to any attributes. Note this is an editorial change only, since we have always intended "any attribute" to mean "any [one or more] attributes" in this context.

[1] https://www.w3.org/TR/xmlschema-1/

@skynavga skynavga self-assigned this Jul 4, 2018
@skynavga skynavga removed the agenda label Jul 4, 2018
@skynavga skynavga changed the title Clarify information sets cardinality of attributes Clarify information sets cardinality of attributes. Jul 4, 2018
skynavga added a commit that referenced this issue Jul 9, 2018
@skynavga skynavga added pr merged and removed pr open labels Jul 9, 2018
@skynavga skynavga removed their assignment Jul 9, 2018
@skynavga skynavga modified the milestones: PR, CR3 Jul 19, 2018
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

3 participants