Element level language
Capture the language of the text in an element using the xml:lang attribute.
When the main language of an element differs from its parent element, capture an xml:lang attribute on that element with the corresponding lower-case code from the IANA language subtag type list .
The elements that allow to capture a language are:
- abstract
- alt-text
- app
- app-group
- attrib
- book
- book-app
- book-app-group
- book-part
- book-part-wrapper
- boxed-text
- caption
- dedication
- disp-quote
- fn
- fn-group
- front-matter-part
- kwd-group
- label
- list
- list-item
- named-content
- p
- sec
- speech
- statement
- table-wrap
- table-wrap-group
- verse-group
- verse-line
<book xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en"> <!-- additional elements inserted --> <p xml:lang="it"> Piacere di conoscerti. </p>