HTML detection settings
To determine if a file should be processed with the HTML file type, SDL Trados Studio checks the content of the file against the conditions that you define on the Detection page. To open the Detection page for your HTML file type, click File > Options > File Types > [HTML file type] > Detection.
On this page, specify either a Doctype declaration, a root element or a namespace declaration. This helps Studio identify a file as being an HTML document and apply the correct extraction settings.
| Option | Description |
|---|---|
| DOCTYPE Declaration | To specify a doctype declaration, type the element name and click OK on the Detection page. For example:
|
| Process HTML Fragments | When this option is enabled, Studio can open and process HTML documents with the HTML file type, even if the documents are missing the HTML root element. For example, you may have an |
| Root Elements | To specify a root element, click Add... and enter the element name without the brackets.
For example:
If Studio finds an <html> element in the selected file, it will process the file as an HTML document and apply the HTML extraction settings. |
| Namespace Declarations | To specify a namespace declaration, click Add... and enter the URI (Uniform Resource Indicator) that identifies the namespace. For example: <html xmlns:xhtml="http://www.w3.org/xhtml/"> |