{"id":137,"date":"2006-10-21T14:48:24","date_gmt":"2006-10-21T12:48:24","guid":{"rendered":"https:\/\/bob-team.de\/wordpress\/?page_id=137"},"modified":"2008-02-12T11:01:36","modified_gmt":"2008-02-12T10:01:36","slug":"docbook-elemente","status":"publish","type":"page","link":"https:\/\/bob-team.de\/wordpress\/eclipse-und-docbook\/docbook-elemente\/","title":{"rendered":"Erste Schritte"},"content":{"rendered":"<p>Dieser Artikel listet wichtige <em>DocBook<\/em>-Elemente auf. Eine &Uuml;bersicht aller Elemente finden sich im <a href=\"http:\/\/www.docbook.org\/tdg\/en\/html\/\"><em>&quot;DocBook: The Definitive Guide&quot;<\/em><\/a>.<\/p>\n<h3>Bezeichner<\/h3>\n<pre>&lt;wordasword&gt;Bezeichner&lt;\/wordasword&gt;<\/pre>\n<p>Ergebnis: <em>Bezeichner<\/em><\/p>\n<pre>&lt;emphasis role=\"bold\"&gt;Bezeichner&lt;\/emphasis&gt;<\/pre>\n<p>Ergebnis: <strong>Bezeichner<\/strong><\/p>\n<h3>Bez\u00fcge<\/h3>\n<pre>&lt;xref <font color=\"magenta\">linkend=&quot;bild.png&quot;<\/font> \/&gt;<\/pre>\n<p>Ergebnis: Abbildung 2.3, \u201eBildtitel\u201c (ist beim Ziel <em>xreflabel<\/em> gesetzt, wird dieser Wert als Text verwendet)<\/p>\n<h3>Bilder<\/h3>\n<p>Ein Bild mit Titel und Eintrag im Abbildungsverzeichnis:<\/p>\n<pre>&lt;figure <font color=\"magenta\">id=&quot;bild.png&quot;<\/font>&gt;\r\n   &lt;title&gt;Bildtitel&lt;\/title&gt;\r\n   &lt;mediaobject&gt;\r\n      &lt;imageobject&gt;\r\n         &lt;imagedata fileref=&quot;images\/p3\/bild.png&quot; format=&quot;PNG&quot; \/&gt;\r\n      &lt;\/imageobject&gt;\r\n   &lt;\/mediaobject&gt;\r\n&lt;\/figure&gt;<\/pre>\n<p>Eine Grafik innerhalb von Text ohne Titel und Eintrag im Verzeichnis:<\/p>\n<pre>&lt;inlinegraphic fileref=&quot;images\/BILD.png&quot; align=&quot;left&quot; \r\nformat=&quot;PNG&quot; \/&gt;<\/pre>\n<h3>Buch<\/h3>\n<pre>&lt;?xml version=&quot;1.0&quot;?&gt;\r\n&lt;!DOCTYPE book SYSTEM &quot;file:\/C:\/docbook\/4.3\/docbookx.dtd&quot;&gt;\r\n&lt;book lang=&quot;de&quot;&gt;\r\n   &lt;title&gt;Beispiel-Buch&lt;\/title&gt;\t\r\n   &lt;bookinfo&gt;\r\n      &lt;author&gt;\r\n         &lt;firstname&gt;Karl&lt;\/firstname&gt;\r\n         &lt;surname&gt;Mustermann&lt;\/surname&gt;\r\n         &lt;email&gt;karl@mustermann.de&lt;\/email&gt;\r\n      &lt;\/author&gt;\r\n   &lt;\/bookinfo&gt;\r\n   <font color=\"blue\">&lt;chapter&gt;\r\n      &lt;title&gt;Kapitel 1&lt;\/title&gt;<\/font>\r\n      <font color=\"#ffcc66\">&lt;section&gt;\r\n         &lt;title&gt;Abschnitt 1&lt;\/title&gt;\r\n         &lt;para&gt;Und der Text von Abschnitt 1.&lt;\/para&gt;\r\n      &lt;\/section&gt;<\/font>\r\n   <font color=\"blue\">&lt;\/chapter&gt;<\/font>\r\n&lt;\/book&gt;<\/pre>\n<h3>Fu\u00dfnoten<\/h3>\n<pre>&lt;footnote&gt;&lt;para&gt;Text&lt;\/para&gt;&lt;\/footnote&gt;<\/pre>\n<p>&#8230;wird direkt im Flie\u00dftext eingef&uuml;gt.<\/p>\n<h3>Glossar<\/h3>\n<pre>&lt;glossary&gt;\r\n   &lt;title&gt;Titel&lt;\/title&gt;\r\n   &lt;para&gt;Text&lt;\/para&gt;\r\n   <font color=\"blue\">&lt;glossdiv&gt;\r\n      &lt;title&gt;A&lt;\/title&gt;\r\n      <font color=\"#ffcc66\">&lt;glossentry&gt;\r\n         &lt;glossterm&gt;Anton&lt;\/glossterm&gt;\r\n         &lt;glossdef&gt;\r\n            &lt;para&gt;Beschreibung&lt;\/para&gt;\r\n         &lt;\/glossdef&gt;\r\n      &lt;\/glossentry&gt;<\/font>\r\n   &lt;\/glossdiv&gt;<\/font>\r\n&lt;\/glossary&gt;<\/pre>\n<h3>GUI-Elemente<\/h3>\n<p>Men\u00fcstrukturen:<\/p>\n<pre>&lt;menuchoice&gt;\r\n   &lt;guimenu&gt;Bearbeiten&lt;\/guimenu&gt;\r\n   &lt;guimenuitem&gt;Kopieren&lt;\/guimenuitem&gt;\r\n&lt;\/menuchoice&gt;<\/pre>\n<p>Schaltfl&auml;chen:<\/p>\n<pre>&lt;guibutton&gt;Enter&lt;\/guibutton&gt;<\/pre>\n<p>Icons:<\/p>\n<pre>&lt;guiicon&gt;\r\n   &lt;inlinegraphic fileref=&quot;images\/bild.png&quot;\/&gt;\r\n&lt;\/guiicon&gt;<\/pre>\n<p>Beschriftungen:<\/p>\n<pre>&lt;guilabel&gt;Beschriftung&lt;\/guilabel&gt;<\/pre>\n<h3>Include<\/h3>\n<pre>&lt;xi:include xmlns:xi=&quot;http:\/\/www.w3.org\/2001\/XInclude&quot;\r\n      href=&quot;datei.xml&quot; \r\n      <font color=\"blue\">parse=&quot;text&quot;<\/font>&gt;\r\n   &lt;xi:fallback&gt;datei.xml&lt;\/xi:fallback&gt;\r\n&lt;\/xi:include&gt;<\/pre>\n<p>&#8230;das Attribut <em>parse<\/em> legt fest, ob der eingelesene Textabschnitt (der Inhalt der Datei <em>datei.xml<\/em>) als DocBook-Quellcode verarbeitet werden soll. Der Wert <em>text<\/em> im Beispiel besagt, das dies nicht geschehen soll und veranlasst den Parser das Ausgangsmaterial entsprechend zu konvertieren.<\/p>\n<h3>Indexseiten-Eintr\u00e4ge<\/h3>\n<pre>&lt;indexterm significance=&quot;preferred&quot;&gt;\r\n   &lt;primary&gt;Klassen&lt;\/primary&gt;\r\n   &lt;secondary&gt;HistoryEntry&lt;\/secondary&gt;\r\n&lt;\/indexterm&gt;<\/pre>\n<h3>Listen<\/h3>\n<p>Eine einfache Aufz\u00e4hlung:<\/p>\n<pre>&lt;itemizedlist&gt;\r\n   <font color=\"blue\">&lt;listitem&gt;\r\n      &lt;para&gt;Text&lt;\/para&gt;\r\n   &lt;\/listitem&gt;<\/font>\r\n&lt;\/itemizedlist&gt;<\/pre>\n<p>&#8230;mit Nummerierung:<\/p>\n<pre>&lt;orderedlist&gt;\r\n   <font color=\"blue\">&lt;listitem&gt;\r\n      &lt;para&gt;Text&lt;\/para&gt;\r\n   &lt;\/listitem&gt;<\/font>\r\n&lt;\/orderedlist&gt;<\/pre>\n<p>Eine Variablenliste:<\/p>\n<pre>&lt;variablelist&gt;\r\n   &lt;title&gt;Titel&lt;\/title&gt;\r\n   <font color=\"blue\">&lt;varlistentry&gt;\r\n      &lt;term&gt;Option A&lt;\/term&gt;\r\n      &lt;listitem&gt;\r\n         &lt;para&gt;Text&lt;\/para&gt;\r\n      &lt;\/listitem&gt;\r\n   &lt;\/varlistentry&gt;<\/font>\r\n&lt;\/variablelist&gt;<\/pre>\n<h3>Programmabschnitte<\/h3>\n<pre>&lt;programlisting <font color=\"blue\">linenumbering=&quot;numbered&quot;<\/font>&gt;<font color=\"#ffcc66\">&lt;![CDATA[<\/font><font color=\"grey\">private void setData() {\r\n   return null;\r\n}<\/font><font color=\"#ffcc66\">]]&gt;<\/font>&lt;\/programlisting&gt;<\/pre>\n<p>Der Teil zwischen <em>&lt;![CDATA[<\/em> und <em>]]&gt;<\/em> kommt &#8222;so wie geschrieben&#8220; in der Ausgabe an. Jeder Zeilenumbruch und jedes Leerzeichen wirken sich auf das Ergebnis aus. Des weiteren m\u00fcssen keine Zeichen auskommentiert werden, so das beispielsweise auch Xml-Code direkt ausgegeben werden kann.<\/p>\n<p>M\u00f6chte man die Zeilen kommentieren besteht folgende M\u00f6glichkeit. Zuerst definiert man die Zeilen, um diese dann in der <em>calloutlist<\/em> zu beschreiben.<\/p>\n<pre>&lt;programlistingco&gt;\r\n   &lt;areaspec&gt;\r\n      &lt;area id=&quot;zeile1&quot; coords='1'\/&gt;\r\n      &lt;area id=&quot;zeile3&quot; coords='3'\/&gt;\r\n   &lt;\/areaspec&gt;\r\n\r\n   &lt;programlisting&gt;&lt;![CDATA[<\/font><font color=\"grey\">private void setData() {\r\n   return null;\r\n}<\/font><font color=\"#ffcc66\">]]&gt;<\/font>&lt;\/programlisting&gt;\r\n\r\n   &lt;calloutlist&gt;\r\n      &lt;callout arearefs=&quot;zeile1&quot;&gt;\r\n         &lt;para&gt;Text&lt;\/para&gt;\r\n      &lt;\/callout&gt;\r\n      &lt;callout arearefs=&quot;zeile3&quot;&gt;\r\n         &lt;para&gt;Text&lt;\/para&gt;\r\n      &lt;\/callout&gt;\r\n   &lt;\/calloutlist&gt;\r\n&lt;\/programlistingco&gt;<\/pre>\n<h3>Tabellen<\/h3>\n<pre>&lt;table&gt;\t\t\r\n   &lt;title&gt;&lt;\/title&gt;\t\t\r\n   &lt;tgroup cols=&quot;3&quot; align=&quot;left&quot; colsep=&quot;1&quot; rowsep=&quot;1&quot;&gt;\t\t\t\r\n      &lt;thead&gt;\t\t\t\r\n         &lt;row&gt;\r\n            &lt;entry&gt;&lt;\/entry&gt;\r\n            &lt;entry&gt;&lt;\/entry&gt;\r\n            &lt;entry&gt;&lt;\/entry&gt;\r\n         &lt;\/row&gt;\t\t\t\r\n      &lt;\/thead&gt;\t\t\r\n      &lt;tbody&gt;\t\t\t\r\n         <font color=\"blue\">&lt;row&gt;\r\n            &lt;entry&gt;&lt;\/entry&gt;\r\n            &lt;entry&gt;&lt;\/entry&gt;\r\n            &lt;entry&gt;&lt;\/entry&gt;\r\n         &lt;\/row&gt;<\/font>\r\n      &lt;\/tbody&gt;\r\n   &lt;\/tgroup&gt;\r\n&lt;\/table&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Dieser Artikel listet wichtige DocBook-Elemente auf. Eine &Uuml;bersicht aller Elemente finden sich im &quot;DocBook: The Definitive Guide&quot;. Bezeichner &lt;wordasword&gt;Bezeichner&lt;\/wordasword&gt; Ergebnis: Bezeichner &lt;emphasis role=&#8220;bold&#8220;&gt;Bezeichner&lt;\/emphasis&gt; Ergebnis: Bezeichner Bez\u00fcge &lt;xref linkend=&quot;bild.png&quot; \/&gt; Ergebnis: Abbildung 2.3, \u201eBildtitel\u201c (ist beim Ziel xreflabel gesetzt, wird dieser Wert als Text verwendet) Bilder Ein Bild mit Titel und Eintrag im Abbildungsverzeichnis: &lt;figure id=&quot;bild.png&quot;&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":151,"menu_order":4,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-137","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/pages\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":0,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/pages\/137\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/pages\/151"}],"wp:attachment":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/media?parent=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}