<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-menu-disabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-os vector-sticky-header-enabled skin-thumbsize-clientpref-standard" lang="pl" dir="ltr"><head>
    <meta charset="UTF-8">
    <title>SGML</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/png" href="./_res_/favicon.png">
    <link rel="canonical" href="https://pl.wikipedia.org/wiki/SGML"> <link href="./_mw_/ext.cite.parsoid.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/mediawiki.skinning.content.parsoid.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
    <meta name="ResourceLoaderDynamicStyles" content="">
    <link href="./_mw_/ext.gadget.citation-access-info.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.citation-access-info.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.darkmode-overrides.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.darkmode-overrides.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.hlist.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.hlist.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.infobox.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.infobox.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.small-references.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.small-references.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.sprawdz-problemy-szablony.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.sprawdz-problemy-szablony.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.wikiflex.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.gadget.wikiflex.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
    <link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
    <link rel="stylesheet" type="text/css" href="./_res_/footer.css">
    <link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
  </head>
  <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-SGML rootpage-SGML skin-vector-2022 action-view">
    <div class="mw-page-container">
      <div class="mw-page-container-inner">
        <div class="mw-content-container">
          <main id="content" class="mw-body">
            <header class="mw-body-header vector-page-titlebar">
              <h1 id="firstHeading" class="firstHeading mw-first-heading"><span lang="pl" dir="ltr"><span class="mw-page-title-main">SGML</span></span></h1>
            </header>
            <a id="top"></a>
            <div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
              <div id="contentSub">
                <div id="mw-content-subtitle"></div>
              </div>
              <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="pl" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="pl" dir="ltr" data-mw-parsoid-version="0.24.0.0-alpha21" data-mw-html-version="2.8.0"><section data-mw-section-id="0" id="mwAQ"><p id="mwAg"><b id="mwAw"><span lang="en" typeof="mw:Transclusion" id="mwBA">SGML</span></b> (<a rel="mw:WikiLink" href="J%C4%99zyk_angielski" title="Język angielski" typeof="mw:Transclusion" id="mwBQ">ang.</a><span typeof="mw:Entity">&nbsp;</span><em lang="en" id="mwBg">Standard Generalized Markup Language</em>) – standardowy uogólniony <a rel="mw:WikiLink" href="J%C4%99zyk_znacznik%C3%B3w" title="Język znaczników" id="mwBw">język znaczników</a> służący do ujednolicania struktury i formatu różnego typu informacji (danych). Pozwala zapisać je w formie dokumentu tekstowego i dzięki temu łatwo przenosić, wyświetlać i drukować w różnych systemach elektronicznego przekazu danych. <span lang="en" typeof="mw:Transclusion" id="mwCA">SGML</span> jest od roku 1986 standardem <a rel="mw:WikiLink" href="Mi%C4%99dzynarodowa_Organizacja_Normalizacyjna" title="Międzynarodowa Organizacja Normalizacyjna" id="mwCQ">ISO</a> 8879:1986<sup class="mw-ref reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1" id="mwCg"><span class="mw-reflink-text" id="mwCw"><span class="cite-bracket" id="mwDA">[</span>1<span class="cite-bracket" id="mwDQ">]</span></span></a></sup>.</p>

<p id="mwDg"><span lang="en" typeof="mw:Transclusion" id="mwDw">SGML</span> w odróżnieniu od języków znaczników przeznaczonych do konkretnych zastosowań (takich jak <a rel="mw:WikiLink" href="HTML" title="HTML" id="mwEA">HTML</a>) nie jest zbiorem określonych znaczników i reguł ich użytkowania, lecz ogólnym, nadrzędnym językiem służącym do definiowania dowolnych znaczników i ustalania zasad ich poprawnego użytkowania.</p>

<p id="mwEQ">Języka <span lang="en" typeof="mw:Transclusion" id="mwEg">SGML</span> używa się praktycznie do dwóch celów:</p>
<ul id="mwEw"><li id="mwFA">precyzyjnego definiowania zbiorów znaczników przeznaczonych do konkretnych zastosowań – przykładem jest język HTML;</li>
<li id="mwFQ">ujednolicania zasad pisania i przekazywania dokumentów tekstowych w obrębie dużych firm lub instytucji.</li></ul>

<p id="mwFg">W obydwu przypadkach dokument w języku <span lang="en" typeof="mw:Transclusion" id="mwFw">SGML</span> składa się z trzech części:</p>
<ul id="mwGA"><li id="mwGQ">deklaracji dokumentu, która definiuje ogólne reguły stosowane w zapisie dokumentu (np. maksymalna długość nazwy elementu, znak używany jako początek znacznika, domyślnie jest to znak „<code id="mwGg"><span typeof="mw:Entity" id="mwGw">&lt;</span></code>”);</li>
<li id="mwHA"><a rel="mw:WikiLink" href="Document_Type_Definition" title="Document Type Definition" id="mwHQ">DTD</a> – definicji typu dokumentu, czyli definicji wszystkich znaczników i reguł ich stosowania;</li>
<li id="mwHg">właściwego dokumentu – tekst wraz ze znacznikami.</li></ul>

