diff options
Diffstat (limited to 'files/pl/xml_w_mozilli/index.html')
-rw-r--r-- | files/pl/xml_w_mozilli/index.html | 283 |
1 files changed, 0 insertions, 283 deletions
diff --git a/files/pl/xml_w_mozilli/index.html b/files/pl/xml_w_mozilli/index.html deleted file mode 100644 index 7abdd8dd3c..0000000000 --- a/files/pl/xml_w_mozilli/index.html +++ /dev/null @@ -1,283 +0,0 @@ ---- -title: XML w Mozilli -slug: XML_w_Mozilli -tags: - - Strony_wymagające_dopracowania - - Wszystkie_kategorie - - XML -translation_of: Archive/Mozilla/XML_in_Mozilla ---- -<p>Mozilla posiada dobre wsparcie <a href="/pl/XML" title="pl/XML">XML</a>-a. Wspieranych jest wiele Rekomendacji i szkiców Konsorcjum World Wide Web (<a class="external" href="http://w3c.org/">W3C</a>), jak również innych spokrewnionych technologii.</p> - -<div class="note"> -<p>This page is outdated. Please help updating it with current information.</p> -</div> - -<h3 id="Wspierane_Podstawowe_Rekomendacje_W3C_dot._XML" name="Wspierane_Podstawowe_Rekomendacje_W3C_dot._XML">Wspierane Podstawowe Rekomendacje W3C dot. XML</h3> - -<p>Podstawowe wsparcie XML-a obejmuje parsowanie dokumentów XML bez walidacji (stosujemy w tym celu parser Expat), wyświetlanie dokumentów XML wraz z arkuszami CSS, manipulowanie dokumentami XML poprzez DOM, kojarzenie arkuszami stylów z dokumentami XML, oraz przestrzenie nazw w XML-u. Podstawowe wsparcie jest bardzo dobre, z kilkoma błędami.</p> - -<h4 id="DTD_i_inne_encje_zewn.C4.99trzne" name="DTD_i_inne_encje_zewn.C4.99trzne">DTD i inne encje zewnętrzne</h4> - -<p>Mozilla nie wczytuje zewnętrznych encji z sieci Web.</p> - -<p>Mozilla może wczytywać encje zewnętrzne których identyfikator systemu stosuje protokół <code>chrome</code>. Funkcjonalność ta jest stosowana głównie podczas <a href="/pl/Kurs_XUL/Lokalizacja" title="pl/Kurs_XUL/Lokalizacja">lokalizacji Mozilli do różnych języków</a> (ciągi znaków dla UI przechowywane są w zewnętrznych plikach DTD). Kolejnym wyjątkiem jest encja której identyfikator systemu jest relatywną ścieżką, a parametr standalone dokumentu nie został ustawiony w deklaracji XML (domyślnie), w takim wypadku Mozilla będzie szukać takiej encji w katalogu <code><bin>/res/dtd</code>.</p> - -<p>Mozilla może również robić wyjątki dla dokumentów XHTML, zobacz poniżej.</p> - -<p>Mozilla czyta podzbiory wewnętrzne (DTD), i w specjalnych przypadkach zewnętrzne DTD jak opisane powyżej, i użyje tych informacji w celu rozpoznania typu atrybutów ID, domyślnych wartości atrybutów, i generalnych encji.</p> - -<h4 id="Dodatkowe_informacje" name="Dodatkowe_informacje">Dodatkowe informacje</h4> - -<p>Duża część Obiektowego modelu dokumentu (<a class="external" href="http://www.w3.org/DOM/">DOM</a>, Rekomendacje i szkice W3C) dotyczy się XML-a. Podobnie, Kaskadowe arkusze stylów (<a class="external" href="http://www.w3.org/Style/CSS/">CSS</a>, Rekomendacje i szkice W3C) mogą zostać zastosowane w celu stylizacji dokumentów XML.</p> - -<p>Kod większości podstawowego wsparcia dla XML-a może zostać znaleziony w następujących katalogach serwera CVS Mozilli: {{ Source("content/xml/") }}, {{ Source("parser/expat/") }}oraz {{ Source("parser/htmlparser/") }}.</p> - -<p>Wybór grupy dyskusyjnej Mozilli dot. XML-a zalezy od natury pytania. Dla przykładu, pytania związane z technologią DOM powinny być zadawane na grupie mozilla.dev.tech.dom, pytania dotyczące stylów - na mozilla.dev.tech.css, i tak dalej. Grupa obejmująca dyskusje dotyczące ogólnie XML-a to mozilla.dev.tech.xml.</p> - -<table class="standard-table"> - <tbody> - <tr> - <td class="header">Specyfikacja lub technologia</td> - <td class="header">Status i/lub szersza dokumentacja</td> - </tr> - <tr> - <td>XML</td> - <td><a class="external" href="http://www.w3.org/TR/REC-xml">Rekomendacja W3C</a></td> - </tr> - <tr> - <td>Przestrzenie nazw w XML</td> - <td><a class="external" href="http://www.w3.org/TR/REC-xml-names/">Rekomendacja W3C</a></td> - </tr> - <tr> - <td>Kojarzenie arkuszy stylów z dokumentami XML</td> - <td><a class="external" href="http://www.w3.org/TR/xml-stylesheet/">Rekomendacja W3C</a></td> - </tr> - <tr> - <td>Stylizacja dokumentów XML z zastosowaniem CSS</td> - <td> </td> - </tr> - <tr> - <td>Manipulowanie dokumentami XML z zastosowaniem skryptów i DOM</td> - <td> </td> - </tr> - </tbody> -</table> - -<h3 id="Inne_wspierane_Rekomendacje_W3C_ws._XML" name="Inne_wspierane_Rekomendacje_W3C_ws._XML">Inne wspierane Rekomendacje W3C ws. XML</h3> - -<table class="standard-table"> - <tbody> - <tr> - <td class="header">Specyfikacja lub Technologia</td> - <td class="header">Dokumentacja</td> - </tr> - <tr> - <td>XHTML</td> - <td><a class="external" href="http://www.w3.org/TR/xhtml1/">Rekomendacja W3C</a></td> - </tr> - <tr> - <td>XML Base (tylko łącza, nie stosowane z właściwościami <code>:visited</code> etc. <a href="/pl/CSS" title="pl/CSS">CSS</a>)</td> - <td><a class="external" href="http://www.w3.org/TR/xmlbase/">Rekomendacja W3C</a></td> - </tr> - <tr> - <td>XLink (tylko proste XLink-i)</td> - <td><a class="external" href="http://www.w3.org/TR/xlink/">Rekomendacja W3C</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">"propozycja" W3C</a></td> - </tr> - <tr> - <td>XPointer Framework</td> - <td><a class="external" href="http://www.w3.org/TR/xptr-framework/">Rekomendacja W3C</a></td> - </tr> - <tr> - <td>Schemat <code>element()</code> technologii XPointer</td> - <td><a class="external" href="http://www.w3.org/TR/xptr-element/">Rekomendacja W3C</a></td> - </tr> - <tr> - <td>Schemat <code>xmlns()</code> technologii XPointer</td> - <td><a class="external" href="http://www.w3.org/TR/xptr-xmlns/">Rekomendacja W3C</a></td> - </tr> - <tr> - <td>Schemat <code>fixptr()</code> technologii XPointer</td> - <td>Ten schemat jest po prostu obiektem opakowującym FIXptr</td> - </tr> - <tr> - <td>Schemat <code>xpath1()</code> technologii XPointer</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>document.load()</code>, <code>document.async</code></td> - <td><a class="external" href="http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS">Część modułu DOM Level 3 Load & Save, "Working Draft" W3C</a></td> - </tr> - </tbody> -</table> - -<h4 id="XHTML" name="XHTML">XHTML</h4> - -<p>Mamy rozsądne wsparcie <a href="/pl/XHTML" title="pl/XHTML">XHTML</a>-a, większość rzeczy powinna działać. Dokumenty XHTML traktujemy różnie w zależności od ich typu mime (lub rozszerzenia jeśli pliki są ładowane z dysków lokalnych). Pliki, które przechodzą przez <em>code path</em> <a href="/pl/HTML" title="pl/HTML">HTML</a>-a nie wymagają sprawdzenia poprawności składni. Jak zauważysz, nie wszystkie właściwości XHTML-a są wspierane gdy wykonujesz code path HTML-a.</p> - -<table class="standard-table"> - <tbody> - <tr> - <td class="header">Typ MIME</td> - <td class="header">Rozszerzenie pliku</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>Dokument nie musi być w całkości w języku XHTML. Można używać elementów XHTML-a w dowolnym dokumencie XML wykorzystując przestrzeń nazw XHTML. Przykłady można znaleźć w sekcji {{ Anch("Testing and QA") }}. Właściwa przestrzeń nazw dla XHTML-a znajduje się na stronie <code><span class="nowiki">http://www.w3.org/1999/xhtml</span></code>.</p> - -<p>Weź pod uwagę, iż obiekty XHTML-a, takie jak <code>&auml;</code> działają jedynie w dokumentach zgodnych z XHTML-em z prawidłowym Formalnym Identyfikatorem Publicznym (lub innymi słowy, sekcją DOCTYPE z identyfikatorem PUBLIC). Obiekty XHTML-a nie będą działać w dowolnym dokumencie XML, nawet jeśli zostanie użyta przestrzeń nazw XHTML. Publiczne identyfikatory, które są rozpoznawane to:</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 id="XML_Linking_and_Pointing" name="XML_Linking_and_Pointing">Linkowanie i Wskazywanie XML</h4> - -<p>Wsparcie Linkowania w XML składa się z <a class="external" href="http://www.w3.org/TR/xmlbase">XML Base</a> (wykorzystywanego jedynie, gdy najedziesz myszką na link lub klikniesz link) oraz prostego <a class="external" href="http://www.w3.org/TR/xlink/">XLinks</a>. Możesz także wykorzystywać elementy linkujące z przestrzeni nazw XHTML. Przykłady znajdziesz w sekcji {{ Anch("Testing and QA") }}.</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&action=view">FIXptr links</a> and a <a class="link-https" href="https://bugzilla.mozilla.org/attachment.cgi?id=61629&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&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 id="DOM_Load_and_Save_Methods" name="DOM_Load_and_Save_Methods">DOM Load and Save Methods</h4> - -<p><code>document.load()</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 & Save module</a>. Mozilla currently implements only the <code>load()</code> method and the <code>async</code> property. Since 1.4alpha it has been possible to load documents synchronously, before that it was only asynchronous. {{ Source("content/xml/tests/load/", "See the load sample") }} in the XML tests directory. (Loading the load.html file from the LXR generated page will not work because LXR will munge the test.xml file into HTML and serve it as HTML. To test this functionality, create the files on your local disk or on a webserver.)</p> - -<h3 id="Outside_Supported_XML_W3C_Recommendations" 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="/pl/XSLT" title="pl/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="/pl/XPath" title="pl/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="/pl/XMLHttpRequest" title="pl/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="/pl/DOMParser" title="pl/DOMParser">DOMParser</a> and <a href="/pl/XMLSerializer" title="pl/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="/pl/SAX" title="pl/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="/pl/SOAP_in_Gecko-based_Browsers" title="pl/SOAP_in_Gecko-based_Browsers">SOAP</a></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="/pl/XML-RPC" title="pl/XML-RPC">XML-RPC</a></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="/pl/RDF" title="pl/RDF">RDF</a></td> - <td><a class="external" href="http://www.w3.org/RDF/">W3C Recommendations</a></td> - <td><a href="/pl/RDF" title="pl/RDF">RDF</a></td> - </tr> - <tr> - <td><a href="/pl/SVG" title="pl/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="/pl/MathML" title="pl/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="/pl/P3P" title="pl/P3P">P3P</a></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="/pl/Accessing_Web_Services_in_Mozilla_Using_WSDL_Proxying" title="pl/Accessing_Web_Services_in_Mozilla_Using_WSDL_Proxying">WSDL</a></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="/pl/XBL" title="pl/XBL">XBL</a></td> - <td><a href="/pl/XBL/XBL_1.0_Reference" title="pl/XBL/XBL_1.0_Reference">Mozilla's XBL reference</a></td> - <td> </td> - </tr> - <tr> - <td><a href="/pl/XUL" title="pl/XUL">XUL</a></td> - <td><a href="/pl/Dokumentacja_XUL" title="pl/Dokumentacja_XUL">Dokumentacja XUL Mozilli</a></td> - <td> </td> - </tr> - </tbody> -</table> - -<h3 id="Roadmap" name="Roadmap">Roadmap</h3> - -<p>Next big tasks would include support for XPointer <code>xpointer()</code> 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) }}), XML Schemas, and incremental layout of XML document ({{ Bug(18333) }}).</p> - -<p>To fully implement XLink, 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 id="Testing_and_QA" 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 id="How_can_I_help.3F" name="How_can_I_help.3F">How can I help?</h3> - -<p>If you can code, look for <a class="external" href="http://bugzilla.mozilla.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Browser&component=XML&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&status_whiteboard=&status_whiteboard_type=substring&keywords=helpwanted&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&namedcmd=joki_not_fixed_not_future&newqueryname=&order=Reuse+same+sort+as+last+time">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="external" href="http://bugzilla.mozilla.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Browser&component=XML&target_milestone=Future&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&status_whiteboard=&status_whiteboard_type=substring&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&namedcmd=joki_not_fixed_not_future&newqueryname=&order=Reuse+same+sort+as+last+time">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>document.load()</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> - -<p>{{ languages( { "en": "en/XML_in_Mozilla", "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" } ) }}</p> |