Amaya allows you to create both local and remote documents. Three types of documents are available:
To create a document:
If you want to create a XHTML document including either MathML or
SVG elements (Compound document), it is recommended to create a
document file with a .xml
suffix.
.html
pages are served with iso-8859-1
and .xml
pages are served with utf-8
.You can open local and remote documents in several ways:
Note: You can alternately use a keyboard shortcut to open a document. Press Ctrl-o ctrl-o.
You can also use these steps to create a new local document, by specifying the name of a file that does not exist.
The address of the current document is displayed at the top of the window. Edit this address to specify the file name or the URI of the document you want to open and press Enter.
You can also create a new document by typing the name of a document that does not exist yet.
Note: You can click the button on the right side of the document address field to display the list of the documents you have opened recently. You can then select an address in this list to open the corresponding document.
Note about character sets
Amaya reads HTML and XHTML documents differently:
meta
element, Amaya considers an HTML document to be encoded
in ISO-Latin-1.meta
element, Amaya considers an XHTML
document to be encoded in UTF-8.Because the default charset is different for HTML and XHTML documents, authors often create documents using the incorrect charset. For example, consider an XHTML document that uses ISO Latin-1 but does not provide information about the charset. When the XML parser analyzing the document encounters a sequence of bits that does not match a valid UTF-8 character, the document is considered to be not well formed. Parsing stops and Amaya displays an error message that proposes either to reload the document as an HTML document or to show parsing errors. If show parsing errors is chosen, Amaya displays the detected errors.