WO2007112632A1 - Procédé et appareil de présentation d'une facture électronique - Google Patents

Procédé et appareil de présentation d'une facture électronique Download PDF

Info

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
Application number
PCT/CN2007/000243
Other languages
English (en)
Chinese (zh)
Inventor
Enxiang Ma
Gang Wu
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2007112632A1 publication Critical patent/WO2007112632A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/154Tree 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

Un procédé de présentation d'une facture électronique consiste: à extraire des données de facture; à formater les données de facture extraites sous forme d'un modèle de structure de données ayant une relation hiérarchique; à produire des données dans le modèle de structure de données dans un format spécifique conforme à la prescription d'un fichier de style XSL et d'un paramètre d'utilisateur. Cette invention porte également sur un appareil de présentation d'une facture électronique. Conformément à la prescription du fichier de style XSL et du paramètre d'utilisateur, les données présentes dans le DOM XML peuvent être produites dans un format spécifique, étant donné que le fichier de style XSL contient divers modèles de style et que le paramètre d'utilisateur peut également contenir diverses présentations de style personnalisé ou spécialisé. Il est donc possible de disposer d'une diversification du style de présentation de la facture électronique.
PCT/CN2007/000243 2006-04-04 2007-01-23 Procédé et appareil de présentation d'une facture électronique WO2007112632A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610072030.9 2006-04-04
CN2006100720309A CN1967580B (zh) 2006-04-04 2006-04-04 电子帐单的实现方法

Publications (1)

Publication Number Publication Date
WO2007112632A1 true WO2007112632A1 (fr) 2007-10-11

Family

ID=38076337

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/000243 WO2007112632A1 (fr) 2006-04-04 2007-01-23 Procédé et appareil de présentation d'une facture électronique

Country Status (2)

Country Link
CN (1) CN1967580B (fr)
WO (1) WO2007112632A1 (fr)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096883A (zh) * 2009-12-14 2011-06-15 深圳速浪数字技术有限公司 一种银行代收时的账单管理方法和系统
EP2413279B1 (fr) * 2010-07-29 2016-03-30 Accenture Global Services Limited Serveur de réconciliation des comptes
CN103995813A (zh) * 2013-02-20 2014-08-20 中国银联股份有限公司 一种生成电子票据模板的方法和系统
CN103888547B (zh) * 2014-04-16 2018-05-25 中国银行股份有限公司 一种账单处理方法和服务器
CN109597917B (zh) * 2018-10-17 2022-03-01 中国工程物理研究院计算机应用研究所 将XML Schema文档转换为XSL文档的方法

Citations (3)

* Cited by examiner, † Cited by third party
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 (zh) * 2003-08-08 2005-02-16 富士通株式会社 多媒体对象检索设备和方法
US6908034B2 (en) * 2001-12-17 2005-06-21 Zih Corp. XML system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1248115C (zh) * 2002-06-24 2006-03-29 华为技术有限公司 通用测试报告的实现方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 (zh) * 2003-08-08 2005-02-16 富士通株式会社 多媒体对象检索设备和方法

Also Published As

Publication number Publication date
CN1967580B (zh) 2010-10-27
CN1967580A (zh) 2007-05-23

Similar Documents

Publication Publication Date Title
US6910182B2 (en) Method and apparatus for generating structured documents for various presentations and the uses thereof
US8578265B2 (en) Methods and apparatus for generating a dynamic document
US20040261017A1 (en) Document generation
US20040135805A1 (en) Document composition system and method
US20040225749A1 (en) Transformation of web site summary via taglibs
US20040039993A1 (en) Automatic formatting and validating of text for a markup language graphical user interface
US20060156220A1 (en) System and method for managing dynamic content assembly
US20060143562A1 (en) Self-describing editors for browser-based WYSIWYG XML/HTML editors
CN108304172A (zh) 一种web开发方法及web开发引擎
US7475337B1 (en) Generating structured documents by associating document elements in a first display with displayed document type definitions in a second display
AU2005202103A1 (en) Programmable object model for namespace or schema library support in a software application
WO2011029252A1 (fr) Procédé et dispositif pour produire rapidement une page web de réseau sur la base d'une définition de données
WO2007112632A1 (fr) Procédé et appareil de présentation d'une facture électronique
CN1954312B (zh) 在web浏览器上创建xml文档的方法
US20030233343A1 (en) System and method for generating custom business reports for a WEB application
US20040225959A1 (en) Appearance properties for web applications using TagLibs
KR100445452B1 (ko) 매뉴얼 제공 서버 시스템 및 그 매뉴얼 제공 방법
Book et al. Automatic dialog mask generation for device-independent web applications
EP1419459A2 (fr) Systeme d'interaction web permettant a un telephone mobile d'avoir une interaction avec des ressources web
CN107491430B (zh) 利用pdf工具包和SPEL表达式填充pdf的方法
TWI352912B (fr)
CN114281331A (zh) 一种用于访问数据库的前后端代码文件的生成方法及装置
Jacobs XML Documents
Synodinos et al. WOnDA: An extensible multi-platform hypermedia design model
Elfayoumy et al. A Web-Based XML Editor.

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