XML in Mozilla

  • Revision slug: XML_in_Mozilla
  • Revision title: XML in Mozilla
  • Revision id: 63724
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment 4 words added, 4 words removed

Revision Content

 

Mozilla has extensive support for XML. Several World Wide Web Consortium (W3C) Recommendations and drafts from the XML family of specifications are supported, as well as other related technologies.

This page is outdated. Please help updating it with current information.

Supported Core XML W3C Recommendations

The core XML support includes parsing XML without validation (we use the Expat parser), displaying XML with CSS, manipulating XML documents with scripts via DOM, associating stylesheets with XML documents, and namespaces in XML. The core support is very good with few bugs.

DTDs and Other External Entities

Mozilla does not load external entities from the web.

Mozilla can load external entities whose system identifier uses the chrome protocol. This feature is used mainly to localize Mozilla to different languages (the UI strings are stored in external DTD files). Another exception is an entity whose system identifier is a relative path, and the XML declaration states that the document is not standalone (default), in which case Mozilla will try to look for the entity under <bin>/res/dtd directory.

Mozilla may also make an exception with XHTML documents, see below.

Mozilla will read internal (DTD) subsets, and in special circumstances external DTDs as explained above and will use this information to recognize ID type attributes, default attribute values, and general entities.

Other Notes

A lot of the Document Object Model (DOM, W3C Recommendations and drafts) applies to XML. Likewise, the Cascading Style Sheets (CSS, W3C Recommendations and drafts) style language can be used to style XML documents.

The code for most the core XML can be found in the following directories on the Mozilla CVS server: {{ Source("content/xml/") }}, {{ Source("parser/expat/") }} and {{ Source("parser/htmlparser/") }}.

The newsgroup to discuss XML in Mozilla depends a bit on the nature of the question. For example, DOM related questions should probably be discussed in the mozilla.dev.tech.dom newsgroup, while style issues should be discussed on mozilla.dev.tech.css and so on. The catch-all newsgroup for XML discussion is mozilla.dev.tech.xml.

Specification or technology Status and/or further documentation
XML W3C Recommendation
Namespaces in XML W3C Recommendation
Associating Stylesheets with XML Documents W3C Recommendation
Styling XML Documents with CSS  
Manipulating XML documents with scripts through DOM  

Other Supported XML W3C Recommendations

Specification or Technology Documentation
XHTML W3C Recommendation
XML Base (for links only, not used for :visited etc. CSS properties) W3C Recommendation
XLink (simple XLinks only) W3C Recommendation
FIXptr W3C "proposal"
XPointer Framework W3C Recommendation
XPointer element() scheme W3C Recommendation
XPointer xmlns() scheme W3C Recommendation
XPointer fixptr() scheme This scheme is simply a wrapper for FIXptr
XPointer xpath1() scheme Internet-Draft
document.load(), document.async Part of DOM Level 3 Load & Save module, a W3C Working Draft

XHTML

We have reasonable XHTML support, most things should work. We treat XHTML documents differently depending on the mime type (or file suffix if files are loaded from local discs). Files that go through the HTML code path are not checked for well-formedness. You will also notice not all XHTML features are supported when you exercise the HTML code path.

MIME Type File Suffix Code Path
text/xml
application/xml
application/xhtml+xml
xml
xht
xhtml
XML
text/html html
htm
HTML

The entire document need not be XHTML. You can use XHTML elements inside an arbitrary XML document by using the XHTML namespace. See the {{ Anch("Testing and QA") }} section for samples. The correct XHTML namespace is http://www.w3.org/1999/xhtml

Please note that the XHTML entities, like &auml;, work only in conforming XHTML documents that have a valid XHTML Formal Public Identifier (or in other words, a DOCTYPE section with a PUBLIC identifier). XHTML entities will not work in arbitrary XML documents, not even if the XHTML namespace is used. The public identifiers that are recognized are:

