Patent ID: 7337392

Claim:
A method for structured document transcoding comprising: generating, in response to receiving a structured document including a first ordered list of document elements in a markup language, a source document based on a document element of the first ordered list of document elements, the source document including a second ordered list of document elements in the markup language; replacing the document element with the second ordered list of document elements to insert the source document into the first ordered list of document elements to update the structured document; building a document tree including a plurality of tree nodes associated with document elements of the updated structured document; generating a plurality of new document trees according to the document tree such that the plurality of new document trees are ordered and hierarchically linked, the new document trees being associated with new document elements; determining sizing parameters for one or more new tree nodes of at least one of the new document trees; and producing, from at least one of the new document trees, one structured data such that it is suitable for a browser to render in a browser device, wherein the one or more new tree nodes including one root node and one or more leaf nodes, the determined sizing parameters of the root node satisfying constraints associated with a display area and processing capacity for the browser, each of the one or more new tree nodes except the root node having a single parent node belonging to the one or more new tree nodes and each of the one or more new tree nodes except the one or more leaf nodes having at least one child node belonging to one or more new tree nodes, and wherein each leaf node is associated with no more than one of the plurality of new document trees.