Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AttributeUsageAllowable ValuesDescriptionBusiness Rule(s)

xml:lang

Optional

See IETF Trust, Tags for Identifying Languages (Section 2.2, References)

Samples:

  • "en" for English
  • "en-GB" for British English

Code representing the language of the enclosed text value. Default value depends on locale.

  • The schema requires xml:lang to  be unique within a parent element for the same type.
  • If only one TranslatedText element is provided, the xml:lang is optional.
  • For submissions to the FDA, text content must be in English.
typeRequiredOptional

text/plain, application/xhtml+xml


Contains IANA media type of the TranslatedText element contents. Default value: "text/plain".


  • A TranslatedText element with plain text (either with specified or missing type, given that "text/plain" is a default value) must always be present, despite the fact whether other TranslatedText elements with enhanced presentation of the same text are present or not.
  • When type="application/xhtml+xml", contents of the TranslatedText element must contains a limited number of HTML tags.

...

For type="application/xhtml+xml" a limited number of it is possible to use HTML tags is allowed for text formatting. Value of the TranslatedText element must be always wrapped in <div> tag with non-whitespace content within it. The <div> must have a proper namespace specified: <div xmlns="https://www.w3.org/1999/xhtml/>

...

The content should be in the language of the TranslatedText element (xml:lang), but there is no reason to expect that HTML type tooling would understand the TranslatedText element language. For this reason, it is a good practice to use a lang attribute on the <div> (see the note in the HTML 5 specification about use of language ).

...

A minimum set of supported HTML tags

The list of allowed HTML tags includes the followingA base minimum set of HTML tags which needs to be supported for ODM conformance:  

  • Layout: <div> <p> <br>
  • Headers: <h1> <h2> <h3> <h4> <h5> <h6>
  • Text styling: <strong> <em> <sup> <sub>
  • Quotes/Unformatted/Code: <blockquote> <code> <pre>
  • Lists: <ul> <ol> <li>
  • Tables: <table> <thead> <tbody> <tr> <th> <td>
  • Lines: <hr>
  • Links: <a>
  • Images: <img>
  • Color: <span style="color:xxx">

...