docbook-example01.sgml
<!DOCTYPE book PUBLIC"-//OASIS//DTD DocBook V4.1//EN"[ <!ENTITY chapter1 SYSTEM "chapter01.sgml"> <!-- Fil vi bruker og inkluderer --> <!ENTITY lugname "Bergen Linux User Group"> <!-- Streng vi trenger ofte --> ]> <book> <title>Outlining a DocBook Project</title> &chapter1; </book>
chapter01.sgml
<chapter id="introduction"> <title> Introduction </title> <para> With DocBook, your world gets clearer. <emphasis>&lugname;</emphasis> leads the way. </para> </chapter>
Resultatet: example01-plain.html eller example01-cooked.html