-//W3C//DTD XHTML 1.0 Transitional//EN
-//W3C//DTD XHTML 1.1//EN
-//W3C//DTD XHTML 1.0 Strict//EN
-//W3C//DTD XHTML 1.0 Frameset//EN
-//W3C//DTD XHTML Basic 1.0//EN
-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN
-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN
-//W3C//DTD SVG 20001102//EN
-//WAPFORUM//DTD XHTML Mobile 1.0//EN

XML Linking and Pointing

XML Linking support includes XML Base (used only when you mouse over a link or click a link) and simple XLinks. You can make any XML element into an XLink by using the XLink namespace http://www.w3.org/1999/xlink. You can also use the linking elements from the XHTML namespace. See the {{ Anch("Testing and QA") }} section for samples.

For pointing into resources in XML documents Mozilla also supports FIXptr, a simplified, non-compatible version of XPointer. In addition to using FIXptr in links, it is possible to use it from scripts. See the proprietary {{ Source("dom/public/idl/core/nsIDOMXMLDocument.idl") }} interface. There is test case for FIXptr links and a scripting example.

Since 1.4alpha, Mozilla also supports XPointer Framework, XPointer element() scheme, XPointer xmlns() scheme, XPointer fixptr() scheme and XPointer xpath1() scheme. The XPointer processor is extensible and it is easy to implement support for other schemes - have a look at the {{ Source("content/xml/document/public/nsIXPointer.idl", "API") }}. The xpath1() scheme was {{ Source("content/xslt/src/xpath/nsXPath1Scheme.cpp", "implemented using this extensible mechanism") }}. There is also a {{ Source("dom/public/idl/core/nsIDOMXMLDocument.idl", "proprietary API from scripts") }} to the XPointer processor. There is a testcase for XPointers that you can also study.

Lastly, there is a pref you might want to try (especially useful with FIXptr) that will select the link target when you traverse it. There is no UI for setting this pref yet, so you will need to manually edit the preferences file. Add this line:

pref("layout.selectanchor", true);

DOM Load and Save Methods

document.load() is a part of an old version of the W3C DOM Level 3 Load & Save module. Mozilla currently implements only the load() method and the document.async property.

Outside Supported XML W3C Recommendations

Specification or Technology Documentation Mozilla Project
XSLT W3C Recommendation XSLT
XPath W3C Recommendation XSLT
XQuery W3C Recommendation  
XMLHttpRequest W3C Draft XML Extras
DOMParser and XMLSerializer Mozilla XML Extras
SAX http://www.saxproject.org/  
SOAP (no longer supported) W3C Note Web Services
XML-RPC (no longer supported) UserLand Software XML-RPC
RDF W3C Recommendations RDF
SVG W3C Proposed Recommendation SVG
MathML W3C Recommendation MathML
P3P (no longer supported?) W3C Recommendation P3P
WSDL (no longer supported) W3C Note Web Services
XBL Mozilla's XBL reference  
XUL Mozilla's XUL reference  

Roadmap

Next big tasks would include support for XPointer xpointer() scheme ({{ Bug("32832") }}), XInclude ({{ Bug("201754") }}), XML Catalogs ({{ Bug("98413") }}), XForms ({{ Bug("97806") }}; work being done on implementing this as an extension), validating parser ({{ Bug("196355") }}) and XML Schemas.

To fully implement XLink, we need something called a link manager. See some initial design documents.

Testing and QA

We have a lot of testcases linked to from the browser standards compliance QA page.

Most of the core XML test documents on the CVS server are located in {{ Source("content/xml/tests") }}. We also have a couple online: the books demo and the IRS table of contents demo. Both of them demonstrate XML, Associating stylesheets with XML, displaying XML with CSS, Namespaces in XML, XHTML, simple XLinks, and manipulation of XML with scripts via DOM.

There is an XML component in Bugzilla.

We also have the "xhtml" keyword for XHTML bugs (these tend to be scattered across components).

How can I help?

If you can code, look for helpwanted keyword in XML bugs. We don't use that always, so if you want to avoid doing duplicate work you could start working on bugs that have Future milestone, or otherwise have a milestone that is set way into the future.

