Patent ID: 7257770

Claim:
A recording medium readable by a computer, tangibly embodying a program of instructions executable by the computer to generate an output document from structured-document information, said program comprising the steps of: inputting document informatiion from a document information source, said document information being composed of a plurality of elements described in XML; evaluating a degree of significance of each element composing said input document information; selecting in succession an element among said plurality of elements composing said input document information in a decreasing significance order based on a result of the evaluating step; generating the output document in which the selected elements are placed in a selecting order in the selecting step; and outputting the generated output document on a printing device, a display device or an image transmission device, wherein the evaluating step includes the steps of: reading an XML declaration block of the input document information and determining whether the XML declaration block read is an XML declaration; reading a document-type declaration and a document entity of the input document information if it is determined that the input document information is XML document information; separating a tag and an element described in the document entity be using a regulation set in the document-type declaration; converting the document entity to a tree structure; and adding the evaluated degree of significance of said each element to said tree structure.