Patent Document ID: 7912846
Application ID: 11524830

Base Claim:
1. A document processing method executed by a system established on one or more computers, the method comprising: acquiring a first structured document, including a plurality of document elements forming a structure, from a folder among a group of folders, the group of folders having a hierarchical structure in a document database; acquiring information of the hierarchical structure of the folders in the document database; creating integrated structure information by merging the structure of the document elements of the first structured document into a position of a folder, in the hierarchical structure formed by the folders, in which the first structured document is stored; adding a uniform resource locator attribute, created on the basis of an identification attribute of each folder or each document element in the integrated structure information, to the folder or the document element; and applying a template to the integrated structure information wherein in the process of applying the template to the integrated structure information, the uniform resource locator attribute added to each folder or document element is assigned to a corresponding variable in the template, and as a file name, the uniform resource locator attribute is attached to a file obtained by applying the template to the folder or the document element in the integrated structure information; wherein in the process of applying the template to the integrated structure information, a parse tree is determined by parsing a structure formed by elements of the template, a folder or a document element in the integrated structure information that matches the element in the template is determined through a matching process of the structure around the current element in the integrated structure information and the parse tree, and information of the matching folder or the matching document element in the integrated structure information is supplied to each element of the template, the template includes a string of one or more template elements and each template element of the string is an element of one of the types of a group including a text element, a variable element, a repetition element, and a selection element.

---

Claim 8:
8. The document processing method according to claim 1 , further comprising: acquiring mapping information indicating a correspondence relationship between a type of a folder or a document element and a template to be applied to the type of the folder or the document element; wherein in the process of applying the template to the integrated structure information, a folder or a document element which corresponds to the type to which the template is to be applied is selected from among the folders or document elements in the integrated structure information, the selected folder or document element is set as a current element, and the template is applied with the current element as a base point.