mozilla

Revision 262996 of Úvod_do_XML

  • Revision slug: Úvod_do_XML
  • Revision title: Úvod do XML
  • Revision id: 262996
  • Created:
  • Creator: DJ.Maca
  • Is current revision? Ne
  • Comment /* Doporučení */

Revision Content

{{wiki.template('PotřebujePřeložit')}}

Co je to XML?

XML, which stands for Extensible Markup Language, is a W3C recommended general purpose markup language. XML is a subset of SGML.

Many languages are based on XML; for example XHTML, MathML, SVG, XUL, RSS, and RDF are all based on XML.

Proč HTML nefunguje

HTML markup is a fixed language designed only for presentation purposes, while XML is user-defined and is used to define data content.

HTML is limited to these three areas: intelligence, maintenance, and adaptation. XML is strong in intelligence, adaptation, maintenance, and simplicity.

While XML is different from HTML, the two can be used together along with XSLT.

"Správné" XML

For an XML document to be correct it must be a well-formed document, conforming to all of XML's syntax rules. Most browsers, including Mozilla, offer a debugger that can identify poorly-formed XML documents.

Zobrazení XML

There are two ways in which XML can be used to aid in presentation, applying to various presentation methods from transforming HTML to creating PDF or image code.

One way to have a style on an XML page is to use CSS with the xml-stylesheet declaration.

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

In combination with the powerful XSLT, which is capable of transforming XML markup into other forms, XML is incredibly versatile.

<?xml-stylesheet type="text/xsl" href="transform.xsl"?>

Doporučení

Tento článěk je pouze rychlé seznámení, co je to XML. Pro více informací o XML by jste se měli podívat na Internetu po článcích zabývající se do hloubky XML.

Naučení značkovacího jazyka HTML vám pomůže lépe pochopit XML. Měli by jste také prozkoumat Mozilla Developer Center pro více informací.

Document Information

  • Author(s): Justin G. Shreve
  • Last Updated Date: May 19th
{{ wiki.languages( { "en": "en/XML_Introduction", "fr": "fr/Introduction_\u00e0_XML", "pl": "pl/Wprowadzenie_do_XMLa" } ) }}

Revision Source

<p>
{{wiki.template('PotřebujePřeložit')}}
</p>
<h3 name="Co_je_to_XML.3F"> Co je to XML? </h3>
<p>XML, which stands for <b>Extensible Markup Language</b>, is a <a class="external" href="http://www.w3.org/">W3C recommended</a> general purpose markup language. XML is a subset of SGML.
</p><p>Many languages are based on XML; for example <a href="cs/XHTML">XHTML</a>, <a href="cs/MathML">MathML</a>, <a href="cs/SVG">SVG</a>, <a href="cs/XUL">XUL</a>, <a href="cs/RSS">RSS</a>, and <a href="cs/RDF">RDF</a> are all based on XML.
</p>
<h3 name="Pro.C4.8D_HTML_nefunguje"> Proč HTML nefunguje </h3>
<p>HTML markup is a fixed language designed only for presentation purposes, while XML is user-defined and is used to define data content.
</p><p>HTML is limited to these three areas: intelligence, maintenance, and adaptation. XML is strong in intelligence, adaptation, maintenance, and simplicity.
</p><p>While XML is different from HTML, the two can be used together along with <a class="external" href="http://developer.mozilla.org/docs/XSLT">XSLT</a>.
</p>
<h3 name=".22Spr.C3.A1vn.C3.A9.22_XML"> "Správné" XML </h3>
<p>For an XML document to be correct it must be a well-formed document, conforming to all of XML's syntax rules. Most browsers, including Mozilla, offer a debugger that can identify poorly-formed XML documents.
</p>
<h3 name="Zobrazen.C3.AD_XML"> Zobrazení XML </h3>
<p>There are two ways in which XML can be used to aid in presentation, applying to various presentation methods from transforming HTML to creating PDF or image code.
</p><p>One way to have a style on an XML page is to use CSS with the <code>xml-stylesheet</code> declaration.
</p>
<pre>&lt;?xml-stylesheet type="text/css" href="stylesheet.css"?&gt;</pre>
<p>In combination with the powerful XSLT, which is capable of transforming XML markup into other forms, XML is incredibly versatile.
</p>
<pre>&lt;?xml-stylesheet type="text/xsl" href="transform.xsl"?&gt;</pre>
<h3 name="Doporu.C4.8Den.C3.AD"> Doporučení </h3>
<p>Tento článěk je pouze rychlé seznámení, co je to XML. Pro více informací o XML by jste se měli podívat na Internetu po článcích zabývající se do hloubky XML.
</p><p>Naučení značkovacího jazyka HTML vám pomůže lépe pochopit XML. Měli by jste také prozkoumat Mozilla Developer Center pro více informací.
</p>
<div class="originaldocinfo">
<h3 name="Document_Information"> Document Information </h3>
<ul><li> Author(s): Justin G. Shreve
</li><li> Last Updated Date: May 19th 
</li></ul>
</div>
{{ wiki.languages( { "en": "en/XML_Introduction", "fr": "fr/Introduction_\u00e0_XML", "pl": "pl/Wprowadzenie_do_XMLa" } ) }}
Revert to this revision