Documents are automatically generated from data within a database. The
look and feel of the document is defined externally from the data in the
database such that a consistent look and feel is applied to the retrieved
data. Templates are defined that specify the structure of the document
including its look and feel for the documents created by using data from
the database. When a document is requested to be generated for viewing
and/or editing, the appropriate data from the database is retrieved and
placed within the document according to the defined look and feel that is
contained within the templates.