Inventors:
Richard F. Boehme - Kent Lakes NY
Matthew J. Duftler - Tarrytown NY
David A. Epstein - Ossining NY
Joseph J. Kesselman - Ossining NY
Assignee:
International Business Machines Corporation - Armonk NY
International Classification:
G06F 944
Abstract:
This invention provides a computer-method for parsing by enabling scripts to be expressed in a language which is syntax-compatible with the document surrounding them. A document is loaded having script and non-script components. Script components are identified and delineated, and are then passed to an interpreter, which returns an object corresponding to each script component. Then, script elements in the original document are replaced with the last returned object from the interpreter. If the returned object is a suitable Document Object Model (DOM) Node, it replaces the script element in the document structure. If the object is not a DOM node, the server invokes its string conversion method to obtain a textual representation, and replaces the script element with that text. After all BML markup block elements in the document have been processed, the altered document is delivered to the client.