You can always test our XML support. We'd really like to get tests that can be run automatically (this would require knowledge of web development; document.load() and/or XML Extras might be needed), but probably most of the bugs we get have just been found by normal people trying to do something that works in some other browser and does not work in Mozilla.

See also

 

{{ languages( { "zh-cn": "cn/Mozilla\u4e2d\u7684XML", "it": "it/XML_in_Mozilla", "es": "es/XML_en_Mozilla", "fr": "fr/XML_dans_Mozilla", "ja": "ja/XML_in_Mozilla", "pl": "pl/XML_w_Mozilli" } ) }}

Revision Source

<p> </p>
<p>Mozilla has extensive support for <a href="/en/XML" title="en/XML">XML</a>. Several World Wide Web Consortium (<a class="external" href="http://w3c.org/">W3C</a>) Recommendations and drafts from the XML family of specifications are supported, as well as other related technologies.</p>
<div class="note">
<p>This page is outdated. Please help updating it with current information.</p>
</div>
<h3 name="Supported_Core_XML_W3C_Recommendations">Supported Core XML W3C Recommendations</h3>
<p>The core XML support includes parsing XML without validation (we use the Expat parser), displaying XML with CSS, manipulating XML documents with scripts via DOM, associating stylesheets with XML documents, and namespaces in XML. The core support is very good with few bugs.</p>
<h4 name="DTDs_and_Other_External_Entities">DTDs and Other External Entities</h4>
<p>Mozilla does not load external entities from the web.</p>
<p>Mozilla can load external entities whose system identifier uses the <code>chrome</code> protocol. This feature is used mainly to <a href="/en/XUL_Tutorial/Localization" title="en/XUL_Tutorial/Localization">localize Mozilla to different languages</a> (the UI strings are stored in external DTD files). Another exception is an entity whose system identifier is a relative path, and the XML declaration states that the document is not standalone (default), in which case Mozilla will try to look for the entity under <code>&lt;bin&gt;/res/dtd</code> directory.</p>
<p>Mozilla may also make an exception with XHTML documents, see below.</p>
<p>Mozilla will read internal (DTD) subsets, and in special circumstances external DTDs as explained above and will use this information to recognize ID type attributes, default attribute values, and general entities.</p>
<h4 name="Other_Notes">Other Notes</h4>
<p>A lot of the Document Object Model (<a class="external" href="http://www.w3.org/DOM/">DOM</a>, W3C Recommendations and drafts) applies to XML. Likewise, the Cascading Style Sheets (<a class="external" href="http://www.w3.org/Style/CSS/">CSS</a>, W3C Recommendations and drafts) style language can be used to style XML documents.</p>
<p>The code for most the core XML can be found in the following directories on the Mozilla CVS server: {{ Source("content/xml/") }}, {{ Source("parser/expat/") }} and {{ Source("parser/htmlparser/") }}.</p>
<p>The newsgroup to discuss XML in Mozilla depends a bit on the nature of the question. For example, DOM related questions should probably be discussed in the mozilla.dev.tech.dom newsgroup, while style issues should be discussed on mozilla.dev.tech.css and so on. The catch-all newsgroup for XML discussion is mozilla.dev.tech.xml.</p>
<table class="standard-table"> <tbody> <tr> <td class="header">Specification or technology</td> <td class="header">Status and/or further documentation</td> </tr> <tr> <td><a href="/en/XML" title="en/XML">XML</a></td> <td><a class="external" href="http://www.w3.org/TR/REC-xml">W3C Recommendation</a></td> </tr> <tr> <td>Namespaces in XML</td> <td><a class="external" href="http://www.w3.org/TR/REC-xml-names/">W3C Recommendation</a></td> </tr> <tr> <td><a href="/en/XML_Introduction#XML_display" title="en/XML_Introduction#XML_display">Associating Stylesheets with XML Documents</a></td> <td><a class="external" href="http://www.w3.org/TR/xml-stylesheet/">W3C Recommendation</a></td> </tr> <tr> <td>Styling XML Documents with <a href="/en/CSS" title="en/CSS">CSS</a></td> <td> </td> </tr> <tr> <td>Manipulating XML documents with scripts through <a href="/en/DOM" title="en/DOM">DOM</a></td> <td> </td> </tr> </tbody>
</table>
<h3 name="Other_Supported_XML_W3C_Recommendations">Other Supported XML W3C Recommendations</h3>
<table class="standard-table"> <tbody> <tr> <td class="header">Specification or Technology</td> <td class="header">Documentation</td> </tr> <tr> <td><a href="/en/XHTML" title="en/XHTML">XHTML</a></td> <td><a class="external" href="http://www.w3.org/TR/xhtml1/">W3C Recommendation</a></td> </tr> <tr> <td><a href="/en/xml/base" title="en/xml/base">XML Base</a> (for links only, not used for <code>:visited</code> etc. CSS properties)</td> <td><a class="external" href="http://www.w3.org/TR/xmlbase/">W3C Recommendation</a></td> </tr> <tr> <td><a href="/en/XLink" title="en/XLink">XLink</a> (simple XLinks only)</td> <td><a class="external" href="http://www.w3.org/TR/xlink/">W3C Recommendation</a></td> </tr> <tr> <td>FIXptr</td> <td><a class="external" href="http://lists.w3.org/Archives/Public/www-xml-linking-comments/2001AprJun/att-0074/01-NOTE-FIXptr-20010425.htm">W3C "proposal"</a></td> </tr> <tr> <td>XPointer Framework</td> <td><a class="external" href="http://www.w3.org/TR/xptr-framework/">W3C Recommendation</a></td> </tr> <tr> <td>XPointer <code>element()</code> scheme</td> <td><a class="external" href="http://www.w3.org/TR/xptr-element/">W3C Recommendation</a></td> </tr> <tr> <td>XPointer <code>xmlns()</code> scheme</td> <td><a class="external" href="http://www.w3.org/TR/xptr-xmlns/">W3C Recommendation</a></td> </tr> <tr> <td>XPointer <code>fixptr()</code> scheme</td> <td>This scheme is simply a wrapper for FIXptr</td> </tr> <tr> <td>XPointer <code>xpath1()</code> scheme</td> <td><a class="external" href="http://www.simonstl.com/ietf/draft-stlaurent-xpath-frag-00.html">Internet-Draft</a></td> </tr> <tr> <td><code><a href="/en/DOM/document.load" title="en/DOM/document.load">document.load()</a></code>, <code><a href="/en/DOM/document.async" title="en/DOM/document.async">document.async</a></code></td> <td><a class="external" href="http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS">Part of DOM Level 3 Load &amp; Save module, a W3C Working Draft</a></td> </tr> </tbody>
</table>
<h4 name="XHTML">XHTML</h4>
<p>We have reasonable <a href="/en/XHTML" title="en/XHTML">XHTML</a> support, most things should work. We treat XHTML documents differently depending on the mime type (or file suffix if files are loaded from local discs). Files that go through the <a href="/en/HTML" title="en/HTML">HTML</a> code path are not checked for well-formedness. You will also notice not all XHTML features are supported when you exercise the HTML code path.</p>
<table class="standard-table"> <tbody> <tr> <td class="header">MIME Type</td> <td class="header">File Suffix</td> <td class="header">Code Path</td> </tr> <tr> <td>text/xml<br> application/xml<br> application/xhtml+xml</td> <td>xml<br> xht<br> xhtml</td> <td>XML</td> </tr> <tr> <td>text/html</td> <td>html<br> htm</td> <td>HTML</td> </tr> </tbody>
</table>
<p>The entire document need not be XHTML. You can use XHTML elements inside an arbitrary XML document by using the XHTML namespace. See the {{ Anch("Testing and QA") }} section for samples. The correct XHTML namespace is <code><span class="nowiki">http://www.w3.org/1999/xhtml</span></code></p>
<p>Please note that the XHTML entities, like <code>&amp;auml;</code>, work only in conforming XHTML documents that have a valid XHTML Formal Public Identifier (or in other words, a DOCTYPE section with a PUBLIC identifier). XHTML entities will not work in arbitrary XML documents, not even if the XHTML namespace is used. The public identifiers that are recognized are:</p>
<pre>-//W3C//DTD XHTML 1.0 Transitional//EN
-//W3C//DTD XHTML 1.1//EN
-//W3C//DTD XHTML 1.0 Strict//EN
-//W3C//DTD XHTML 1.0 Frameset//EN
-//W3C//DTD XHTML Basic 1.0//EN
-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN
-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN
-//W3C//DTD SVG 20001102//EN
-//WAPFORUM//DTD XHTML Mobile 1.0//EN
</pre>
<h4 name="XML_Linking_and_Pointing">XML Linking and Pointing</h4>
<p>XML Linking support includes <a href="/en/xml/base" title="en/xml/base">XML Base</a> (used only when you mouse over a link or click a link) and simple <a href="/en/XLink" title="en/XLink">XLinks</a>. You can make any XML element into an XLink by using the XLink namespace <code><span class="nowiki">http://www.w3.org/1999/xlink</span></code>. You can also use the linking elements from the XHTML namespace. See the {{ Anch("Testing and QA") }} section for samples.</p>
<p>For pointing into resources in XML documents Mozilla also supports <a class="external" href="http://lists.w3.org/Archives/Public/www-xml-linking-comments/2001AprJun/att-0074/01-NOTE-FIXptr-20010425.htm">FIXptr</a>, a simplified, non-compatible version of XPointer. In addition to using FIXptr in links, it is possible to use it from scripts. See the proprietary {{ Source("dom/public/idl/core/nsIDOMXMLDocument.idl") }} interface. There is test case for <a class="link-https" href="https://bugzilla.mozilla.org/attachment.cgi?id=46954&amp;action=view">FIXptr links</a> and a <a class="link-https" href="https://bugzilla.mozilla.org/attachment.cgi?id=61629&amp;action=view">scripting example</a>.</p>
<p>Since 1.4alpha, Mozilla also supports <a class="external" href="http://www.w3.org/TR/xptr-framework/">XPointer Framework</a>, <a class="external" href="http://www.w3.org/TR/xptr-element/">XPointer <code>element()</code> scheme</a>, <a class="external" href="http://www.w3.org/TR/xptr-xmlns/">XPointer <code>xmlns()</code> scheme</a>, XPointer <code>fixptr()</code> scheme and <a class="external" href="http://www.simonstl.com/ietf/draft-stlaurent-xpath-frag-00.html">XPointer <code>xpath1()</code> scheme</a>. The XPointer processor is extensible and it is easy to implement support for other schemes - have a look at the {{ Source("content/xml/document/public/nsIXPointer.idl", "API") }}. The <code>xpath1()</code> scheme was {{ Source("content/xslt/src/xpath/nsXPath1Scheme.cpp", "implemented using this extensible mechanism") }}. There is also a {{ Source("dom/public/idl/core/nsIDOMXMLDocument.idl", "proprietary API from scripts") }} to the XPointer processor. There is a <a class="link-https" href="https://bugzilla.mozilla.org/attachment.cgi?id=119333&amp;action=view">testcase for XPointers</a> that you can also study.</p>
<p>Lastly, there is a pref you might want to try (especially useful with FIXptr) that will select the link target when you traverse it. There is no UI for setting this pref yet, so you will need to manually edit the preferences file. Add this line:</p>
<pre>pref("layout.selectanchor", true);
</pre>
<h4 name="DOM_Load_and_Save_Methods">DOM Load and Save Methods</h4>
<p><code><a href="/en/DOM/document.load" title="en/DOM/document.load">document.load()</a></code> is a part of an old version of the W3C <a class="external" href="http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS">DOM Level 3 Load &amp; Save module</a>. Mozilla currently implements only the <code>load()</code> method and the <code><a href="/en/DOM/document.async" title="en/DOM/document.async">document.async</a></code> property.</p>
<h3 name="Outside_Supported_XML_W3C_Recommendations">Outside Supported XML W3C Recommendations</h3>
<table class="standard-table"> <tbody> <tr> <td class="header">Specification or Technology</td> <td class="header">Documentation</td> <td class="header">Mozilla Project</td> </tr> <tr> <td><a href="/en/XSLT" title="en/XSLT">XSLT</a></td> <td><a class="external" href="http://www.w3.org/TR/xslt">W3C Recommendation</a></td> <td><a class="external" href="http://www.mozilla.org/projects/xslt/">XSLT</a></td> </tr> <tr> <td><a href="/en/XPath" title="en/XPath">XPath</a></td> <td><a class="external" href="http://www.w3.org/TR/xpath">W3C Recommendation</a></td> <td><a class="external" href="http://www.mozilla.org/projects/xslt/">XSLT</a></td> </tr> <tr> <td><a href="/en/XQuery" title="en/XQuery">XQuery</a></td> <td><a class="external" href="http://www.w3.org/TR/xquery/">W3C Recommendation</a></td> <td> </td> </tr> <tr> <td><a href="/en/XMLHttpRequest" title="en/XMLHttpRequest">XMLHttpRequest</a></td> <td><a class="external" href="http://www.w3.org/TR/XMLHttpRequest/">W3C Draft</a></td> <td><a class="external" href="http://www.mozilla.org/xmlextras/">XML Extras</a></td> </tr> <tr> <td><a href="/en/DOMParser" title="en/DOMParser">DOMParser</a> and <a href="/en/XMLSerializer" title="en/XMLSerializer">XMLSerializer</a></td> <td><a class="external" href="http://www.mozilla.org/xmlextras/">Mozilla</a></td> <td><a class="external" href="http://www.mozilla.org/xmlextras/">XML Extras</a></td> </tr> <tr> <td><a href="/en/SAX" title="en/SAX">SAX</a></td> <td><a class=" external" href="http://www.saxproject.org/" rel="freelink">http://www.saxproject.org/</a></td> <td> </td> </tr> <tr> <td><a href="/en/SOAP_in_Gecko-based_Browsers" title="en/SOAP_in_Gecko-based_Browsers">SOAP</a> (no longer supported)</td> <td><a class="external" href="http://www.w3.org/TR/SOAP/">W3C Note</a></td> <td><a class="external" href="http://www.mozilla.org/projects/webservices/">Web Services</a></td> </tr> <tr> <td><a href="/en/XML-RPC" title="en/XML-RPC">XML-RPC</a> (no longer supported)</td> <td><a class="external" href="http://www.xmlrpc.com/spec">UserLand Software</a></td> <td><a class="external" href="http://www.mozilla.org/projects/xmlrpc/">XML-RPC</a></td> </tr> <tr> <td><a href="/en/RDF" title="en/RDF">RDF</a></td> <td><a class="external" href="http://www.w3.org/RDF/">W3C Recommendations</a></td> <td><a href="/en/RDF" title="en/RDF">RDF</a></td> </tr> <tr> <td><a href="/en/SVG" title="en/SVG">SVG</a></td> <td><a class="external" href="http://www.w3.org/Graphics/SVG/">W3C Proposed Recommendation</a></td> <td><a class="external" href="http://www.mozilla.org/projects/svg/">SVG</a></td> </tr> <tr> <td><a href="/en/MathML" title="en/MathML">MathML</a></td> <td><a class="external" href="http://www.w3.org/TR/MathML/">W3C Recommendation</a></td> <td><a class="external" href="http://www.mozilla.org/projects/mathml/">MathML</a></td> </tr> <tr> <td><a href="/en/P3P" title="en/P3P">P3P</a> (no longer supported?)</td> <td><a class="external" href="http://www.w3.org/TR/P3P/">W3C Recommendation</a></td> <td><a class="external" href="http://www.mozilla.org/projects/p3p/">P3P</a></td> </tr> <tr> <td><a href="/en/Accessing_Web_Services_in_Mozilla_Using_WSDL_Proxying" title="en/Accessing_Web_Services_in_Mozilla_Using_WSDL_Proxying">WSDL</a> (no longer supported)</td> <td><a class="external" href="http://www.w3.org/TR/wsdl">W3C Note</a></td> <td><a class="external" href="http://www.mozilla.org/projects/webservices/">Web Services</a></td> </tr> <tr> <td><a href="/en/XBL" title="en/XBL">XBL</a></td> <td><a href="/en/XBL/XBL_1.0_Reference" title="en/XBL/XBL_1.0_Reference">Mozilla's XBL reference</a></td> <td> </td> </tr> <tr> <td><a href="/en/XUL" title="en/XUL">XUL</a></td> <td><a href="/en/XUL_Reference" title="en/XUL_Reference">Mozilla's XUL reference</a></td> <td> </td> </tr> </tbody>
</table>
<h3 name="Roadmap">Roadmap</h3>
<p>Next big tasks would include support for XPointer <code>xpointer()</code> scheme ({{ Bug("32832") }}), <a href="/en/XInclude" title="en/XInclude">XInclude</a> ({{ Bug("201754") }}), XML Catalogs ({{ Bug("98413") }}), <a href="/en/XForms" title="en/XForms">XForms</a> ({{ Bug("97806") }}; work being done on implementing this as an extension), validating parser ({{ Bug("196355") }}) and XML Schemas.</p>
<p>To fully implement <a href="/en/XLink" title="en/XLink">XLink</a>, we need something called a link manager. See some initial <a class="external" href="http://www.mozilla.org/newlayout/xml/lmdesign.html">design documents</a>.</p>
<h3 name="Testing_and_QA">Testing and QA</h3>
<p>We have a lot of testcases linked to from the <a class="external" href="http://www.mozilla.org/quality/browser_sc.html">browser standards compliance</a> QA page.</p>
<p>Most of the core XML test documents on the CVS server are located in {{ Source("content/xml/tests") }}. We also have a couple online: the books demo and the IRS table of contents demo. Both of them demonstrate XML, Associating stylesheets with XML, displaying XML with CSS, Namespaces in XML, XHTML, simple XLinks, and manipulation of XML with scripts via DOM.</p>
<p>There is an XML component in Bugzilla.</p>
<p>We also have the "xhtml" keyword for XHTML bugs (these tend to be scattered across components).</p>
<h3 name="How_can_I_help.3F">How can I help?</h3>
<p>If you can code, look for <a class="link-https" href="https://bugzilla.mozilla.org/buglist.cgi?bug_status=__open__&amp;component=XML&amp;keywords=helpwanted">helpwanted keyword in XML bugs</a>. We don't use that always, so if you want to avoid doing duplicate work you could start working on bugs that have <a class="link-https" href="https://bugzilla.mozilla.org/buglist.cgi?bug_status=__open__&amp;component=XML&amp;target_milestone=Future">Future milestone</a>, or otherwise have a milestone that is set way into the future.</p>
<p>You can always test our XML support. We'd really like to get tests that can be run automatically (this would require knowledge of web development; <code><a href="/en/DOM/document.load" title="en/DOM/document.load">document.load()</a></code> and/or XML Extras might be needed), but probably most of the bugs we get have just been found by normal people trying to do something that works in some other browser and does not work in Mozilla.</p>
<h3>See also</h3>
<ul> <li><a href="/en/E4X" title="en/E4X">E4X</a></li> <li><a href="/En/Code_snippets/QuerySelector" title="En/Code_snippets/QuerySelector">Code snippets for querySelector</a> - useful techniques for navigating DOM using CSS selectors on XML DOM documents (Firefox 3.1 only)</li> <li><a href="En/XML/Identifying_XML_elements_and_documents">Identifying XML elements and documents</a></li>
</ul>
<p> </p>
<p>{{ languages( { "zh-cn": "cn/Mozilla\u4e2d\u7684XML", "it": "it/XML_in_Mozilla", "es": "es/XML_en_Mozilla", "fr": "fr/XML_dans_Mozilla", "ja": "ja/XML_in_Mozilla", "pl": "pl/XML_w_Mozilli" } ) }}</p>
Revert to this revision