<p id="mwHw">Ze względu na złożoność standardu <span lang="en" typeof="mw:Transclusion" id="mwIA">SGML</span> bardzo mało narzędzi <a rel="mw:WikiLink" href="Implementacja_(informatyka)" title="Implementacja (informatyka)" id="mwIQ">implementuje</a> pełny standard. Zwykle edytory <span lang="en" typeof="mw:Transclusion" id="mwIg">SGML</span> obsługują większość powszechnie używanych elementów języka i interpretują jedynie część pliku deklaracyjnego. W związku z trudnościami implementacyjnymi powstał język i standard <a rel="mw:WikiLink" href="XML" title="XML" id="mwIw">XML</a> będący początkowo podzbiorem reguł <span lang="en" typeof="mw:Transclusion" id="mwJA">SGML</span> (pierwsza wersja powstała w 2000 roku). Standard XML można obsługiwać narzędziami SGML-owymi, modyfikując odpowiednio plik deklaracyjny.</p>

<p id="mwJQ">Ponieważ w praktyce zarówno deklaracja dokumentu <span lang="en" typeof="mw:Transclusion" id="mwJg">SGML</span>, jak i <a rel="mw:WikiLink" href="Document_Type_Definition" title="Document Type Definition" id="mwJw">DTD</a> „zaszyte” są najczęściej w oprogramowaniu (np. w przypadku języka HTML w przeglądarkach i programach do pisania stron <a rel="mw:WikiLink" href="World_Wide_Web" title="World Wide Web" id="mwKA">WWW</a>), użytkownicy końcowi, a nawet osoby przygotowujące na co dzień dokumenty, nie mają bezpośredniej styczności z <span lang="en" typeof="mw:Transclusion" id="mwKQ">DTD</span> tej odmiany języka <span lang="en" typeof="mw:Transclusion" id="mwKg">SGML</span>, z której właśnie korzystają.</p>

</section><section data-mw-section-id="1" id="mwKw" aria-labelledby="Zobacz_też"><div class="mw-heading mw-heading2"><h2 id="Zobacz_też"><span id="Zobacz_te.C5.BC" typeof="mw:FallbackId"></span>Zobacz też</h2></div>
<ul id="mwLA"><li id="mwLQ"><a rel="mw:WikiLink" href="HTML" title="HTML" id="mwLg">HTML</a></li>
<li id="mwLw"><a rel="mw:WikiLink" href="XML" title="XML" id="mwMA">XML</a></li>
<li id="mwMQ"><a rel="mw:WikiLink" href="XBRL" title="XBRL" id="mwMg">XBRL</a></li>
<li id="mwMw"><a rel="mw:WikiLink" href="Odwo%C5%82ania_znakowe_SGML" title="Odwołania znakowe SGML" id="mwNA">odwołania znakowe SGML</a></li>
<li id="mwNQ"><a rel="mw:WikiLink" href="Encja_(SGML)" title="Encja (SGML)" id="mwNg">encja</a></li></ul>

</section><section data-mw-section-id="2" id="mwNw" aria-labelledby="Przypisy"><div class="mw-heading mw-heading2"><h2 id="Przypisy">Przypisy</h2></div>
<div class="mw-references-wrap" typeof="mw:Extension/references mw:Transclusion" id="mwOA"><ol class="mw-references references" id="mwOQ"><li id="cite_note-1" data-mw-footnote-number="1"><span class="mw-cite-backlink" id="mwOg"><a href="#cite_ref-1" rel="mw:referencedBy" id="mwOw"><span class="mw-linkback-text" id="mwPA">↑</span></a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text reference-text"><cite class="citation web" typeof="mw:Transclusion" id="mwPQ">ISO<span typeof="mw:Entity" id="mwPg">:</span><span typeof="mw:Entity" id="mwPw"> </span><a rel="mw:ExtLink nofollow" href="http://www.iso.org/cms/render/live/en/sites/isoorg/contents/data/standard/01/63/16387.html" class="external text" id="mwQA">8879:1986 Information processing -- Text and office systems -- Standard Generalized Markup Language (SGML)</a>.<span typeof="mw:Entity" id="mwQQ"> </span>[dostęp 2019-07-23].<span typeof="mw:Entity" id="mwQg"> </span><span class="lang-list" id="mwQw">(<abbr title="Treść w języku angielskim (English)" id="mwRA">ang.</abbr>)</span>.</cite></span></li>
</ol></div>

</section><section data-mw-section-id="3" id="mwRQ" aria-labelledby="Linki_zewnętrzne"><div class="mw-heading mw-heading2"><h2 id="Linki_zewnętrzne"><span id="Linki_zewn.C4.99trzne" typeof="mw:FallbackId"></span>Linki zewnętrzne</h2></div>
<ul id="mwRg"><li id="mwRw"><a rel="mw:ExtLink nofollow" href="http://www.w3.org/MarkUp/SGML/" class="external text" id="mwSA">SGML ogólnie – W3C</a></li></ul>

<span class="mw-empty-elt" typeof="mw:Transclusion" id="mwSQ"><style data-mw-deduplicate="TemplateStyles:r80314588" typeof="mw:Extension/templatestyles">
/* start https://pl.wikipedia.org/ */


.mw-parser-output #normdaten>div+div{margin-top:0.5em}.mw-parser-output #normdaten>div>div{background:var(--background-color-neutral,#eaecf0);padding:.2em .5em}.mw-parser-output #normdaten ul{margin:0;padding:0}.mw-parser-output #normdaten ul li:first-child{padding-left:.5em;border-left:1px solid var(--border-color-base,#a2a9b1)}


/* end   https://pl.wikipedia.org/ */
</style></span><div id="normdaten" class="catlinks"><div class="normdaten-typ-fehlt"><div><a rel="mw:WikiLink" href="Kontrola_autorytatywna" title="Kontrola autorytatywna">Kontrola autorytatywna</a><span typeof="mw:Entity">&nbsp;</span>(<span class="description"><a rel="mw:WikiLink" href="J%C4%99zyk_znacznik%C3%B3w" title="Język znaczników">język znaczników</a></span>):</div><ul><li><a rel="mw:WikiLink" href="Library_of_Congress_Control_Number" title="Library of Congress Control Number">LCCN</a>:<span typeof="mw:Entity"> </span><span class="uid"><a rel="mw:ExtLink nofollow" href="http://lccn.loc.gov/sh86006277" class="external text">sh86006277</a></span></li><li><a rel="mw:WikiLink" href="Gemeinsame_Normdatei" title="Gemeinsame Normdatei">GND</a>:<span typeof="mw:Entity"> </span><span class="uid"><a rel="mw:ExtLink nofollow" href="http://d-nb.info/gnd/4234486-4" class="external text">4234486-4</a></span></li><li><a rel="mw:WikiLink" href="Biblioth%C3%A8que_nationale" title="Bibliothèque nationale">BnF</a>:<span typeof="mw:Entity"> </span><span class="uid"><a rel="mw:ExtLink nofollow" href="http://catalogue.bnf.fr/ark:/12148/cb124683709" class="external text">124683709</a></span></li><li><a rel="mw:WikiLink" href="Hiszpa%C5%84ska_Biblioteka_Narodowa" title="Hiszpańska Biblioteka Narodowa">BNE</a>:<span typeof="mw:Entity"> </span><span class="uid"><a rel="mw:ExtLink nofollow" href="http://catalogo.bne.es/uhtbin/authoritybrowse.cgi?action=display&amp;authority_id=XX550731" class="external text">XX550731</a></span></li><li><a rel="mw:WikiLink" href="Biblioteka_Narodowa_Izraela" title="Biblioteka Narodowa Izraela">J9U</a>:<span typeof="mw:Entity"> </span><span class="uid"><a rel="mw:ExtLink nofollow" href="https://www.nli.org.il/en/authorities/987007565938605171" class="external text">987007565938605171</a></span></li></ul></div><div class="normdaten-andere"><div><a rel="mw:WikiLink" href="Encyklopedia_internetowa" title="Encyklopedia internetowa">Encyklopedie internetowe</a>:</div>

<ul><li><a rel="mw:WikiLink" href="Encyklopedia_Britannica" title="Encyklopedia Britannica">Britannica</a>:<span typeof="mw:Entity"> </span><span class="uid"><a rel="mw:ExtLink nofollow" href="https://www.britannica.com/technology/SGML" class="external text">technology/SGML</a></span></li>
<li><a rel="mw:WikiLink" href="Nationalencyklopedin" title="Nationalencyklopedin">NE.se</a>:<span typeof="mw:Entity"> </span><span class="uid"><a rel="mw:ExtLink nofollow" href="https://www.ne.se/uppslagsverk/encyklopedi/lång/sgml" class="external text">sgml</a></span></li></ul>
</div></div>



</section></div><!--htdig_noindex--><div><div class="zim-footer">
    This article is issued from <a class="external text" title="Last edited on 2023-12-31" href="https://pl.wikipedia.org/wiki/?title=SGML&amp;oldid=72366015">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.pl">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
            </div>
          </main>
        </div>
      </div>
    </div>
     <script src="./_webp_/webpHandler.js"></script>
  

</body></html>