Dynamically adapting the layout of a document to a particular output
device. The layout of a document can be adapted to a particular output
device so that the document fully utilizes the capabilities of the output
device. A layout generator interrogates the output device to determine
the capabilities of the output device. Based upon the capabilities of the
output device, the layout generator selects a style sheet to accommodate
the particular output device. The style sheet assigns values to format
properties such as font properties, color and background properties, and
text properties. The layout of the document is adapted to the particular
output device by rendering the document on the output device using the
values defined in the style sheet.