What are Styles?

Styles are sets of rules that define the desired structure and attributes for your documents. They can be defined as plain text or regular expressions. There is a special kind of style: the trigger. These are small programs that can contain a larger set of rules specific to your documentation.


An example of a simple HTML document might be:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                <link rel="stylesheet" type="text/css" href="../style.css">
                <title>Test Document</title>
                <h1>Test Document</h1>
                <div class="hr"><hr></div>
                <p>Test Documents Text.</p>

Now you'll want to view this document as fulfilling a set of styles - the best approach is to break the document into pieces of meaningful sections.

The following is a suggestion on how this document can be split into style rules:

  • The head section must have at least one specific stylesheet or meta-data.
  • The body section must…
    1. …have a title section at the beginning.
    2. …have at least one block of text.

All of those pieces can be described via regular expressions. In "From Document to Style" we will show you how to do that.

See also:


© Copyright 1996 - 2021, i-net software; All Rights Reserved.