Browse Prior Art Database

Contextual Document Generation

IP.com Disclosure Number: IPCOM000016288D
Original Publication Date: 2002-Oct-30
Included in the Prior Art Database: 2003-Jun-21

Publishing Venue

IBM

Abstract

Disclosed is an algorithm that generates a custom document for a specific situation. The source for the contextual document is an ordered sequence of subdocuments. Each subdocument is tagged with one or more parameters. To generate the contextual document, the algorithm receives a set of parameters that defines the current situation. It then goes through the subdocuments in order, concatenating the ones with matching parameters. In the preferred embodiment, the subdocuments are contained in a single HTML file. Each subdocument is marked by custom attributes on a header element. For example:

Happy Monday

This section will be included if today is Monday.

Happy Tuesday

Only on Tuesday will this section be included.

It's a work day

This section is included for any day except weekends. This simple example contains three subdocuments. The parameters "day" and "weekday" determine which of the subdocuments are included in the contextual document. In the preferred embodiment, the parameters are given in the HTTP request to the Contextual Document servlet. Hence, a web browser requests a Contextual Document from a web site, using request parameters to indicate the current situation.