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
Document File: 2 page(s) / 38K

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.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 57% of the total text.

Page 1 of 2

Contextual Document Generation

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:

<h1 day=Monday>Happy Monday</h1> This section will be included if today is Monday. <h1 day=Tuesday>Happy Tuesday</h1> Only on Tuesday will this section be included. <h1 weekday=true>It's a work day</h1> 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.

A Contextual Document can work two ways:

It can find all matches and concatenate them. In the above example, both the first

and third subdocument would be included on Monday. It can find the first matc...