-
Notifications
You must be signed in to change notification settings - Fork 57
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
Provide additional guidance for formatting of id attributes #235
Comments
To summarize from @joeberkovitz's replies on the mailing list:
|
This is an acceptable solution. |
If applications need additional semantics beyond those provided by xml:id, and would like to interoperate through such a convention, then I would recommend an approach similar to HTML 5 data-* attributes. For example:
This would then be a specific microformat, which could be standardized or agreed upon. Note that |
that's interesting. Something to consider for MusicXML 3.2? |
At the moment there is no plan for a MusicXML 3.2, but this approach will definitely be considered for MNX. I like the |
One thing about This sort of round-tripping might require the application to maintain an internal data model that corresponds in a 1:1 sense to the document schema, which seems like a large potential implementation barrier. |
Yes, data- attributes seem to be a good solution for this issue. Whether an application chooses to preserve them is up to it, but it certainly can be a "recommended best practice" to preserve such: I would certainly approve of language that would indicate that it is a best practice to preserve data- attributes, both those created and understood by an application, and those discovered and not understood in imported files. That is said with understanding that it could be an implementation barrier to a greater or lesser degree for various applications. Applications that don't understand (and therefore delete) particular musical notation, would not be expected to preserve the data- attributes for that notation either, but for any notation that they do understand and re-export, preserving any imported data- attributes in the exported file would be a best practice. |
It's will also be difficult to write a DTD, W3Schema, or RelaxNG schema validator for these attributes. |
@ahankinson: That's a good point about difficulty with writing a schema validator. Maybe instead of allowing |
James Sutton (@jsutdolph) has proposed that we add additional guidance for the formatting of the new id attributes in MusicXML 3.1 added in issue #145. This has been discussed on a mailing list thread at https://lists.w3.org/Archives/Public/public-music-notation-contrib/2017Sep/0008.html. To summarize the request:
One main concern is how application A could add a new id to a file created by application B without redoing all of application B's id attributes.
This is something that could be addressed after the MusicXML 3.1 release as a sort of recommended practice which could be standardized later if desired.
The text was updated successfully, but these errors were encountered: