<!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-theme-clientpref-thumb-standard" lang="uk" 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://uk.wikipedia.org/wiki/SGML"> <link href="./_mw_/ext.pygments.css" rel="stylesheet" type="text/css">
    <link href="./_mw_/ext.wikimediamessages.styles.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 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 class="mw-page-title-main">SGML</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="uk" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="uk" dir="ltr"><p><b>Станда́ртна узага́льнена мо́ва розмі́тки</b> (<a href="%D0%90%D0%BD%D0%B3%D0%BB%D1%96%D0%B9%D1%81%D1%8C%D0%BA%D0%B0_%D0%BC%D0%BE%D0%B2%D0%B0" title="Англійська мова">англ.</a> <i lang="en">Standard Generalized Markup Language</i>, <b>SGML</b>)&nbsp;— <a href="%D0%9C%D0%B5%D1%82%D0%B0%D0%BC%D0%BE%D0%B2%D0%B0" title="Метамова">метамова</a>, за допомогою якої можна визначати <a href="%D0%9C%D0%BE%D0%B2%D0%B0_%D1%80%D0%BE%D0%B7%D0%BC%D1%96%D1%82%D0%BA%D0%B8_%D0%B4%D0%B0%D0%BD%D0%B8%D1%85" title="Мова розмітки даних">мову розмітки</a> для документів. SGML&nbsp;— нащадок розробленої 1960 року в <a href="IBM" title="IBM">IBM</a> мови GML (<a href="%D0%90%D0%BD%D0%B3%D0%BB%D1%96%D0%B9%D1%81%D1%8C%D0%BA%D0%B0_%D0%BC%D0%BE%D0%B2%D0%B0" title="Англійська мова">англ.</a> <i lang="en">Generalized Markup Language</i>), яку не варто плутати з Geography Markup Language, яку розробляв Open GIS Consortium.
</p><p>Спочатку <i>SGML</i> була розроблена для можливості спільного використання документів, що мають читатися машинами, у великих урядових та аерокосмічних проектах. Також вона широко використовується в друкувальній та видавничій сфері, але складність документа ускладнила його широке розповсюдження для повсякденного використання.
</p>

<div class="mw-heading mw-heading2"><h2 id="Структура"><span id=".D0.A1.D1.82.D1.80.D1.83.D0.BA.D1.82.D1.83.D1.80.D0.B0"></span>Структура</h2></div>
<p>Три основні частини SGML документа, це
</p>
<ol><li>SGML декларація;</li>
<li><a href="Document_Type_Definition" title="Document Type Definition">Document Type Definition</a>;</li>
<li>Зміст SGML-документа, принаймні, повинен бути кореневий елемент.</li></ol>
<p>SGML надає множину варіантів синтаксичної розмітки для використання різними прикладними програмами. Змінюючи SGML Declaration можна навіть відмовитись від використання кутових дужок, хоча, цей синтаксис вважається стандартним, так званим <i>concrete reference syntax</i>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Синтаксис"><span id=".D0.A1.D0.B8.D0.BD.D1.82.D0.B0.D0.BA.D1.81.D0.B8.D1.81"></span>Синтаксис</h2></div>
<p>Приклад SGML синтаксису:
</p>
<div class="mw-highlight mw-highlight-lang-xml mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="nt">&lt;QUOTE</span><span class="w"> </span><span class="na">TYPE=</span><span class="s">"example"</span><span class="nt">&gt;</span><span class="w"> </span>
<span class="w"> </span>typically<span class="w"> </span>something<span class="w"> </span>like<span class="w"> </span><span class="nt">&lt;ITALICS&gt;</span>this<span class="nt">&lt;/ITALICS&gt;</span><span class="w"> </span>
<span class="w"> </span><span class="nt">&lt;/QUOTE&gt;</span>
</pre></div>
<p>SGML це стандарт <a href="ISO" class="mw-redirect" title="ISO">ISO</a> «ISO 8879:1986 Information processing—Text and office systems—Standard Generalized Markup Language (SGML)»
</p><p>Як <a href="HTML" title="HTML">HTML</a>, так і <a href="XML" title="XML">XML</a> похідні від SGML. HTML це деяка прикладна програма (застосування) на SGML, а XML це підмножина SGML, розроблена для спрощення процесу машинного розбору документа. Іншими прикладними програмами на SGML є <a href="DocBook" title="DocBook">SGML Docbook</a> (документування), і «Z Format» (типографія та документування).
</p>
<div class="mw-heading mw-heading2"><h2 id="Див._також"><span id=".D0.94.D0.B8.D0.B2._.D1.82.D0.B0.D0.BA.D0.BE.D0.B6"></span>Див. також</h2></div>
<p><a href="Text_Encoding_Initiative" title="Text Encoding Initiative">ТЕІ (ініціатива кодування тексту)</a>
</p>
<div class="mw-heading mw-heading2"><h2 id="Посилання"><span id=".D0.9F.D0.BE.D1.81.D0.B8.D0.BB.D0.B0.D0.BD.D0.BD.D1.8F"></span>Посилання</h2></div>
<ul><li><a rel="nofollow" class="external free" href="https://web.archive.org/web/20050816221127/http://www.y12.doe.gov/sgml/wg8/wg8home.htm">https://web.archive.org/web/20050816221127/http://www.y12.doe.gov/sgml/wg8/wg8home.htm</a>&nbsp;— ISO/IEC JTC1/WG4 Web Service: Document Description and Processing Languages<style data-mw-deduplicate="TemplateStyles:r44275645">
/* start https://uk.wikipedia.org/ */


.mw-parser-output .ref-info{font-size:85%;cursor:help;margin-left:0.2em;color:var(--color-subtle,#54595d)}


/* end   https://uk.wikipedia.org/ */
</style><span title="англійською мовою" class="ref-info">(англ.)</span></li>
<li><a rel="nofollow" class="external free" href="http://www.w3.org/MarkUp/SGML/">http://www.w3.org/MarkUp/SGML/</a>&nbsp;— <small>[<a rel="nofollow" class="external text" href="https://web.archive.org/web/20060110222022/http://www.w3.org/MarkUp/SGML/">Архівовано</a> 10 січня 2006 у <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a>.]</small> Overview of SGML Resources at W3C's website<span title="англійською мовою" class="ref-info">(англ.)</span></li>
<li><a rel="nofollow" class="external text" href="http://lib.custis.ru/index.php/SGML_Declaration">SGML декларації</a> <small>[<a rel="nofollow" class="external text" href="https://web.archive.org/web/20070928061327/http://lib.custis.ru/index.php/SGML_Declaration">Архівовано</a> 28 вересня 2007 у <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a>.]</small><span title="російською мовою" class="ref-info">(рос.)</span> і <a rel="nofollow" class="external text" href="http://lib.custis.ru/index.php/DTD">DTD</a> <small>[<a rel="nofollow" class="external text" href="https://web.archive.org/web/20070928061239/http://lib.custis.ru/index.php/DTD">Архівовано</a> 28 вересня 2007 у <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a>.]</small>.<span title="російською мовою" class="ref-info">(рос.)</span></li></ul>
<p><br>
</p>

<style data-mw-deduplicate="TemplateStyles:r47755060">
/* start https://uk.wikipedia.org/ */


.mw-parser-output .portal-bar{font-weight:bold;display:flex;justify-content:center;align-items:baseline}.mw-parser-output .portal-bar-normal{background-color:var(--background-color-interactive-subtle,#f8f9fa);color:inherit;border:1px solid var(--border-color-base,#a2a9b1)}.mw-parser-output .portal-bar-category{background:var(--background-color-progressive-subtle,#eaf3ff);color:inherit;border:1px #c5d7f5 solid;box-shadow:0 3px 3px var(--background-color-progressive-subtle,#eaf3ff)}.mw-parser-output .portal-bar-bordered{padding:0 2em;clear:both;margin:1em auto}.mw-parser-output .portal-bar-related{font-size:100%;justify-content:flex-start}.mw-parser-output .portal-bar-unbordered{padding:0 1.7em;margin-left:0}.mw-parser-output .portal-bar-content{display:flex;flex-flow:row wrap;align-items:baseline;flex:0 1 auto;padding:0 0 0.5em 0;column-gap:2em;list-style:none;justify-content:center}.mw-parser-output .portal-bar-content-related{margin:0;list-style:none}.mw-parser-output .portal-bar-item{display:inline-block;margin:0.15em 0;min-height:24px;line-height:24px}@media screen and (max-width:768px){.mw-parser-output .portal-bar{font-weight:bold;display:flex;flex-flow:column wrap;align-items:baseline}.mw-parser-output .portal-bar-related{font-size:100%;align-items:flex-start}.mw-parser-output .portal-bar-content{display:flex;flex-flow:row wrap;align-items:center;flex:0;margin:0 auto;column-gap:2em;border-top:1px solid var(--border-color-base,#a2a9b1);list-style:none;justify-content:center}.mw-parser-output .portal-bar-content-related{border-top:none;margin:0;list-style:none}}.mw-parser-output .navbox+link+.portal-bar,.mw-parser-output .navbox+style+.portal-bar,.mw-parser-output .navbox+link+.portal-bar-bordered,.mw-parser-output .navbox+style+.portal-bar-bordered,.mw-parser-output .sister-bar+link+.portal-bar,.mw-parser-output .sister-bar+style+.portal-bar,.mw-parser-output .portal-bar+.navbox-styles+.navbox,.mw-parser-output .portal-bar+.navbox-styles+.sister-bar{margin-top:-1px}


/* end   https://uk.wikipedia.org/ */
</style></div><!--htdig_noindex--><div><div class="zim-footer">
    This article is issued from <a class="external text" title="Last edited on 2023-08-23" href="https://uk.wikipedia.org/wiki/?title=SGML&amp;oldid=40219624">Вікіпедія</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.uk">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>