发明名称 RTF template and XSL/FO conversion: a new way to create computer reports
摘要 A template processor converts an initial template document into an XSL template that can be used to automatically generate reports from report data extracted from a database or other application. Users create initial template documents using a word processor or other rich-text editing application. The initial template document employs the word processor's native formatting features to specify the formatting of report data. The initial template document includes placeholder tags inserted by the user to define the locations of report data in the report. The initial template document also includes transformation tags that dynamically define the content of a report based on the value or quantity of report data. The template processor can include a reader adapted to read portions of the initial template file and a parser adapted to create corresponding XSL code from these portions. The XSL template can be combined with XML-formatted data to create a report.
申请公布号 US8954841(B2) 申请公布日期 2015.02.10
申请号 US201012732113 申请日期 2010.03.25
申请人 Oracle International Corporation 发明人 Jiang Xin;Yoshida Shinji
分类号 G06F17/00;G06F9/45 主分类号 G06F17/00
代理机构 Kilpatrick Townsend & Stockton LLP 代理人 Kilpatrick Townsend & Stockton LLP
主权项 1. A method comprising: reading, by an RTF (Rich Text Format) reader executed on a computer system, a first portion of a first template document expressed in RTF format, wherein the first portion is an initial portion of the first template document, corresponds to a paragraph block in the first template document, and defines within content of the first portion of the first template document a type and one or more attributes; instantiating, by an RTF (Rich Text Format) parser executed on the computer system, a root data object based on the type and one or more attributes associated with the first portion, wherein the root data object includes an executable method for outputting source code in Extensible Stylesheet Language (XSL) format that corresponds to the first portion; reading, by the RTF (Rich Text Format) reader, a second portion of the first template document, wherein the second portion is a next portion of the first template document after the initial portion of the first template document, defines within content of the second portion of the first template document a type and one or more attributes including a placeholder tag, a transformation tag, a block of static content, or a formatting attribute in the first template document; instantiating, by the RTF (Rich Text Format) parser, a child data object based on the type and one or more attributes of the second portion, wherein the child data object is instantiated as a child of the root data object in an object hierarchy, and wherein the child data object includes an executable method for outputting source code in XSL format that corresponds to the second portion; generating, by the RTF (Rich Text Format) parser, a second template document expressed in XSL format and based on a hierarchy of the first template document represented by the root data object and the child data object by executing the method included in the root data object and the method included in the child data object; and combining, by the computer system, the second template document with report data to generate a report.
地址 Redwood Shores CA US