This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Purpose of <screen> in slides.dtd?
- To: steinbeck at ice dot mpg dot de
- Subject: Re: DOCBOOK: Purpose of <screen> in slides.dtd?
- From: Matthew Braun <mbraun at urbana dot css dot mot dot com>
- Date: Mon, 22 Oct 2001 11:25:55 -0500 (CDT)
- Cc: "docbook at lists dot oasis-open dot org" <docbook at lists dot oasis-open dot org>
- List-Id: <docbook.lists.oasis-open.org>
steinbeck@ice.mpg.de writes:
>Can anyone tell me the purpose of <screen> in slides.dtd?
>As I understand, <slide> gives my single html page with the regular html
>xslt stylesheet, so what would <screen> be good for?
Err...do you mean <foil>? (I can't find a <slide> element.) <foil> is an
organizational element. You use it to break your presentation up into
individual pages.
<screen> is an element which describes the content, and is used to tag
"screen shots". It is formatted as a block-level element, and cannot have
a <para> parent. Its contents displayed usually with a constant width
font.
"So how is that different from <computeroutput>?" <computeroutput>" is
presented "inline", i.e. within a <para> element. <screen> is formatted
into its own block.
Here's an example slide using <foil>, <screen>, and <computeroutput>.
m@
---------------------------------------------------------------------------
<?xml version='1.0'?>
<!DOCTYPE slides SYSTEM "/proj/xml/dtds/docbook/slides/slides.dtd">
<slides>
<slidesinfo>
<title>Sample Screen Slide</title>
</slidesinfo>
<section>
<title>Presenting The Sample <screen> Element!</title>
<foil>
<title>Mixing <screen> and <computeroutput></title>
<para>To list the contents of a directory in detail, use the
<command>ls -l</command> command, like so:</para>
<screen>condenser> ls -lF /home
total 19
drwxr-xr-x 7 root root 1024 Apr 6 2001 ./
drwxr-xr-x 21 root root 1024 Aug 30 2000 ../
drwxr-xr-x 2 root root 12288 Mar 3 2000 lost+found/
drwxr-xr-x 39 mbraun mbraun 2048 Oct 22 10:47 mbraun/
condenser>
</screen>
<para>Note that the directory named
<computeroutput>mbraun</computeroutput> is listed as
<computeroutput>mbraun/</computeroutput> because we also added
the <option>-F</option> switch. If we add
<option>-F</option> without the <option>-l</option>, the
output looks like this:
</para>
<screen>condenser> ls /home
./ ../ lost+found/ mbraun/
condenser>
</screen>
</foil>
</section>
</slides>
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>