This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Purpose of <screen> in slides.dtd?



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 &#60;screen&#62; Element!</title>

    <foil>
      <title>Mixing &#60;screen&#62; and &#60;computeroutput&#62;</title>
      <para>To list the contents of a directory in detail, use the
	<command>ls -l</command> command, like so:</para>

      <screen>condenser&#62; 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&#62; 
</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&#62; ls /home
./  ../  lost+found/  mbraun/
condenser&#62; 
</screen>

    </foil>
  </section>
</slides>

----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]