Parallel XSLT (Extensible Style-sheet Language Transformation) conversion method and device for use in multi-thread environment

A conversion device and multi-threaded technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as performance optimization, conversion efficiency reduction, biased XPath expressions, etc., to improve performance and efficiency, improve conversion The effect of efficiency and conversion cost balance

CN102622334BActive Publication Date: 2014-04-16BEIJING INFORMATION SCI & TECH UNIV +1
2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2014-04-16

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

Along with the gradual increasing scale of an XML (Extensive Makeup Language) document and more and more complex structure, the conversion performance problem of XSLT (Extensible Style-sheet Language Transformation) becomes a major problem which limits development. The invention provides a parallel XSLT conversion method and device. An XSLT file is partitioned into a plurality of conversion modules, and parallel XSLT conversion is performed by using a multi-thread environment, so that the conversion efficiency is increased. The XSLT file and the conversion situation of training data by each conversion module are analyzed, and automatic parallel partition of the XSLT file can be realized, so that the defects of manual partition are avoided; and moreover, the quantity optimization and conversion cost of each conversion module obtained by partitioning are balanced, so that the XSLT conversion performance and efficiency of a source document in a multi-thread environment can be improved effectively.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to computer document processing technology, in particular to a method and device for automatically parallelizing XSLT files and merging conversion results in a multi-thread environment to improve the XSLT conversion efficiency of XML documents. Background technique

[0002] Documents are the most commonly used information resources, but there are currently more than 10,000 documents in the world, and there are more than 300 commonly used document formats, and the compatibility with each other is poor. In order to achieve better compatibility among various document formats, many document standards are provided in the prior art. Extensible Markup Language XML (eXtensible Markup Language) has become the basis for describing various document format standards due to its verifiability, scalability and interoperability.

[0003] XSLT (eXtensible Style sheet Language Transformation) is a rule-based transformation language that can transf...

Examples

Embodiment Construction

[0053] The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0054] The conversion process of XSLT is a process of converting the input document tree into the result document tree. The process is as follows figure 1 . The principle of XSLT parallel transformation is to split a single XSLT file into multiple XSLT modules that can be parallelized. In the parallel model, such as multi-threading, multiple transformation modules are used to simultaneously transform the XML source document to be transformed. The advantage of execution is to reduce the total conversion time, so as to achieve the purpose of improving performance.

[0055] attached figure 2 A model diagram for XSLT parallel transformation in a multi-threaded environment. Wherein, the task of each conversion thread is to use an XSLT file to convert the XML source document to be converted. Since the XSLT file used by ...