TTML 1.0 (Editorial)
TTML 1.0 Test Suite
TTML IMSC 1.0
TTML IMSC 2.0
TTML Simple Delivery Profile for Closed Captions (US)
TTML versions and profiles note
TTML WebVTT mapping note
Frans de Jong
Loretta Guarino Reid
Philippe Le Hégaret
The EBU XML Subtitles group raises this concern re the constraints of placement of xml:lang within IMSC:
The use of xml:lang in IMSC is contrary to the accepted use (and recommended best practise) of this attribute from the xml standard . The IMSC document  states in section 4.4 Language that “All instances of the xml:lang attribute within a subtitle document SHALL have identical values.”
In the W3C document “Best Practices for XML Internationalization”  published by the W3C Working Group on 13 February 2008 (over 5 years ago and without subsequent amendment or correction), section 3 “When Authoring XML Content” states that
“Authors of XML content should consider the following best practices:”.
Best Practise: Specifying the language of content Use xml:lang (or its equivalent in your schema) on the root element of the document, and on each element where the language of the content changes.
Clearly the best practise is to use xml:lang to correctly identify the language of any element within a document when it differs from the surrounding elements.
This best practise advice is further reinforced by another document from the W3C: xml:lang in XML document schemas  in the section “When to use xml:lang”.
Content directly associated with the XML document (either contained within the document directly or considered part of the document when it is processed or rendered) should use the xml:lang attribute to indicate the language of that content. xml:lang should be reserved for content authors to directly label any natural language content they may have.
xml:lang is defined by XML 1.0 as a common attribute that can be used to indicate the language of any element's contents. This includes any human readable text, as well as other content (such as embedded objects like images or sound files) contained by the element in which it appears. The xml:lang value applies to any sub-elements contained by the element. It also applies to attribute values associated with the element and sub-elements (though using natural language in attributes is not best practice). The value of the xml:lang attribute is a language tag defined by BCP 47.
We propose that the IMSC document should be corrected to accurately reflect the established guidelines.
There is additionally a specific use case for permitting multiple languages to be indicated within content: this is to permit the use of distributed subtitle document for alternative purposes such as processing by text to speech engines to generate 'spoken subtitles', in which language-appropriate speech synthesis models may be required depending on content.
This is related to ISSUE-295.
Add notes (no markup allowed, URIs get automatically hyperlinked):
[nigel]: pal proposes removing the xml:lang constraint
[nigel]: pal removes proposal to restrict xml:lang in IMSC though may re-instate it depending on CFF response
[nigel]: proposal accepted, pal to make edit
Fixed. See https://dvcs.w3.org/hg/ttml/diff/2720fa1fae9c/ttml-ww-profiles/ttml-ww-profiles.source.html