Patent ID: 6658624
Filing Date: 2003-12-02
Classification: G06F

Abstract:
A method of processing an input structured document to form an output document being the interpreted result of the input structured document, the method comprising the steps of:a) initializing an input parser, including initializing an parser cursor to point to an initial element of the input structured document; b) initializing an element processor to couple an element input of the element processor to the input parser to accept a current element from the input parser and to couple an element output of the element processor to an output generator; c) initializing a definitions table coupled to the element processor; d) accepting a sequence of elements from the input parser and for each element, processing the element by the steps of: 1) inputting the element from the element input of the element processor; 2) determining whether the element is an active element or a passive element; 3) if the element is a passive element, evaluating the passive element using applicable definitions from the definitions table and passing a result of the evaluation to the element output; 4) if the element is an active element, performing the steps of: i) coupling the element output to an input of an active element queue; and ii) evaluating the active element using applicable definitions from the definitions table and passing a result of the evaluation to the element output; 5) if the active element queue is not empty, coupling the element input to an output of the active element queue; and 6) if the active element queue is empty and the element input is not coupled to the input parser, coupling the element input to the input parser; and e) using the output generator to generate the output document.