1. An information processing device implementing a document conversion and use system which converts a first structured document into a second structured document different in structure from the first structured document, comprising: a template storage device configured to store a template indicating the structure of the second structured document and described in a same language with the second structured document; and a processing unit including a structure specification unit configured to read the template from the template storage device, display a design represented by the read template on a screen of a display device, and specify an element or an element content configuring the template in the displayed design; a correspondence definition specification unit configured to define a correspondence definition indicating correspondence between an element in the first structured document and an element in the template by corresponding a tag of a element in the first structured document with a position of the specified element or element content in the displayed design; a structured document analysis unit configured to convert the template and the first structured document into tree structure objects, respectively; a search unit configured to search the element or the element content specified by the structure specification unit from the tree structure object of the template, sequentially search the element described in the correspondence definition from the searched element or element content in the tree structure object of the template as a start point, generate a tree structure object of the template which comprises the element sequentially-searched element, and search an element described in the correspondence definition from the tree structure object of the first structured document; and a conversion processing unit configured to, when the element detected by searching from the tree structure object of the first structured document having a child element and a corresponding element in the template having a parent element defined by the correspondence definition specification unit, enter the generated tree structure of the template into the tree object of the template according to the number of child elements, and when the element detected by searching from the tree structure object of the first structured document having only an element content and a corresponding element in the template having no child element, replace the element content of the detected element with the specified element content in the template.
1. An information processing device implementing a document conversion and use system which converts a first structured document into a second structured document different in structure from the first structured document, comprising: a template storage device configured to store a template indicating the structure of the second structured document and described in a same language with the second structured document; and a processing unit including a structure specification unit configured to read the template from the template storage device, display a design represented by the read template on a screen of a display device, and specify an element or an element content configuring the template in the displayed design; a correspondence definition specification unit configured to define a correspondence definition indicating correspondence between an element in the first structured document and an element in the template by corresponding a tag of a element in the first structured document with a position of the specified element or element content in the displayed design; a structured document analysis unit configured to convert the template and the first structured document into tree structure objects, respectively; a search unit configured to search the element or the element content specified by the structure specification unit from the tree structure object of the template, sequentially search the element described in the correspondence definition from the searched element or element content in the tree structure object of the template as a start point, generate a tree structure object of the template which comprises the element sequentially-searched element, and search an element described in the correspondence definition from the tree structure object of the first structured document; and a conversion processing unit configured to, when the element detected by searching from the tree structure object of the first structured document having a child element and a corresponding element in the template having a parent element defined by the correspondence definition specification unit, enter the generated tree structure of the template into the tree object of the template according to the number of child elements, and when the element detected by searching from the tree structure object of the first structured document having only an element content and a corresponding element in the template having no child element, replace the element content of the detected element with the specified element content in the template. 6. The information processing device implementing the document conversion and use system according to claim 1 , wherein the first structured document is an XML document, and the second structured document is an HTML document.