348 lines
4.5 KiB
HTML
348 lines
4.5 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Samples</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
|
|
REL="HOME"
|
|
TITLE="HOWTO-template for Big HOWTOs"
|
|
HREF="index.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Introduction"
|
|
HREF="intro.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Structure"
|
|
HREF="structure.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>HOWTO-template for Big HOWTOs</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="intro.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="structure.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="SAMPLES"
|
|
>2. Samples</A
|
|
></H1
|
|
><P
|
|
> <I
|
|
CLASS="EMPHASIS"
|
|
>This section gives some simple SGML examples you could
|
|
use. Read the SGML source to see how it was done.</I
|
|
>
|
|
</P
|
|
><P
|
|
> Further information and examples can be obtained from the publication
|
|
<A
|
|
HREF="http://docbook.org/tdg/html/"
|
|
TARGET="_top"
|
|
>DocBook: The Definitive
|
|
Guide</A
|
|
>. Written by <I
|
|
CLASS="EMPHASIS"
|
|
>Norman Walsh</I
|
|
>
|
|
and <I
|
|
CLASS="EMPHASIS"
|
|
>Leonard Muellner</I
|
|
>; 1st Edition, October 1999.
|
|
</P
|
|
><DIV
|
|
CLASS="SECT2"
|
|
><H2
|
|
CLASS="SECT2"
|
|
><A
|
|
NAME="LISTS"
|
|
>2.1. Lists</A
|
|
></H2
|
|
><P
|
|
> <I
|
|
CLASS="EMPHASIS"
|
|
>Lists are used frequently, and are available in a number
|
|
of formats shown below.</I
|
|
>
|
|
</P
|
|
><P
|
|
> A list in which each entry is marked with a bullet or other dingbat:
|
|
</P
|
|
><P
|
|
> <P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
>Apples</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Oranges</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Bananas</P
|
|
></LI
|
|
></UL
|
|
>
|
|
</P
|
|
><P
|
|
> A list in which each entry is composed of a set of one or more
|
|
terms and an associated description:
|
|
</P
|
|
><P
|
|
> <P
|
|
></P
|
|
><DIV
|
|
CLASS="VARIABLELIST"
|
|
><DL
|
|
><DT
|
|
>Fruits</DT
|
|
><DD
|
|
><P
|
|
>such as apples, oranges, and more.</P
|
|
></DD
|
|
><DT
|
|
>Nuts</DT
|
|
><DD
|
|
><P
|
|
>Don't eat too many; you are what you eat.</P
|
|
></DD
|
|
><DT
|
|
>Vegetables</DT
|
|
><DD
|
|
><P
|
|
>Potatos are spelled with care.</P
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
>
|
|
</P
|
|
><P
|
|
> A list in which each entry is marked with a sequentially
|
|
incremented label:
|
|
</P
|
|
><P
|
|
> <P
|
|
></P
|
|
><OL
|
|
TYPE="1"
|
|
><LI
|
|
><P
|
|
>Step one</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Step two</P
|
|
></LI
|
|
></OL
|
|
>
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT2"
|
|
><H2
|
|
CLASS="SECT2"
|
|
><A
|
|
NAME="LINKS"
|
|
>2.2. Links</A
|
|
></H2
|
|
><P
|
|
> <I
|
|
CLASS="EMPHASIS"
|
|
>Links can be used within your documents to refer to
|
|
different sections and chapters or to refer to documents external
|
|
to yours.</I
|
|
>
|
|
</P
|
|
><DIV
|
|
CLASS="SECT3"
|
|
><H3
|
|
CLASS="SECT3"
|
|
><A
|
|
NAME="INT-LINKS"
|
|
>2.2.1. Internal links</A
|
|
></H3
|
|
><P
|
|
> Click on the <A
|
|
HREF="samples.html"
|
|
>Section 2</A
|
|
> link to jump to the top of
|
|
this chapter. Note the anchor at the section tag.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT3"
|
|
><H3
|
|
CLASS="SECT3"
|
|
><A
|
|
NAME="EXT-LINKS"
|
|
>2.2.2. External links</A
|
|
></H3
|
|
><P
|
|
> Click on <A
|
|
HREF="http://www.linuxdoc.org/"
|
|
TARGET="_top"
|
|
>this</A
|
|
> link
|
|
to jump to the LDP site. Note you can use http, ftp, news and
|
|
other protocols in the locator if required.
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="SECT2"
|
|
><H2
|
|
CLASS="SECT2"
|
|
><A
|
|
NAME="IMAGES"
|
|
>2.3. Images</A
|
|
></H2
|
|
><P
|
|
> <I
|
|
CLASS="EMPHASIS"
|
|
>Avoid diagrams if possible as this cannot be rendered
|
|
in the ASCII outputs which are still needed by many around the
|
|
world.</I
|
|
>
|
|
</P
|
|
><P
|
|
> <DIV
|
|
CLASS="FIGURE"
|
|
><A
|
|
NAME="AEN181"
|
|
></A
|
|
><P
|
|
><B
|
|
>Figure 1. Graphics Test Image</B
|
|
></P
|
|
><P
|
|
><IMG
|
|
SRC="red.gif"></P
|
|
></DIV
|
|
>
|
|
</P
|
|
><P
|
|
> Here is another variation which allows for ALT text:
|
|
</P
|
|
><P
|
|
> <DIV
|
|
CLASS="MEDIAOBJECT"
|
|
><P
|
|
><IMG
|
|
SRC="green.gif"
|
|
ALT=" ALT text to be used: Green Ball
|
|
"
|
|
></IMG
|
|
><DIV
|
|
CLASS="CAPTION"
|
|
><P
|
|
> Caption for the graphic goes here: This is a Green Ball.
|
|
</P
|
|
></DIV
|
|
></P
|
|
></DIV
|
|
>
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="intro.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="structure.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Introduction</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Structure</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |