<!DOCTYPE book PUBLIC"-//OASIS//DTD DocBook V4.1//EN"[
]>
<book>
<title>
Working with DocBook
</title>
<chapter id="proceduralizing">
<title>
Creating a minimal source file
</title>
<para>
With DocBook, your world gets clearer. I will describe files such as <filename>docbook-example02.sgml</filename>.
The following procedure illustrates how to make one:
</para>
<procedure>
<step>
<para>Start a text editor such as <application>emacs</application>.</para>
</step>
<step>
<para>Type the contents of your file. When you are done, save the file
using the key sequence <keycombo><keycap>Ctrl-x</keycap><keycap>Ctrl-s</keycap></keycombo> or
the menu command <menuchoice><guimenu>File</guimenu>
<guimenuitem>Save Buffer</guimenuitem></menuchoice>.
</para>
<para>If you did not supply a file name earlier,
<application>emacs</application> will prompt you with the
<computeroutput>File to save in:</computeroutput>
message. Type a file name such as
<userinput>docbook-example02.sgml</userinput>, then press
<keycap>Enter</keycap> to save the file.</para>
</step>
<step>
<para>
To check that you have actually made a file, use the <command>ls</command> command:
</para>
<screen><computeroutput>me@machine:~/docbook$</computeroutput> <userinput>ls -l</userinput>
-rw-r--r-- 1 me me 1702 May 23 14:54 docbook-example02.sgml
</screen>
</step>
</procedure>
<para>When you have checked that you have a file, you can go on to <xref linkend="nextstep">.</para>
</chapter>
<chapter id=nextstep>
<title>The next step</title>
<para>Here is what you want to do next …</para>
</chapter>
</book>Resultatet: example02-plain.html eller example02-cooked.html