WO2007112632A1 - Presentation method and apparatus of electric bill - Google Patents
Presentation method and apparatus of electric bill Download PDFInfo
- Publication number
- WO2007112632A1 WO2007112632A1 PCT/CN2007/000243 CN2007000243W WO2007112632A1 WO 2007112632 A1 WO2007112632 A1 WO 2007112632A1 CN 2007000243 W CN2007000243 W CN 2007000243W WO 2007112632 A1 WO2007112632 A1 WO 2007112632A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- bill
- structure model
- file
- electronic bill
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
- G06F40/154—Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
Definitions
- the present invention relates to electronic billing technology, and more particularly to a method and apparatus for displaying an electronic bill.
- the first method is to solidify the bill of the operation support system (BOSS, Business Operation Support System) into an electronic document PDF format.
- BOSS Bill of the operation support system
- the implementation process of this method is as shown in FIG. 1, and includes: Step S101: BOSS takes the user from the database. Data such as consumption and transactions are exported, and files in a specific format are generated, wherein the format must conform to the requirements of subsequent printing software;
- Step S102 determining whether it is required to print the file of the specific format, if yes, go to step S103, otherwise, go to step S104;
- Step S103 printing the file of the specific format by the printing software; a piece, usually a PDF format, and proceeding to step S105;
- Step S105 Import the PDF format file into the E-Bill (electronic billing) system of the operator, and go to step S106;
- Step S106 The PDF file is presented by the E-Bill system.
- BOSS exports the user's consumption and transaction data from the database, and then undergoes a series of format conversions.
- the BOS prints the bill to the operator's business hall or logs in to the operator's website. View the bill in PDF format so that users can get clear results.
- the second method directly obtains user information, user consumption information, transaction information and other data from multiple tables of the database, and directly writes the data according to the presentation requirements in the need to display HTML (HyperText Markup Language) page to display to the user.
- HTML HyperText Markup Language
- the bills presented by the current method of displaying electronic bills have the problem of exhibiting a single style and failing to meet the individual needs.
- the embodiment of the invention provides a method and a device for displaying an electronic bill, and realizes diversification of the presentation style of the electronic bill.
- the embodiment of the invention further provides a method for displaying an electronic bill, comprising: extracting bill data; constructing the extracted bill data into a data structure model having a hierarchical relationship; according to XSL (Extensible Stylesheet Language)
- XSL Extensible Stylesheet Language
- the specification of the style file and the user parameter outputs the data in the data structure model in a specified format.
- the embodiment of the present invention further provides an electronic bill presentation apparatus, including: a billing data extracting unit, configured to extract billing data; and a data structure model constructing unit, configured to construct the extracted billing data into a hierarchical relationship a data structure model; a data output unit, configured to output data in the data structure model in a specified format according to an XSL style file and a user parameter.
- a billing data extracting unit configured to extract billing data
- a data structure model constructing unit configured to construct the extracted billing data into a hierarchical relationship a data structure model
- a data output unit configured to output data in the data structure model in a specified format according to an XSL style file and a user parameter.
- the data in the XML DOM may be output in a specified format according to the XSL style file and the user parameter. Since the XSL style file includes multiple style templates, the user parameter may also include multiple personalized or The special style setting, therefore, the embodiment of the invention can realize the diversification of the presentation style of the electronic bill.
- 1 is a flow chart of a current method for displaying an electronic bill
- FIG. 2 is a flow chart of a first embodiment of a method of the present invention
- FIG. 3 is a schematic diagram of a DOM according to an embodiment of the present invention.
- FIG. 4 is a screenshot of a protocol defined by using XML Schema according to an embodiment of the present invention.
- Figure 5 is a flow chart of a second embodiment of the method of the present invention.
- Step S201 Batchly extract billing data from the billing database, and generate the extracted billing data into an XML (Extensible Markup Language) file.
- XML Extensible Markup Language
- Bulking out billing data means extracting multiple billing data from the billing database each time.
- the billing data refers to the data constituting the bill. For example, it may be data related to the user, data that may be required by the predicted user, or data actually needed by the user.
- the amount of extracted data can be determined according to actual needs. For example, all data related to the user or the user needs can be extracted at one time, or only part of the data related to the user or required by the user can be extracted at a time until it is related to the user or the user. All the data needed is extracted.
- the billing data can be taken before the user queries the bill.
- Hierarchical relationship refers to the affiliation between each data.
- the bill can contain attributes and information.
- the information can include operator logo, expense information, customer information, and payment rules.
- the fee information can include the previous period balance, the current new fee, and Summarize the remainder.
- XML is a fine-tuned Standard Generalized Markup Language (SGML) that combines the rich functionality of SGML with the ease of use of HTML into Web applications.
- SGML Standard Generalized Markup Language
- XML preserves the extensibility of SGML, which makes XML fundamentally different from HTML.
- XML has more features than HTML.
- HTML is just a general way of displaying web data
- XML provides a common way to work directly with web data. HTML focuses on the display format of Web pages, while XML focuses on the content of Web pages.
- Step S202 Parse the XML file to obtain an XML DOM (Document Object Model).
- the DOM obtained by parsing the XML file can be a tree structure or other structure with nested relationships. When you need to call some or some data in the DOM, you can quickly find the required data according to the hierarchical relationship in the DOM. .
- the summary balance can be found through billing, information, and cost information.
- the previous balance is called after the sum of the sum is called, the previous balance can be found again through the bill, information, and expense information.
- the last call can be directly used. The process, for example, finds the previous balance directly from the expense information.
- Step S203 The XML converter outputs the data in the XML DOM in a specified format according to the specification of the XSL style file and the user parameter.
- the XSL style file and user parameters can collectively specify the style, style, etc. of the print or presentation, and the XML converter outputs the data in the DOM in the required format as specified.
- XSL is used to translate data in XML files into HTML or other formatted languages.
- XSL provides a CSS (Cascading Style Sheets) feature that allows developers to construct Web pages with an expression layer structure that are distinct from XML data structures.
- XSL can also construct stacked pages with HTML.
- XSL can interpret an unlimited number of tags to make web pages more colorful, such as dynamic text.
- XSL can handle multi-national characters, double-byte Chinese characters, and grids.
- the XSL style file may contain an internationalization language pack, which is composed of localized files of a plurality of countries or regions, and the localization file sets the expression of the content on the bill in the local language habits, Settings such as currency symbol, time, label language, person name, etc.
- an internationalization language pack which is composed of localized files of a plurality of countries or regions, and the localization file sets the expression of the content on the bill in the local language habits, Settings such as currency symbol, time, label language, person name, etc.
- the Chinese display format is generally "February 20, 2006". If this date is displayed in English, the format displayed is generally "February 20th, 2006".
- the international language pack has multiple language setting standards, so it can solve the internationalization problem of billing language, and then enable the electronic bill to adapt to the needs of different countries and regions. The following describes the international language pack by way of example.
- An XSL style file can contain a set of parameter definitions that set criteria for setting multiple parameters. Define some parameters, which can be convenient for users to set some personalized content, such as the language of bill display, the order of bill display (sorted by call time or call type), the order of text layout (from left to right or from right to right) Left typesetting), browser parameters (if the user is browsing the bill on the phone, the bill should be simple and meet the browser's special requirements).
- the parameter definition set is explained below by way of example.
- the XSL style file may include a general presentation template for presenting information in a general style, and the universal presentation template may be used to define some modular information, such as a client address (address), a standard address on the address ( Street No ), House, Block, Floor, Zip (zip) and other information have some common display methods, so you can make a separate template to deal with.
- the XSL style file can also contain special presentation templates for presenting information in a special style, and special presentation templates for defining special templates to handle the special needs of different operators and customs.
- the user parameter may be a requirement of the user's statement presentation style.
- the display language of the bill is required to be Chinese
- the background of the bill is required to be a layout with a Chinese traditional style.
- an interface protocol may also be preset, and the interface protocol may specify the membership relationship of the billing data.
- the interface protocol may be a document type definition, and the language defining the interface protocol may be an XML Schema (XML Schema Language) or a DTD (Document Type Definitions).
- a document type definition is a protocol-like file that can be used to guide business module developers and presentation module developers to develop modules.
- business module developers can use it to check whether a developed program can generate a conforming conformance ( Well-formed ) XML billing
- presentation module developers can use it and some integrated development tools (such as Altova StyleVision) to easily design XSL style files, where good structure means well-formed, that is, XML files must conform to form , the requirements of the grammar specification.
- the bill data extracted in step S201 may be generated into an XML file conforming to the interface protocol standard, and may also be designed according to the affiliation relationship between the data specified by the interface protocol and the user's requirements.
- XSL style file may be generated into an XML file conforming to the interface protocol standard, and may also be designed according to the affiliation relationship between the data specified by the interface protocol and the user's requirements.
- the above interface protocol is defined, which essentially defines the interface between the business module developer and the presentation module developer. If the interface protocol specifies the affiliation between the data, the business module developer defines what data is extracted from the billing database when designing the business module, and arranges the relationship between the data according to the interface protocol.
- developers When designing XSL style files, developers also design styles based on interface protocols and set the appropriate parameters.
- Figure 4 is a screenshot of the protocol defined using XML Schema, which specifies the data in the bill, also known as the element, and also specifies the membership and order relationship between the elements, for example, the root element is bill (billing) , under the root element, there are billing attributes and unnamed elements.
- Unnamed elements also have ComanyLogo (operator's logo), billfee (cost information), custinfo (customer information), and paymentrule (paid rules).
- the business module developer needs to define the action of looking for elements such as billfee from the database, and also according to the screenshot shown in Figure 4, which element the elements such as billfee should belong to.
- the module developer designs the XSL style file, according to the element relationship defined by the screenshot, the design style is displayed. For example, where ComanyLogo, custinfo, etc. are set on the page, if you need to find billfee, you need to find the unnamed under the bill. Element, then find billfee under the unnamed element.
- Step S501 Extract billing data in real time from the billing database. Extracting billing data in real time means extracting data when the user queries the bill, and the extracted data may be data corresponding to the information that the user needs to query.
- Step S502 Construct the extracted billing data as an XML DOM. Since the billing data is extracted in real time and needs to be directly output, after extracting the data, the data needs to directly generate the DOM with the nested relationship, and the purpose of generating the DOM is to facilitate the presentation platform calling data with the presentation function.
- Step S503 The XML converter outputs the data in the XML DOM in a specified format according to the specification of the XSL style file and the user parameter.
- an interface protocol may also be preset, and the interface protocol may specify the membership relationship of the bill data.
- the interface protocol may be a document type definition, and the language defining the interface protocol may be an XML Schema or a DTD.
- a document type definition is a protocol-like file that can be used to guide business module developers and presentation module developers to develop modules. For example, business module developers can use it to check whether a developed program can generate a well-formed protocol.
- XML billing, presentation module developers can use it and some integrated development tools (such as Altova StyleVision) to easily design XSL style files, where well-formed means well-formed, that is, XML files must meet the requirements of formal qualifications and grammar specifications. .
- the bill data extracted in step S501 can be generated.
- the XML DOM conforming to the interface protocol standard may also design an XSL style file according to the affiliation relationship between the data specified by the interface protocol and the needs of the user.
- the above interface protocol is defined, which essentially defines the interface between the business module developer and the presentation module developer. If the interface protocol specifies the affiliation between the data, the business module developer defines what data is extracted from the billing database when designing the business module, and arranges the relationship between the data according to the interface protocol. When designing XSL style files, developers should also design presentation styles according to the interface protocol and set the appropriate parameters.
- the XSL style file may contain an internationalization language pack, which is composed of localized files of a plurality of countries or regions, and the localization file sets the expression of the content on the bill in the local language habits, Settings such as currency symbol, time, label language, person name, etc.
- An XSL style file can contain a set of parameter definitions that set criteria for setting multiple parameters.
- the XSL style file may contain a generic presentation template for presenting information in a generic style.
- the XSL style file can also contain special presentation templates that are used to present information in a particular style.
- the solution of the first embodiment of the method of the present invention and the solution of the second embodiment of the method of the present invention may also be combined.
- two processes of extracting data may be used in parallel, and the process of defining an interface protocol and displaying data may be completely
- the first embodiment of the method of the invention or the second embodiment of the method of the invention is the same. For example, if you query the bill for a month or a few months before, you can export the data in batches before the query. When you need to query, you can get it from the XML file. If you query this month's bill, you can get the data directly from the database. .
- the display is shown, which increases the business and skill requirements for developers.
- an interface protocol that defines the membership relationship of the billing data.
- the interface protocol is equivalent to a communication bridge between the business module developer and the presentation module developer, and the interface protocol defines the data.
- the standard of data relationship so the business module developer only needs to consider the problem at the business level, and the module developer only needs to consider the problem of the presentation level.
- the two types of developers use this interface protocol to complete the development of the electronic bill, and effectively realize the business.
- the separation of modules and presentation modules reduces the amount of work required for program development and maintenance.
- the embodiment of the present invention further provides an electronic bill presentation apparatus, including: a billing data extracting unit, configured to extract billing data; and a data structure model constructing unit, configured to construct the extracted billing data into a hierarchical relationship a data structure model; a data output unit, configured to output data in the data structure model in a specified format according to an XSL style file and a user parameter.
- a billing data extracting unit configured to extract billing data
- a data structure model constructing unit configured to construct the extracted billing data into a hierarchical relationship a data structure model
- a data output unit configured to output data in the data structure model in a specified format according to an XSL style file and a user parameter.
- the billing data extracting unit may extract billing data as follows: Before the user inquires the bill, the billing data is extracted in batches, or when the user inquires the bill, the billing data is extracted in real time.
- the data structure model construction unit further includes: an XML file generating unit configured to generate the extracted bill data into an XML file; and an XML file parsing unit configured to parse the XML file to obtain a data structure model.
- the data structure model may be an extensible markup language XML document object model DOM, and the data structure model may be a tree structure model or a structure model having a nested relationship.
- the electronic bill presentation apparatus may further include: an interface protocol setting unit configured to set an interface protocol specifying the membership of the bill data before outputting the data in the data structure model in a specified format.
- the interface protocol may be defined for an ML document type, and the language defining the interface protocol may adopt an XML schema language XML Schema or a document type definition language DTD.
- the data structure model may be a data structure model conforming to the interface protocol standard
- the XSL style file may be an XSL designed according to the affiliation of the data specified by the interface protocol and the user's requirements. Style file.
- the XSL style file can include:
- An internationalization language package the internationalization language package being composed of localization files of a plurality of countries or regions, the localization file setting a manifestation of the content on the bill in the local language habit; and / or
- a parameter definition set the parameter definition set specifying a setting criterion of a plurality of parameters; and/or a general presentation template for presenting information in a general style; and/or a special presentation template, wherein the special presentation template is Show information in a special style.
- the user parameters may specify the format in which the bill is presented.
- the data output unit can be an XML converter.
- the data in the XML DOM may be output in a specified format according to the XSL style file and the user parameter. Since the XSL style file includes multiple style templates, the user parameter may also include multiple personalized or The special style setting, therefore, the embodiment of the invention can realize the diversification of the presentation style of the electronic bill.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
电子帐单的展现方法及装置 Electronic bill display method and device
本申请要求于 2006 年 4 月 4 日提交中国专利局、 申请号为 200610072030.9、 发明名称为"电子帐单的实现方法,,的中国专利申请的优先 权, 其全部内容通过引用结合在本申请中。 The present application claims priority to Chinese Patent Application No. 20061007203, filed on Apr. 4, 2006, the entire disclosure of which is incorporated herein by reference. .
技术械 Technical equipment
本发明涉及电子帐单技术, 尤其涉及电子帐单的展现方法及装置。 The present invention relates to electronic billing technology, and more particularly to a method and apparatus for displaying an electronic bill.
背景技术 Background technique
电信业务的蓬勃发展, 使得电子帐单业务也随之兴起。 目前, 有两种方 法可以用于展现电子帐单: The booming telecommunications business has led to the emergence of electronic billing services. Currently, there are two ways to present an electronic bill:
第一种方法:将运营支持系统( BOSS , Business Operation Support System ) 的帐单固化为电子文档 PDF格式, 这种方法的实现流程如图 1所示, 包括: 步骤 S101: BOSS从数据库中将用户的消费及交易等数据导出, 并生成 特定格式的文件, 其中, 这种格式必须符合后续的打印软件的要求; The first method is to solidify the bill of the operation support system (BOSS, Business Operation Support System) into an electronic document PDF format. The implementation process of this method is as shown in FIG. 1, and includes: Step S101: BOSS takes the user from the database. Data such as consumption and transactions are exported, and files in a specific format are generated, wherein the format must conform to the requirements of subsequent printing software;
步骤 S102: 判断是否要求将所述特定格式的文件打印, 如果是, 转步骤 S103, 否则, 转步 S104; Step S102: determining whether it is required to print the file of the specific format, if yes, go to step S103, otherwise, go to step S104;
步骤 S103: 由打印软件打印所述特定格式的文件; 件, 通常是 PDF格式, 转步骤 S105; Step S103: printing the file of the specific format by the printing software; a piece, usually a PDF format, and proceeding to step S105;
步骤 S105: 将所述 PDF格式文件导入到运营商的 E-Bill (电子帐单)系 统中, 转步骤 S106; Step S105: Import the PDF format file into the E-Bill (electronic billing) system of the operator, and go to step S106;
步骤 S106: 由 E-Bill系统展现 PDF格式文件。 Step S106: The PDF file is presented by the E-Bill system.
在上述方法中, BOSS将用户的消费及交易等数据从数据库中导出, 再 经过一系列的格式转换, 待用户需要查询帐单时, 到运营商的营业厅打印帐 单或者登录运营商的网站查看 PDF格式的帐单即可,这样, 用户可以获得清 晰的查询结果。 In the above method, BOSS exports the user's consumption and transaction data from the database, and then undergoes a series of format conversions. When the user needs to check the bill, the BOS prints the bill to the operator's business hall or logs in to the operator's website. View the bill in PDF format so that users can get clear results.
但是, 由于需要将用户的消费及交易等数据生成特定格式的文件,所以, 展现给用户的帐单样式会很单一, 这样会难以满足国际化或个性化的需求。 However, since the data of the user's consumption and transactions needs to be generated in a specific format, the billing style presented to the user will be single, which makes it difficult to meet the requirements of internationalization or personalization.
第二种方法: 直接从数据库的多个表中获取用户信息、 用户消费信息及 交易信息等数据, 将这些数据根据展现要求直接写在需要展现的 HTML(HyperText Markup Language,超文本标记语言)页面上,以展现给用户。 在上述方法中, 由于将数据写在 HTML页面上会导致移植性较差,展现 风格比较单一, 所以, 这种方法也难以满足国际化或个性化的需求。 The second method: directly obtains user information, user consumption information, transaction information and other data from multiple tables of the database, and directly writes the data according to the presentation requirements in the need to display HTML (HyperText Markup Language) page to display to the user. In the above method, since the data is written on the HTML page, the portability is poor, and the presentation style is relatively simple, so this method is also difficult to meet the requirements of internationalization or personalization.
所以, 目前的电子帐单的展现方法所展现的帐单都存在展现风格单一、 不能满足个性化的需求的问题。 Therefore, the bills presented by the current method of displaying electronic bills have the problem of exhibiting a single style and failing to meet the individual needs.
发明内容 Summary of the invention
本发明实施例提供了一种电子帐单的展现方法及装置, 实现电子帐单的 展现风格多样化。 The embodiment of the invention provides a method and a device for displaying an electronic bill, and realizes diversification of the presentation style of the electronic bill.
本发明实施例还提供一种电子帐单的展现方法, 包括: 提取帐单数据; 将提取的帐单数据构造为具有层次关系的数据结构模型; 根据 XSL ( Extensible Stylesheet Language, 可扩展样式语言)样式文件及用户参数的 规定, 将所述数据结构模型中的数据以指定的格式输出。 The embodiment of the invention further provides a method for displaying an electronic bill, comprising: extracting bill data; constructing the extracted bill data into a data structure model having a hierarchical relationship; according to XSL (Extensible Stylesheet Language) The specification of the style file and the user parameter outputs the data in the data structure model in a specified format.
本发明实施例还提供一种电子帐单的展现装置, 包括: 帐单数据提取单 元, 用于提取帐单数据; 数据结构模型构造单元, 用于将提取的帐单数据构 造为具有层次关系的数据结构模型;数据输出单元,用于根据 XSL样式文件 及用户参数的规定, 将所述数据结构模型中的数据以指定的格式输出。 The embodiment of the present invention further provides an electronic bill presentation apparatus, including: a billing data extracting unit, configured to extract billing data; and a data structure model constructing unit, configured to construct the extracted billing data into a hierarchical relationship a data structure model; a data output unit, configured to output data in the data structure model in a specified format according to an XSL style file and a user parameter.
在本发明实施例中,可以根据 XSL样式文件及用户参数的规定,将 XML DOM中的数据以指定的格式输出, 由于 XSL样式文件包含多种样式模板, 用户参数也可以包含多种个性化或特殊化的风格设置, 所以, 本发明实施例 可以实现电子帐单的展现风格多样化。 In the embodiment of the present invention, the data in the XML DOM may be output in a specified format according to the XSL style file and the user parameter. Since the XSL style file includes multiple style templates, the user parameter may also include multiple personalized or The special style setting, therefore, the embodiment of the invention can realize the diversification of the presentation style of the electronic bill.
附图说明 DRAWINGS
图 1为目前的一种电子帐单的展现方法的流程图; 1 is a flow chart of a current method for displaying an electronic bill;
图 2为本发明方法第一实施例的流程图; 2 is a flow chart of a first embodiment of a method of the present invention;
图 3为本发明实施例提供的 DOM示意图; 3 is a schematic diagram of a DOM according to an embodiment of the present invention;
图 4为本发明实施例使用 XML Schema定义的协议截图; 4 is a screenshot of a protocol defined by using XML Schema according to an embodiment of the present invention;
图 5为本发明方法第二实施例的流程图。 Figure 5 is a flow chart of a second embodiment of the method of the present invention.
具体实施方式 detailed description
下面我们将结合附图, 对本发明的实施例进行详细描述。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
首先结合图 2, 对本发明方法的第一实施例进行说明。 如图 2所示, 所 -3 - 述方法实施例包括: First, a first embodiment of the method of the present invention will be described with reference to FIG. As shown in Figure 2, -3 - The method embodiments include:
步驟 S201: 从帐单数据库中批量提取帐单数据, 并将提取的帐单数据生 成 XML ( Extensible Markup Language, 可扩展标记语言)文件。 Step S201: Batchly extract billing data from the billing database, and generate the extracted billing data into an XML (Extensible Markup Language) file.
批量提取帐单数据是指每次从帐单数据库中提取多个帐单数据。 帐单数 据是指构成帐单的数据, 例如, 可以是与用户相关的数据, 也可以是预测的 用户可能需要的数据, 还可以是用户实际需要的数据。 提取数据的数量可以 根据实际需要决定, 例如, 可以一次性的提取与用户相关或用户需要的所有 数据, 也可以每次只提取与用户相关或用户需要的部分数据, 直至将与用户 相关或用户需要的所有数据提取出来为止。 另外, 提取帐单数据可以在用户 查询帐单之前进行。 Bulking out billing data means extracting multiple billing data from the billing database each time. The billing data refers to the data constituting the bill. For example, it may be data related to the user, data that may be required by the predicted user, or data actually needed by the user. The amount of extracted data can be determined according to actual needs. For example, all data related to the user or the user needs can be extracted at one time, or only part of the data related to the user or required by the user can be extracted at a time until it is related to the user or the user. All the data needed is extracted. In addition, the billing data can be taken before the user queries the bill.
提取数据之后, 需要将数据生成具有一定层次关系的 XML文件。 层次 关系是指各个数据之间的隶属关系, 例如, 帐单可以包含属性及信息, 信息 可以包含运营商标志、 费用信息、 客户信息及付费规则, 费用信息可以包含 上期结余、 本期新费用及总结余等。 XML是一个精筒的标准通用标记语言 ( SGML, Standard Generalized Markup Language ), 它将 SGML的丰富功能 与 HTML的易用性结合到 Web的应用中。 XML保留了 SGML的可扩展功能, 这使 XML从根本上有别于 HTML。 XML比 HTML的功能多, 它不再使用 固定的标记, 而是允许定义数量不限的标记来描述文档中的资料, 同时还允 许存在嵌套的信息结构。 HTML只是显示 Web数据的通用方法, 而 XML提 供了一个直接处理 Web数据的通用方法。 HTML着重描述的是 Web页面的 显示格式, 而 XML着重描述的是 Web页面的内容。 After extracting the data, you need to generate the XML file with a certain hierarchical relationship. Hierarchical relationship refers to the affiliation between each data. For example, the bill can contain attributes and information. The information can include operator logo, expense information, customer information, and payment rules. The fee information can include the previous period balance, the current new fee, and Summarize the remainder. XML is a fine-tuned Standard Generalized Markup Language (SGML) that combines the rich functionality of SGML with the ease of use of HTML into Web applications. XML preserves the extensibility of SGML, which makes XML fundamentally different from HTML. XML has more features than HTML. Instead of using fixed tags, it allows an unlimited number of tags to be used to describe the material in a document, while allowing for nested information structures. HTML is just a general way of displaying web data, and XML provides a common way to work directly with web data. HTML focuses on the display format of Web pages, while XML focuses on the content of Web pages.
步骤 S202: 解析所述 XML文件, 获得 XML DOM ( Document Object model, 文档对象模型)。 Step S202: Parse the XML file to obtain an XML DOM (Document Object Model).
通过解析 XML文件获得的 DOM可以是树型结构或者其他具有嵌套关 系的结构, 当需要调用 DOM中的某个或某些数据时, 可以按照 DOM中的 层次关系, 快速的找到所需要的数据。 以图 3 所示的本发明实施例提供的 DOM示意图为例, 如果需要调用总结余时, 可以通过帐单、 信息、 费用信 息找到总结余。 另外, 如果调用总结余后, 还需调用上期结余, 则可重新通 过帐单、 信息、 费用信息找到上期结余, 此外, 还可直接利用上一次调用的 过程, 例如, 直接通过费用信息找到上期结余。 The DOM obtained by parsing the XML file can be a tree structure or other structure with nested relationships. When you need to call some or some data in the DOM, you can quickly find the required data according to the hierarchical relationship in the DOM. . Taking the DOM diagram provided by the embodiment of the present invention shown in FIG. 3 as an example, if it is necessary to call the summary time, the summary balance can be found through billing, information, and cost information. In addition, if the previous balance is called after the sum of the sum is called, the previous balance can be found again through the bill, information, and expense information. In addition, the last call can be directly used. The process, for example, finds the previous balance directly from the expense information.
步驟 S203: XML转换器根据 XSL样式文件及用户参数的规定, 将所 述 XML DOM中的数据以指定的格式输出。 Step S203: The XML converter outputs the data in the XML DOM in a specified format according to the specification of the XSL style file and the user parameter.
XSL 样式文件和用户参数可以共同规定打印或展现的风格、 样式等, XML转换器按照规定, 将 DOM中的数据以需要的格式输出。 The XSL style file and user parameters can collectively specify the style, style, etc. of the print or presentation, and the XML converter outputs the data in the DOM in the required format as specified.
XSL用于将 XML文件中的数据翻译为 HTML或其他格式的语言。 XSL 提供了一种 CSS ( Cascading Style Sheets, 串接样式表)的功能, 可以使开发 人员构造出具有表达层结构的 Web页面, 以有别于 XML的数据结构。 XSL 也能和 HTML—起构造叠式页面。 XSL可以解释数量不限的标记, 使 Web 页面更丰富多彩, 例如动态的文本。 此外, XSL还可以处理多国文字、 双字 节的汉字显示以及网格等。 XSL is used to translate data in XML files into HTML or other formatted languages. XSL provides a CSS (Cascading Style Sheets) feature that allows developers to construct Web pages with an expression layer structure that are distinct from XML data structures. XSL can also construct stacked pages with HTML. XSL can interpret an unlimited number of tags to make web pages more colorful, such as dynamic text. In addition, XSL can handle multi-national characters, double-byte Chinese characters, and grids.
XSL样式文件可以包含国际化语言包, 所述国际化语言包由多个国家或 地区的本地化文件构成, 所述本地化文件设置了帐单上的内容在当地的语言 习惯中的表现形式, 如货币符号、 时间、 标签语言、 人名等格式的设置。 以 日期" 2006年 2月 20日,,为例, 中文的显示格式一般为" 2006年 2月 20曰", 如果用英文显示这个日期, 则显示的格式一般为 "February 20th, 2006"。 由 于国际化语言包具有多种语言的设置标准, 所以能够解决帐单语言的国际化 问题,进而可以使电子帐单能够适应不同国家和地区的需要。下面通过举例, 对国际化语言包进行说明。 The XSL style file may contain an internationalization language pack, which is composed of localized files of a plurality of countries or regions, and the localization file sets the expression of the content on the bill in the local language habits, Settings such as currency symbol, time, label language, person name, etc. On February 20, 2006, for example, the Chinese display format is generally "February 20, 2006". If this date is displayed in English, the format displayed is generally "February 20th, 2006". The international language pack has multiple language setting standards, so it can solve the internationalization problem of billing language, and then enable the electronic bill to adapt to the needs of different countries and regions. The following describes the international language pack by way of example.
定义语言包入口文件 lang.xml, 内容大致如下: Define the language package entry file lang.xml, the content is as follows:
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE billlangmap [ <!DOCTYPE billlangmap [
<!ENTITY ar SYSTEM "ar.xml"> <!ENTITY ar SYSTEM "ar.xml">
<!ENTITY en SYSTEM "en.xml"> <!ENTITY en SYSTEM "en.xml">
<!ENTITY ml SYSTEM "ml.xmr> <!ENTITY ml SYSTEM "ml.xmr>
<!ENTITY zh_cn SYSTEM "zh—cn.jiml"> <!ENTITY zh_cn SYSTEM "zh-cn.jiml">
<!ENTITY zh— tw SYSTEM "zh_tw.xml">]> <!ENTITY zh— tw SYSTEM "zh_tw.xml">]>
<billlangmap> <billlangmap>
&ar; &en; &ar; &en;
&ml; &ml;
&zh—cn; &zh-cn;
&zh— tw; &zh- tw;
</billlangmap> </billlangmap>
上述 ar、 en、 ml、 zh cn、 zh tw 另, J为阿 白^ 1、 英 、 马^ l、 简 体中文、 繁体中文, 并且分别有不同的语言文件与之对应。 以图 3中的元素 总结余( TotalBalance ) 为例, 假设 TotalBalance 为 12.50 美元, 如果要将 10^18&^1106>12.50 101^18&131^6>显示为中文筒体 ( zh_cn )和英文 (en)的双 语内容, 则可以用 TotalBalance在语言包里找到相应的中文简体和英文的对 应的展现内容,找到的结果分别为"本期结余"和" Total Balance",最终显示为: "本期结余 Total Balance $12.50" (假设当地的货币符号是 $, 费用的显示格式 也是可以配置的)。 The above ar, en, ml, zh cn, zh tw In addition, J is A white ^ 1, English, Ma ^ l, Simplified Chinese, Traditional Chinese, and have different language files corresponding to them. Take the example of TotalBalance in Figure 3, assuming TotalBalance is $12.50, if you want to display 10^18&^1106>12.50 101^18&131^6> as Chinese cylinder (zh_cn) and English (en) For bilingual content, you can use TotalBalance to find the corresponding Chinese Simplified and English corresponding content in the language package. The results found are "current balance" and "Total Balance", and the final display is: "The current balance Total Balance" $12.50" (assuming the local currency symbol is $, the display format of the fee is also configurable).
XSL样式文件可以包含参数定义集, 所述参数定义集规定了多个参数的 设置标准。 定义一些参数, 可以方便用户设置一些个性化的内容, 例如帐单 显示的语言、 话单显示的顺序 (按照呼叫时间或者呼叫类型等排序)、 文字 排版的顺序 (从左至右或者从右至左排版)、 浏览器参数(如果用户是在手 机上浏览帐单, 则帐单应该简洁并满足浏览器的特殊要求)。 下面通过举例, 对参数定义集进行说明。 An XSL style file can contain a set of parameter definitions that set criteria for setting multiple parameters. Define some parameters, which can be convenient for users to set some personalized content, such as the language of bill display, the order of bill display (sorted by call time or call type), the order of text layout (from left to right or from right to right) Left typesetting), browser parameters (if the user is browsing the bill on the phone, the bill should be simple and meet the browser's special requirements). The parameter definition set is explained below by way of example.
参数文件 param.xsl: Parameter file param.xsl:
<xsl:stylesheet> <xsl:stylesheet>
<xsl:param name="bill.langl" select="'en"7> <xsl:param name="bill.langl" select="'en"7>
<xsl:param name="bilUang2" select=" 'zh_cn"'/> <xsl:param name="bilUang2" select=" 'zh_cn"'/>
<xsl:param name="bill.lang3" select=" 'zh_tw"'/> <xsl:param name="bill.lang3" select=" 'zh_tw"'/>
</xsl:stylesheet> </xsl:stylesheet>
这里的 <xsl:param name- 'bill.langl" select=",en' >定义1 Hi单语言参数, 如果用户没有设定这个参数, 则将帐单语言默认为英文。 如果一个手机用户 要求显示中文简体和英文帐单,则可以选择显示 bilUangl和 bill.lang2, 以将 帐单用中文简体和英文展现。 Here <xsl:param name- 'bill.langl"select=",en'> defines 1 Hi single language parameter, if the user does not set this parameter, the billing language defaults to English. If a mobile phone user requests to display Chinese simplified and English bills, you can choose to display bilUangl and bill.lang2 to The bill is presented in simplified Chinese and English.
XSL样式文件可以包含通用展现模板, 所述通用展现模板用于以通用风 格展现信息, 通用展现模板可以用来定义一些模块化的信息, 例如, 客户地 址(address ), 地址上的准 ί道(Street No )、 门牌号 (Unit )、 幢( Block )、 楼 层(Floor )、 邮编 (zip )等信息都有一些通用的显示方法, 因此可以做成一 个独立的模板来处理。 The XSL style file may include a general presentation template for presenting information in a general style, and the universal presentation template may be used to define some modular information, such as a client address (address), a standard address on the address ( Street No ), House, Block, Floor, Zip (zip) and other information have some common display methods, so you can make a separate template to deal with.
XSL样式文件还可以包含特殊展现模板, 所述特殊展现模板用于以特殊 风格展现信息, 特殊展现模板以用来定义一些特殊的模板, 用来处理不同运 营商和风俗习惯的特殊需求。 The XSL style file can also contain special presentation templates for presenting information in a special style, and special presentation templates for defining special templates to handle the special needs of different operators and customs.
用户参数可以是用户对帐单展现风格提出的要求, 例如, 要求帐单的显 示语言为中文, 要求帐单的背景为具有中国传统风格的版面等。 The user parameter may be a requirement of the user's statement presentation style. For example, the display language of the bill is required to be Chinese, and the background of the bill is required to be a layout with a Chinese traditional style.
在本发明方法第一实施例中, 还可以预先设置一个接口协议, 所述接口 协议可以规定帐单数据的隶属关系。 所述接口协议可以为文档类型定义, 定 义所述接口协议的语言可以采用 XML Schema ( XML模式语言)或 DTD ( Document Type Definitions, 文档类型定义语言)。 文档类型定义是一个协 议性质的文件, 可以用来指导业务模块开发人员和展现模块开发人员开发模 块, 例如, 业务模块开发人员可以用它来检查开发出来的程序是否能够生成 符合协议的良构 (well-formed ) 的 XML帐单, 展现模块开发人员可以用它 和一些集成开发工具(如 Altova StyleVision )方便的设计 XSL样式文件, 其 中, 良构是指构造良好, 即, XML文件必须符合形式合格、 语法规范的要 求。 In the first embodiment of the method of the present invention, an interface protocol may also be preset, and the interface protocol may specify the membership relationship of the billing data. The interface protocol may be a document type definition, and the language defining the interface protocol may be an XML Schema (XML Schema Language) or a DTD (Document Type Definitions). A document type definition is a protocol-like file that can be used to guide business module developers and presentation module developers to develop modules. For example, business module developers can use it to check whether a developed program can generate a conforming conformance ( Well-formed ) XML billing, presentation module developers can use it and some integrated development tools (such as Altova StyleVision) to easily design XSL style files, where good structure means well-formed, that is, XML files must conform to form , the requirements of the grammar specification.
在本发明方法第一实施例中, 可以将步骤 S201 中提取的帐单数据生成 符合接口协议标准的 XML文件, 还可以根据所述接口协议规定的数据之间 的隶属关系及用户的需求, 设计 XSL样式文件。 In the first embodiment of the method of the present invention, the bill data extracted in step S201 may be generated into an XML file conforming to the interface protocol standard, and may also be designed according to the affiliation relationship between the data specified by the interface protocol and the user's requirements. XSL style file.
定义了上述接口协议, 实质上就是定义了业务模块开发人员和展现模块 开发人员之间的接口。 如果接口协议规定了数据之间的隶属关系, 则业务模 块开发人员在设计业务模块时, 就定义从帐单数据库中提取何种数据, 并将 这些数据之间的关系按照接口协议安排,展现模块开发人员在设计 XSL样式 文件时, 也根据接口协议设计展现样式, 并设置适当的参数。 图 4为使用 XML Schema定义的协议截图, 此图规定了帐单中的数据, 也可称为元素, 还规定了各个元素之间的隶属及顺序关系, 例如, 根元素为 bill (帐单), 根元素下有帐单的 attributes (属性)及未命名的元素, 未命名 的元素下还具有 ComanyLogo (运营商的标志)、 billfee (费用信息)、 custinfo (客户信息)及 paymentrule (付费规则)。 这种情况下, 业务模块开发人员 在设计业务模块时, 就需要定义从数据库中找 billfee等元素的动作, 还要根 据图 4所示的截图规定 billfee等元素应该隶属于哪个元素。 展现模块开发人 员在设计 XSL样式文件时,根据截图定义的元素关系,设计展现样式,例如, ComanyLogo, custinfo等被设置在页面的哪个位置, 如果需要查找 billfee, 就需要在 bill下找到未命名的元素, 再在未命名的元素下找到 billfee。 The above interface protocol is defined, which essentially defines the interface between the business module developer and the presentation module developer. If the interface protocol specifies the affiliation between the data, the business module developer defines what data is extracted from the billing database when designing the business module, and arranges the relationship between the data according to the interface protocol. When designing XSL style files, developers also design styles based on interface protocols and set the appropriate parameters. Figure 4 is a screenshot of the protocol defined using XML Schema, which specifies the data in the bill, also known as the element, and also specifies the membership and order relationship between the elements, for example, the root element is bill (billing) , under the root element, there are billing attributes and unnamed elements. Unnamed elements also have ComanyLogo (operator's logo), billfee (cost information), custinfo (customer information), and paymentrule (paid rules). . In this case, when designing the business module, the business module developer needs to define the action of looking for elements such as billfee from the database, and also according to the screenshot shown in Figure 4, which element the elements such as billfee should belong to. When the module developer designs the XSL style file, according to the element relationship defined by the screenshot, the design style is displayed. For example, where ComanyLogo, custinfo, etc. are set on the page, if you need to find billfee, you need to find the unnamed under the bill. Element, then find billfee under the unnamed element.
下面结合图 5, 对本发明方法第二实施例进行说明。 Next, a second embodiment of the method of the present invention will be described with reference to FIG.
步骤 S501: 从帐单数据库中实时提取帐单数据。 实时提取帐单数据是指 在用户查询帐单时提取数据, 提取的数据可以是与用户需要查询的信息所对 应的数据。 Step S501: Extract billing data in real time from the billing database. Extracting billing data in real time means extracting data when the user queries the bill, and the extracted data may be data corresponding to the information that the user needs to query.
步骤 S502: 将提取的帐单数据构造为 XML DOM。 由于帐单数据是实时 提取并且需要直接输出的, 所以, 提取数据后, 需要将数据直接生成具有嵌 套关系的 DOM,生成 DOM的目的是为了便于具有展现功能的展现平台调用 数据。 Step S502: Construct the extracted billing data as an XML DOM. Since the billing data is extracted in real time and needs to be directly output, after extracting the data, the data needs to directly generate the DOM with the nested relationship, and the purpose of generating the DOM is to facilitate the presentation platform calling data with the presentation function.
步骤 S503: XML转换器根据 XSL样式文件及用户参数的规定,将 XML DOM中的数据以指定的格式输出。 Step S503: The XML converter outputs the data in the XML DOM in a specified format according to the specification of the XSL style file and the user parameter.
在本发明方法第二实施例中, 还可以预先设置一个接口协议, 所述接口 协议可以规定帐单数据的隶属关系。 所述接口协议可以为文档类型定义, 定 义所述接口协议的语言可以采用 XML Schema或 DTD。文档类型定义是一个 协议性质的文件, 可以用来指导业务模块开发人员和展现模块开发人员开发 模块, 例如, 业务模块开发人员可以用它来检查开发出来的程序是否能够生 成符合协议的良构的 XML帐单, 展现模块开发人员可以用它和一些集成开 发工具(如 Altova StyleVision )方便的设计 XSL样式文件, 其中, 良构是指 构造良好, 即, XML文件必须符合形式合格、 语法规范的要求。 In the second embodiment of the method of the present invention, an interface protocol may also be preset, and the interface protocol may specify the membership relationship of the bill data. The interface protocol may be a document type definition, and the language defining the interface protocol may be an XML Schema or a DTD. A document type definition is a protocol-like file that can be used to guide business module developers and presentation module developers to develop modules. For example, business module developers can use it to check whether a developed program can generate a well-formed protocol. XML billing, presentation module developers can use it and some integrated development tools (such as Altova StyleVision) to easily design XSL style files, where well-formed means well-formed, that is, XML files must meet the requirements of formal qualifications and grammar specifications. .
在本发明方法第二实施例中, 可以将步驟 S501 中提取的帐单数据生成 符合所述接口协议标准的 XML DOM, 还可以根据所述接口协议规定的数据 之间的隶属关系及用户的需求, 设计 XSL样式文件。 In the second embodiment of the method of the present invention, the bill data extracted in step S501 can be generated. The XML DOM conforming to the interface protocol standard may also design an XSL style file according to the affiliation relationship between the data specified by the interface protocol and the needs of the user.
定义了上述接口协议, 实质上就是定义了业务模块开发人员和展现模块 开发人员之间的接口。 如果接口协议规定了数据之间的隶属关系, 则业务模 块开发人员在设计业务模块时, 就定义从帐单数据库中提取何种数据, 并将 这些数据之间的关系按照接口协议安排,展现模块开发人员在设计 XSL样式 文件时, 也要根据接口协议设计展现样式, 并设置适当的参数。 The above interface protocol is defined, which essentially defines the interface between the business module developer and the presentation module developer. If the interface protocol specifies the affiliation between the data, the business module developer defines what data is extracted from the billing database when designing the business module, and arranges the relationship between the data according to the interface protocol. When designing XSL style files, developers should also design presentation styles according to the interface protocol and set the appropriate parameters.
XSL样式文件可以包含国际化语言包, 所述国际化语言包由多个国家或 地区的本地化文件构成, 所述本地化文件设置了帐单上的内容在当地的语言 习惯中的表现形式, 如货币符号、 时间、 标签语言、 人名等格式的设置。 The XSL style file may contain an internationalization language pack, which is composed of localized files of a plurality of countries or regions, and the localization file sets the expression of the content on the bill in the local language habits, Settings such as currency symbol, time, label language, person name, etc.
XSL样式文件可以包含参数定义集, 所述参数定义集规定了多个参数的 设置标准。 An XSL style file can contain a set of parameter definitions that set criteria for setting multiple parameters.
XSL样式文件可以包含通用展现模板, 所述通用展现模板用于以通用风 格展现信息。 The XSL style file may contain a generic presentation template for presenting information in a generic style.
XSL样式文件还可以包含特殊展现模板, 所述特殊展现模板用于以特殊 风格展现信息。 The XSL style file can also contain special presentation templates that are used to present information in a particular style.
此外 , 本发明方法第一实施例的方案与本发明方法第二实施例的方案也 可融合在一起, 例如, 提取数据的两个过程可以并列使用, 定义接口协议、 展现数据的过程可以完全与本发明方法第一实施例或本发明方法第二实施 例所述的相同。 例如, 如果查询之前某个月或某几个月的帐单, 可以在查询 前批量导出数据, 需要查询时, 从 XML文件中获取, 如果查询本月帐单, 则可直接从数据库中获取数据。 In addition, the solution of the first embodiment of the method of the present invention and the solution of the second embodiment of the method of the present invention may also be combined. For example, two processes of extracting data may be used in parallel, and the process of defining an interface protocol and displaying data may be completely The first embodiment of the method of the invention or the second embodiment of the method of the invention is the same. For example, if you query the bill for a month or a few months before, you can export the data in batches before the query. When you need to query, you can get it from the XML file. If you query this month's bill, you can get the data directly from the database. .
在现有的一种电子帐单的展现方法中, 为将电子帐单展现给用户, 需要 直接从数据库的多个表中获取用户信息、 用户消费信息及交易信息等数据, 再将这些数据根据展现要求直接写在需要展现的 HTML页面上。但是, 由于 数据库各表之间有大量的业务上的关联关系, 如果直接将原始数据用 HTML 格式展现, 则不利于业务和展现的分离, 使得开发人员不仅需要关注运营商 的业务知识,还要关注如何通过 HTML将帐单数据清楚合理的展现出来。 不 了解业务, 就没有办法取到正确的数据, 不了解展现又无法将这些数据正确 一 ~ . In an existing method for displaying an electronic bill, in order to present an electronic bill to a user, it is necessary to directly obtain data such as user information, user consumption information, and transaction information from a plurality of tables of the database, and then use the data according to the data. The presentation requirements are written directly on the HTML page that needs to be presented. However, because there are a large number of business associations between the tables in the database, if the original data is directly displayed in HTML format, it is not conducive to the separation of business and presentation, so that developers not only need to pay attention to the operator's business knowledge, but also Focus on how to clearly display the billing data through HTML. If you don't understand the business, there is no way to get the right data. If you don't understand the presentation, you can't get the data correctly. One ~ .
的显示出来, 这样就增加了对开发人员的业务和技能要求。 The display is shown, which increases the business and skill requirements for developers.
而在本发明实施例中, 定义了一个规定帐单数据的隶属关系的接口协 议, 这种接口协议相当于业务模块开发人员和展现模块开发人员之间的沟通 桥梁, 由于接口协议定义了数据、 数据关系的标准, 所以业务模块开发人员 只需考虑业务层面的问题, 展现模块开发人员只需考虑展现层面的问题, 两 类开发人员通过这个接口协议完成电子帐单的开发, 有效的实现了业务模块 和展现模块的分离, 减少了程序开发和维护的工作量。 In the embodiment of the present invention, an interface protocol that defines the membership relationship of the billing data is defined. The interface protocol is equivalent to a communication bridge between the business module developer and the presentation module developer, and the interface protocol defines the data. The standard of data relationship, so the business module developer only needs to consider the problem at the business level, and the module developer only needs to consider the problem of the presentation level. The two types of developers use this interface protocol to complete the development of the electronic bill, and effectively realize the business. The separation of modules and presentation modules reduces the amount of work required for program development and maintenance.
本发明实施例还提供一种电子帐单的展现装置, 包括: 帐单数据提取单 元, 用于提取帐单数据; 数据结构模型构造单元, 用于将提取的帐单数据构 造为具有层次关系的数据结构模型;数据输出单元,用于根据 XSL样式文件 及用户参数的规定, 将所述数据结构模型中的数据以指定的格式输出。 The embodiment of the present invention further provides an electronic bill presentation apparatus, including: a billing data extracting unit, configured to extract billing data; and a data structure model constructing unit, configured to construct the extracted billing data into a hierarchical relationship a data structure model; a data output unit, configured to output data in the data structure model in a specified format according to an XSL style file and a user parameter.
帐单数据提取单元可以按照如下方式提取帐单数据: 用户查询帐单前, 批量提取帐单数据, 或者, 用户查询帐单时, 实时提取帐单数据。 The billing data extracting unit may extract billing data as follows: Before the user inquires the bill, the billing data is extracted in batches, or when the user inquires the bill, the billing data is extracted in real time.
所述数据结构模型构造单元还包括: XML 文件生成单元, 用于将提取 的帐单数据生成 XML文件; XML文件解析单元,用于解析所述 XML文件, 以获得数据结构模型。 The data structure model construction unit further includes: an XML file generating unit configured to generate the extracted bill data into an XML file; and an XML file parsing unit configured to parse the XML file to obtain a data structure model.
所述数据结构模型可以为可扩展标记语言 XML文档对象模型 DOM,所 述数据结构模型可以为树型结构模型或具有嵌套关系的结构模型。 The data structure model may be an extensible markup language XML document object model DOM, and the data structure model may be a tree structure model or a structure model having a nested relationship.
电子帐单的展现装置还可以包括: 接口协议设置单元, 用于将所述数据 结构模型中的数据以指定的格式输出之前, 设置规定帐单数据的隶属关系的 接口协议。 The electronic bill presentation apparatus may further include: an interface protocol setting unit configured to set an interface protocol specifying the membership of the bill data before outputting the data in the data structure model in a specified format.
所述接口协议可以为 ML文档类型定义, 定义所述接口协议的语言可 以采用 XML模式语言 XML Schema或文档类型定义语言 DTD。 The interface protocol may be defined for an ML document type, and the language defining the interface protocol may adopt an XML schema language XML Schema or a document type definition language DTD.
如果设置了接口协议, 则所述数据结构模型可以为符合所述接口协议标 准的数据结构模型,所述 XSL样式文件可以为根据所述接口协议规定的数据 的隶属关系及用户的需求设计的 XSL样式文件。 If the interface protocol is set, the data structure model may be a data structure model conforming to the interface protocol standard, and the XSL style file may be an XSL designed according to the affiliation of the data specified by the interface protocol and the user's requirements. Style file.
所述 XSL样式文件可以包含: The XSL style file can include:
国际化语言包, 所述国际化语言包由多个国家或地区的本地化文件构 成, 所述本地化文件设置了帐单上的内容在当地的语言习惯中的表现形式; 和 /或 An internationalization language package, the internationalization language package being composed of localization files of a plurality of countries or regions, the localization file setting a manifestation of the content on the bill in the local language habit; and / or
参数定义集, 所述参数定义集规定多个参数的设置标准; 和 /或 通用展现模板, 所述通用展现模板用于以通用风格展现信息; 和 /或 特殊展现模板, 所述特殊展现模板用于以特殊风格展现信息。 a parameter definition set, the parameter definition set specifying a setting criterion of a plurality of parameters; and/or a general presentation template for presenting information in a general style; and/or a special presentation template, wherein the special presentation template is Show information in a special style.
另外, 所述用户参数可以指定帐单展现的格式。 Additionally, the user parameters may specify the format in which the bill is presented.
数据输出单元可以为 XML转换器。 The data output unit can be an XML converter.
在本发明实施例中,可以根据 XSL样式文件及用户参数的规定,将 XML DOM中的数据以指定的格式输出, 由于 XSL样式文件包含多种样式模板, 用户参数也可以包含多种个性化或特殊化的风格设置, 所以, 本发明实施例 可以实现电子帐单的展现风格多样化。 In the embodiment of the present invention, the data in the XML DOM may be output in a specified format according to the XSL style file and the user parameter. Since the XSL style file includes multiple style templates, the user parameter may also include multiple personalized or The special style setting, therefore, the embodiment of the invention can realize the diversification of the presentation style of the electronic bill.
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普 通技术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润 饰, 这些改进和润饰也应视为本发明的保护范围。 The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It is considered as the scope of protection of the present invention.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200610072030.9 | 2006-04-04 | ||
| CN2006100720309A CN1967580B (en) | 2006-04-04 | 2006-04-04 | Implementation method of electronic bill |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2007112632A1 true WO2007112632A1 (en) | 2007-10-11 |
Family
ID=38076337
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2007/000243 Ceased WO2007112632A1 (en) | 2006-04-04 | 2007-01-23 | Presentation method and apparatus of electric bill |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN1967580B (en) |
| WO (1) | WO2007112632A1 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102096883A (en) * | 2009-12-14 | 2011-06-15 | 深圳速浪数字技术有限公司 | Method and system for managing bill during bank collection |
| EP2413279B1 (en) * | 2010-07-29 | 2016-03-30 | Accenture Global Services Limited | Account reconciliation server |
| CN103995813A (en) * | 2013-02-20 | 2014-08-20 | 中国银联股份有限公司 | Method and system for generating electronic bill template |
| CN103888547B (en) * | 2014-04-16 | 2018-05-25 | 中国银行股份有限公司 | A kind of bill processing method and server |
| CN109597917B (en) * | 2018-10-17 | 2022-03-01 | 中国工程物理研究院计算机应用研究所 | Method for converting XML Schema document into XSL document |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6768994B1 (en) * | 2001-02-23 | 2004-07-27 | Trimble Navigation Limited | Web based data mining and location data reporting and system |
| CN1581172A (en) * | 2003-08-08 | 2005-02-16 | 富士通株式会社 | Multimedia object searching device and methoed |
| US6908034B2 (en) * | 2001-12-17 | 2005-06-21 | Zih Corp. | XML system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1248115C (en) * | 2002-06-24 | 2006-03-29 | 华为技术有限公司 | Method for readlizing universal test report |
-
2006
- 2006-04-04 CN CN2006100720309A patent/CN1967580B/en not_active Expired - Fee Related
-
2007
- 2007-01-23 WO PCT/CN2007/000243 patent/WO2007112632A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6768994B1 (en) * | 2001-02-23 | 2004-07-27 | Trimble Navigation Limited | Web based data mining and location data reporting and system |
| US6908034B2 (en) * | 2001-12-17 | 2005-06-21 | Zih Corp. | XML system |
| CN1581172A (en) * | 2003-08-08 | 2005-02-16 | 富士通株式会社 | Multimedia object searching device and methoed |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1967580A (en) | 2007-05-23 |
| CN1967580B (en) | 2010-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6910182B2 (en) | Method and apparatus for generating structured documents for various presentations and the uses thereof | |
| US8635218B2 (en) | Generation of XSLT style sheets for different portable devices | |
| US8578265B2 (en) | Methods and apparatus for generating a dynamic document | |
| US7191397B2 (en) | XML server pages language | |
| CN104714766B (en) | A kind of method directly printed in WEB forms browser | |
| US20070277099A1 (en) | Page source data generation method, page source data generation system, and program | |
| US20040261017A1 (en) | Document generation | |
| US20040225749A1 (en) | Transformation of web site summary via taglibs | |
| US20040135805A1 (en) | Document composition system and method | |
| US20040039993A1 (en) | Automatic formatting and validating of text for a markup language graphical user interface | |
| CN114281331B (en) | A method and device for generating front-end and back-end code files for accessing a database | |
| CN108304172A (en) | A kind of web development approaches and web develop engine | |
| AU2005202103A1 (en) | Programmable object model for namespace or schema library support in a software application | |
| CN102982010A (en) | Method and device for abstracting document structure | |
| CN1954312B (en) | The method of creating XML document on WEB browser | |
| WO2007112632A1 (en) | Presentation method and apparatus of electric bill | |
| US20030233343A1 (en) | System and method for generating custom business reports for a WEB application | |
| CN115758973A (en) | Method, device and equipment for generating chip register design file and storage medium | |
| CN120560608A (en) | A low-code dynamic configuration method based on natural language | |
| CN118710037A (en) | Process model generation method, device and electronic equipment | |
| KR100445452B1 (en) | Manual providing server system and manual providing method thereof | |
| CN114564931A (en) | Electronic certificate generating method and system based on tinymce | |
| EP1419459A2 (en) | Web interaction system which enables a mobile telephone to interact with web resources | |
| CN118798130A (en) | Document signature typesetting method, device and electronic equipment | |
| TWI352912B (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 07702172 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 07702172 Country of ref document: EP Kind code of ref document: A1 |