XML support in Opera Presto 2.10

Overview

Opera Presto supports XML 1.0 and XML 1.1, and can parse and display XML documents.

  • Opera Presto can be both a validating and non-validating processor.
  • Documents with Content-type text/xml, application/xml or with a subtype ending on +xml will be treated as an XML document.
  • If a content-type is not available, the ".xml" file extension will also make the document be treated as XML.
  • Opera Presto does not use US-ASCII as the default character set for text/xml, but otherwise follows RFC3023.
    • Opera Presto follows the rules for application/xml.
    • We recommend using application/xml instead of text/xml, and the use of an explicit character set declaration such as charset=UTF-8.

Binary XML, Binary WML (WBXML)

The Opera Presto parser supports Binary XML; see XML Binary Characterization Working Group.

  • Its main use case is to handle Binary WML (WBXML); see WAP Binary XML Content Format
  • WBXML is turned on by default for all profiles except minimal.

XML with CSS

In order to display an XML document, a CSS style sheet should be present. Authors can attach Cascading Style Sheets to their XML documents through a processing instruction. Here is a simple example:

<?xml version="1.0"?>
<?xml-stylesheet href="shakespeare.css" type="text/css"?>

XForms

Opera Presto does not offer support for XForms; see XForms, but extends support for the HTML5 Forms module as an alternative; see HTML5 Forms module.

XSLT, XPath and XSL-FO

Opera Presto supports XSLT style sheets with the <?xml-stylesheet?> processing instruction; see Associating Style Sheets with XML documents Version 1.0. Opera supports XSLT 1.0 and XPath 1.0 with the following exceptions:

  • The namespace-alias element is not supported.
  • Opera Presto does not support XSL-FO.

XML namespaces and XML ID

Opera Presto fully supports XML namespaces.

  • Namespace support for text/html was discontinued with Opera 9, and is not supported.
  • Opera Presto supports the xml:id attribute.

XML Events

Opera Presto supports XML Events and it is used in X+V.

  • HTML script and VoiceXML form can be handlers for XML Events.

Support

Opera Help

Need help? Hit F1 anytime while using Opera to access our online help files, or go here.