WO2007063582A1 - 連続変換プログラム、連続変換方法および連続変換装置 - Google Patents

連続変換プログラム、連続変換方法および連続変換装置 Download PDF

Info

Publication number
WO2007063582A1
WO2007063582A1 PCT/JP2005/021968 JP2005021968W WO2007063582A1 WO 2007063582 A1 WO2007063582 A1 WO 2007063582A1 JP 2005021968 W JP2005021968 W JP 2005021968W WO 2007063582 A1 WO2007063582 A1 WO 2007063582A1
Authority
WO
WIPO (PCT)
Prior art keywords
conversion
xml document
style sheet
continuous
xml
Prior art date
Application number
PCT/JP2005/021968
Other languages
English (en)
French (fr)
Inventor
Masahito Mori
Original Assignee
Fujitsu Limited
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 Fujitsu Limited filed Critical Fujitsu Limited
Priority to PCT/JP2005/021968 priority Critical patent/WO2007063582A1/ja
Publication of WO2007063582A1 publication Critical patent/WO2007063582A1/ja

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
    • 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/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]

Definitions

  • the style sheets are integrated by performing continuous conversion using a plurality of style sheets.
  • Continuous conversion program and continuous conversion method that reduce the burden on the user by eliminating the need to delete the temporary conversion result XML document that is required when applying each one at a time, and reduce the burden on the OS by reducing the number of processes generated And a continuous conversion device.
  • o XSLT parser receives the XML document to be transformed and the style sheet specification describing the transformation logic, and the transformation target XML document is based on the style sheet. It is converted and output as a conversion result XML document.
  • FIG. 15 is a diagram illustrating conventional multiple conversion.
  • the conventional multiple-time conversion uses the XML document conversion processing multiple times by the XSLT parser that performs conversion processing by applying one style sheet. That is, in the conventional multi-time conversion, the conversion result XML document performed previously is used as the input of the next conversion process, and the conversion in the style sheet is repeated to output the desired result XML document.
  • the first conversion is performed in the conversion process.
  • the XML document Describe the data ⁇ data into one XML document using DTD external entity reference
  • Patent Document 1 Japanese Patent Application Laid-Open No. 2002-32263
  • FIG. 16 is a diagram showing an example of command execution using xalan.
  • an object of the present invention is to provide a continuous conversion program, a continuous conversion method, and a continuous conversion apparatus that reduce the number of processes to be generated and reduce the burden on the OS.
  • the continuous conversion program according to the invention of claim 1 is a conversion procedure in which a style sheet is applied to a conversion target XML document and converted into a conversion result XML document. As the conversion target XML document for the next conversion procedure. It is also characterized in that the computer executes a repeated conversion procedure that repeats the number of style sheets.
  • the conversion procedure for applying the style sheet to the conversion target XML document and converting it to the conversion result XML document is performed, and the conversion result XML document is converted into the conversion target XML of the next conversion procedure. Since the document is configured to repeat as many as the number of style sheets, it is unnecessary to delete the temporary conversion result XML document that is required when applying one style sheet at a time.
  • the continuous conversion program according to the invention of claim 2 is the same as that of the invention of claim 1, wherein the iterative conversion procedure is performed for elements having the same identifier among elements constituting an XML document. Based on a combination of style sheets that use attribute rules and content combination specifications or merge rules that describe additional element and attribute specifications, element and attribute deletion specifications, or filter rules that describe element and attribute appearance order specifications. The conversion procedure is repeated.
  • the continuous conversion program according to the invention of claim 3 is obtained by simply combining a plurality of XML documents having different specifications in the invention of claim 1 or 2.
  • the XML document to be converted is the first XML document to be converted.
  • the XML document obtained by simply combining a plurality of XML documents with different specifications is configured as the first XML document to be converted.
  • a single specification XML document can be created.
  • the continuous conversion program according to the invention of claim 4 is characterized in that, in the invention of claim 1 or 2, the repeated conversion procedure is executed as a single process.
  • the continuous conversion program according to the invention of claim 5 is the output format of the conversion result XML document obtained by the last conversion in the invention of claim 1 or 2, The conversion procedure is repeated based on the determined style sheet and the application order of the style sheet.
  • the conversion step of applying the style sheet to the conversion target XML document and converting it to the conversion result XML document is performed by one specification of the user.
  • Result It is characterized in that it includes a repeated conversion step that repeats the XML document as many times as the number of style sheets while making it an XML document to be converted in the next conversion step.
  • the conversion process of applying the style sheet to the conversion target XML document and converting it to the conversion result XML document is performed by specifying the conversion result XML document by one specification of the user. Since it is configured to repeat the number of style sheets as the XML document to be converted in the next conversion process, it is possible to eliminate the temporary conversion result XML document required when applying one style sheet at a time. .
  • the iterative conversion step includes attributes of elements having the same identifier among elements constituting the XML document. Conversion based on a combination of style sheets that use a merge rule that describes the combination of content and contents or an additional specification of elements and attributes, or a filter rule that specifies the appearance order of elements and attributes It is characterized by repeating the process.
  • the continuous conversion method according to the invention of claim 8 is the invention of claim 6 or 7, wherein the iterative conversion step is obtained by simply combining a plurality of XML documents having different specifications.
  • the XML document to be converted is the first XML document to be converted.
  • the XML document obtained by simply combining a plurality of XML documents with different specifications is configured as the first conversion target XML document.
  • a single specification XML document can be created from the XML document model.
  • the iterative conversion step is performed from an output format of a conversion result XML document obtained by the last conversion.
  • the conversion process is repeated based on the determined style sheet and the application order of the style sheet.
  • the continuous conversion device applies an XML document conversion for applying a style sheet to a conversion target XML document and converts it into a conversion result XML document, and converts the conversion result XML document into the following:
  • An XML document conversion target XML document conversion feature is provided, which includes repetition conversion means that repeats the number of style sheets while maintaining the XML document.
  • an XML document conversion is performed in which a style sheet is applied to the conversion target XML document and converted into the conversion result XML document, and the conversion result XML document is converted into the following XML document conversion. Since the target XML document is configured to repeat as many as the number of style sheets, it is not necessary to delete the temporary conversion result XML document that is required when applying style sheets one by one.
  • FIG. 1 is an explanatory diagram for explaining a continuous conversion process according to the present embodiment.
  • FIG. 2 is a functional block diagram showing a configuration of a continuous conversion processor according to the present embodiment.
  • FIG. 3 is a flowchart showing the processing procedure of the continuous conversion processor according to the present embodiment.
  • FIG. 4 is a diagram showing an operation management system for computer devices.
  • Fig. 5-1 shows a description example of data A.
  • Fig. 5-2 shows a description example of data B.
  • FIG. 5-3 shows a description example of data C.
  • Fig. 6-1 is a diagram showing a description example of an XML document simply combined with respect to the components of the entire computer device.
  • Fig. 6-2 shows a description example of an XML document that is simply combined with respect to the operating system components.
  • Fig. 7-1 shows a description example of the XML document for device managers.
  • Fig. 7-2 shows a description example of XML document for application developers.
  • Fig. 7-3 shows a description example of the XML document for OS administrators.
  • FIG. 8 is a diagram showing a description rule of a style sheet.
  • Fig. 9-1 shows the logic described in the style sheet S.
  • Figure 9-2 shows the logic described in style sheet T.
  • Fig. 9-3 shows the logic described in the style sheet U.
  • Figure 9-4 shows the logic described in style sheet V.
  • FIG. 10 is a diagram showing a description example of style sheet V.
  • FIG. 11 is a diagram showing an example of a screen displayed by an XML output dialog box operating as a user interface.
  • FIG. 12 is a diagram showing an output format and style sheet application order table.
  • Figure 13-1 shows the XML output dialog until the device administrator XML document is generated. It is a figure which shows the flow of a process by a gbox.
  • Fig. 13-2 is a diagram showing the flow of processing by the XML output dialog box until the XML document for application developers is generated.
  • Fig. 13-3 shows the flow of processing by the XML output dialog box until the XML document for the OS administrator is generated.
  • FIG. 14 is a functional block diagram illustrating a configuration of a computer that executes a continuous conversion processor (program) according to the present embodiment.
  • FIG. 15 is a diagram showing a conventional multiple conversion.
  • FIG. 16 is a diagram showing an example of command execution using xalan.
  • FIG. 1 is an explanatory diagram for explaining a continuous conversion process according to the present embodiment. As shown in the figure, this continuous conversion process simply combines data to data for the continuous conversion processor 100.
  • FIG. 2 is a functional block diagram showing the configuration of the continuous conversion processor 100 according to this embodiment.
  • the continuous conversion processor 100 includes a dialog IZF unit 110, a style sheet storage unit 120, a first XML document storage unit 130, a second XML document storage unit 140, a conversion unit 150, A conversion target setting unit 160, a conversion result output unit 170, and a control unit 180 are included.
  • the dialog IZF unit 110 is a processing unit that acquires information such as an XML document to be converted and an application order of style sheets from the XML output dialog box 10.
  • the XML output dialog box 10 is a process for accepting information such as a plurality of XML documents to be converted, an output format of the final XML document, an output destination file, and the like. In this XML output dialog box 10, specify information necessary for continuous conversion. [0046] Also, the XML output dialog box 10 simply combines a plurality of XML documents to be converted and passes them to the dialog IZF unit 110, and the dialog IZF unit 110 that receives the combined XML document 1 Stored in the XML document storage unit 130.
  • the XML output dialog box 10 determines the application order of the style sheets from the final output format of the XML document, passes it to the dialog IZF unit 110, and receives the application order of the style sheets. 110 is passed to the control unit 180.
  • the user specifies the final XML document output format rather than directly specifying the style sheet to be applied in continuous conversion. Then, the XML output dialog box 10 determines the application order of the style sheets from the output format of the final XML document.
  • the XML output dialog box 10 receives the XML document converted into the final XML document output format from the continuous conversion processor 100, and outputs it to the output destination file designated by the user.
  • the style sheet storage unit 120 is a storage unit that stores a plurality of style sheets, and the style sheets stored in the style sheet storage unit 120 are used for conversion into various output formats.
  • the first XML document storage unit 130 and the second XML document storage unit 140 are storage units that store XML documents that are input or output in each conversion. That is, when the first XML document storage unit 130 stores the conversion target XML document, the second XML document storage unit 140 stores the conversion result XML document, and the second XML document storage unit 140 stores the conversion target XML document. In this case, the first XML document storage unit 130 stores the conversion result XML document.
  • Conversion unit 150 reads the conversion target XML document from first XML document storage unit 130 or second XML document storage unit 140, applies the style sheet stored in style sheet storage unit 120, and converts the application result.
  • the second XML document storage unit 140 or It is a processing unit stored in the first IXML document storage unit 130.
  • the conversion target setting unit 160 is a processing unit that sets the conversion result XML document as a conversion target XML document in preparation for the next conversion. That is, when the XML document stored in the first XML document storage unit 130 becomes a conversion target XML document, converted by the conversion unit 150, and stored as the conversion result XML document in the second XML document storage unit 140, the conversion target setting is performed.
  • the unit 160 sets the XML document stored in the second XML document storage unit 140 as a conversion target XML document, and sets the first XML document storage unit 130 as a storage destination of the conversion result XML document.
  • the conversion target setting unit 160 sets the XML document stored in the first XML document storage unit 130 as the conversion target XML document, and sets the second XML document storage unit 140 as the storage destination of the conversion result XML document.
  • the conversion target setting unit 160 alternately converts the XML document stored in the first XML document storage unit 130 and the XML document stored in the second XML document storage unit 140 into a conversion target XML document.
  • the conversion target setting unit 160 sets the XML document stored in the first XML document storage unit 130 as the first conversion target XML document.
  • the conversion result output unit 170 reads the conversion result XML document output by the conversion unit 150, to which the last style sheet is applied, from the first XML document storage unit 130 or the second XML document storage unit 140, and outputs an XML output dialog box.
  • 10 is a processing unit that outputs to 10.
  • the control unit 180 is a processing unit that controls the entire continuous conversion processor 100. Specifically, the control unit 180 transfers control between the function units and transfers data between the function units and the storage unit. And makes the continuous conversion processor 100 function as one process.
  • control unit 180 reads out the style sheets in order from the style sheet storage unit 120 and passes them to the conversion unit 150, and controls the conversion unit 150 and the conversion target setting unit 160 to perform continuous conversion.
  • FIG. 3 is a flowchart showing the processing procedure of the continuous conversion processor 100 according to this embodiment.
  • the dialog I / F unit 110 obtains information such as the XML document to be converted and the application order of the style sheet from the XML output dialog box 10, and the XML document to be converted is stored in the first XML document storage unit. It is stored in 130 and the style sheet application order is passed to the control unit 180.
  • the continuous conversion processor 100 is configured such that the XML output dialog box 10 is simply combined, and the XML document stored in the first XML document storage unit 130 is set as a conversion target XML document. Set by the unit 160 (step S101).
  • control unit 180 determines whether there is an unapplied style sheet (step S10).
  • the conversion unit 150 applies the style sheet to the conversion target XML document and outputs the conversion result as a conversion result XML document (step S10).
  • the conversion target setting unit 160 sets the conversion result XML document as a conversion target XML document for the next conversion (step S104), and the control unit 180 returns control to step 102 to check whether there is an unapplied style sheet. Determine whether or not.
  • the conversion result output unit 170 outputs the XML document set as the conversion target XML document of the next conversion to the XML output dialog box 10 (step S105). ).
  • the conversion unit 150 continuously applies the style sheets, so that the user can perform a plurality of conversions of an XML document to which a plurality of style sheets are applied by one continuous conversion. .
  • FIG. 4 is a diagram showing an operation management system for a computer device.
  • the device management function outputs data A, which is an XML document describing information related to the components of the computer device.
  • Data A includes the order name for the CPU and memory and the status for determining the failure as information for replacing parts.
  • Figure 5-1 shows a description example of data A.
  • the OS management function and the OS management function are respectively an operating system and an operating system.
  • Data B which is an XML document that describes information about the components of the operating system
  • Data B and data C include CPU clock frequency and memory capacity.
  • Figure 5-2 shows a description example of data B, and Figure 5-2 shows a description example of data C.
  • Data A, Data B, and Data C the same identifier is set for the same element! /.
  • An example is an operating system whose identifier is "ID0001".
  • An XML document that is simply combined is data A, data B, and data C that are converted into a single XML document by external entity reference.
  • data A, data B, and data C are all made into one XML document by external entity reference.
  • Figure 6-1 shows an example of a simple combined XML document for the components of the entire computer system.
  • Figure 6-2 shows an example of a simple combined XML document for the operating system components.
  • the device administrator uses the operation management system to refer to the performance and status of the entire computer device. Therefore, the order name of the parts is unnecessary information for the device manager. Therefore, the device manager obtains a device manager XML document from which the part order name has been deleted.
  • Figure 7-1 shows a description example of a device administrator XML document. Compared to data A shown in Figure 5-1, the order name for the CPU and memory is deleted in the XML document for device managers.
  • the application developer provides an application having a function of referring to the entire computer device in a tree structure. Therefore, the application developer considers the drill-down display of the tree hierarchy and added the state of the lower element to the application developer.
  • Figure 7-2 shows a description example of an XML document for application developers. In this example, data A, data B, and data C shown in Figure 5-1 to Figure 5-3 are merged, and the status of the lower elements is added! RU
  • the OS administrator uses the operation management system to refer to the CPU specifications and memory specifications of each operating system. Therefore, identifiers are unnecessary information for OS administrators. Therefore, the OS administrator obtains the OS administrator XML document with the identifier deleted.
  • Figure 7-3 shows a description example of the XML document for OS administrators. Compared with data B shown in Fig. 5-2 and data C shown in Fig. 5-3, the identifier is deleted in the XML document for OS administrator.
  • style sheet group a style sheet made into parts is prepared according to the description rule of FIG.
  • the style sheet describes the transformation logic called template 'rules'.
  • merge rules combined data 'add rules'
  • filter rules data delete 'regular rules'
  • a style sheet S that causes all attributes to appear for elements having the same identifier value
  • a style sheet T that deletes an order name
  • a style that adds a state of a lower element Prepare sheet U and style sheet V to delete the identifier.
  • Style sheet S and style sheet U are style sheets described according to the merge rule
  • style sheet T and style sheet V are style sheets described according to the filter rule.
  • FIG. 10 is a diagram showing a description example of the style sheet V. The figure specifically describes the logic shown in Figure 9-4.
  • FIG. 11 is a diagram showing an example of a screen displayed by the XML output dialog box 10 that operates as a user interface. As shown in the figure, the user selects a data acquisition destination by [select data acquisition destination].
  • the XML output dialog box 10 Change the number of external entity references according to the selected pattern and automatically create a combined XML document.
  • FIG. 12 is a diagram showing an output format and style sheet application order table. Prepare the output format and style sheet application order table inside the XML output dialog box 10. Then, the XML output dialog box 10 determines the application order of style sheets corresponding to the output format selected exclusively in [Select output format] by referring to this table.
  • FIG. 13-1 is a diagram showing the flow of processing by the XML output dialog button 10 until the device administrator XML document is generated.
  • the XML output dialog box 10 is displayed by the device administrator as “Select Device for Data Acquisition” as “Device Management Function”, “OS Management Function ⁇ and ⁇
  • the file name is accepted as “output file specification” (step S 201).
  • the XML output dialog box 10 displays data A, data B and data from the “device management function”, “OS management function”, and “OS management function” selected in “Select data acquisition destination”.
  • the XML output dialog box 10 then refers to the simple combined XML document to be converted, the output format and the application order table of the style sheet, and the style sheet S, The application order of T is specified and the continuous conversion processor 100 is executed (step S203).
  • the XML output dialog box 10 outputs the output of the continuous conversion processor 100 as an apparatus administrator XML document to the file specified by [Specify output destination file] (step S 204).
  • FIG. 13-2 is a diagram showing a flow of processing by the XML output dialog box 10 until an XML document for application developer is generated.
  • the XML output dialog box 10 accepts "device management function”, "OS management function” and “OS management function” as [Data acquisition destination selection] from the application developer, and [Output format selection] as a sub-element
  • the XML output dialog box 10 displays data A, data B and data from the "device management function", "OS management function”, and "OS management function” selected in [Select data acquisition destination].
  • the XML output dialog box 10 is a style sheet that also determines the ability to "add the status of sub-elements by referring to the output document and the application order table of the style sheet, referring to the simply combined XML document to be converted.
  • the sequential conversion processor 100 is executed by designating the application order of S and U (step S303).
  • the XML output dialog box 10 outputs the output of the continuous conversion processor 100 as an XML document for application developer to the file specified by [Specify output destination file] (step S304).
  • the XML output dialog box 10 application developers can also accept the data acquisition destination, output format and output destination file, and operate the continuous conversion processor 100 to perform continuous conversion of the XML document.
  • Application developers can easily obtain XML documents for application developers.
  • FIG. 13-3 is a diagram showing the flow of processing by the XML output dialog box 10 until the OS administrator XML document is generated.
  • the XML output dialog box 10 receives "OS management function” and "OS management function” as [Select data acquisition destination] from the OS administrator.
  • the XML output dialog box 10 acquires data B and data C from the “OS management function” and “OS management function” selected in [Select data acquisition destination], and operates. Create a simple combined XML document for the operating system components (step S402).
  • the XML output dialog box 10 shows the style sheet S, V determined from the “deleted identifier” by referring to the simple combined XML document to be converted, the output format and the application order table of the style sheet.
  • the continuous conversion processor 100 is executed by designating the application order (step S403).
  • the XML output dialog box 10 outputs the output of the continuous conversion processor 100 as an XML document for the OS administrator to the file specified in [Specify output destination file] (step S404).
  • the XML output dialog box 10 accepts the data acquisition destination, output format and output destination file by the OS administrator, and operates the continuous conversion processor 100 to perform continuous conversion of the XML document.
  • An OS administrator can easily obtain an XML document for the OS administrator.
  • FIG. 14 is a functional block diagram illustrating a configuration of a computer that executes the continuous conversion processor 100 according to the present embodiment.
  • the computer 200 includes a RAM 210, a CPU 220, an HDD 230, a LAN interface 240, an input / output interface 250, and a DVD drive 260.
  • the RAM 210 is a memory that stores a program, a program execution result, and the like.
  • the CPU 220 is a central processing unit that reads a program from the RAM 210 and executes the program.
  • the HDD 230 is a disk device that stores programs and data
  • the LAN interface 240 is an interface for connecting the computer 200 to another computer via a LAN.
  • the input / output interface 250 is an interface for connecting an input device such as a mouse and a keyboard and a display device
  • the DVD drive 260 is a device for reading and writing a DVD.
  • the continuous conversion processor 100 executed in the computer 200 is stored in the DV D, read from the DVD by the DVD drive 260, and stored in the computer 200. Installed.
  • the continuous conversion processor 100 is stored in a database or the like of another computer system connected via the LAN interface 240, read out from these databases, and installed in the computer 200. .
  • the installed continuous conversion processor 100 is stored in the HDD 230, read out to the RAM 210, and executed by the CPU 220 as the continuous conversion process 221.
  • the conversion unit 150 sequentially applies the style sheets stored in the style sheet storage unit 120 to an XML document obtained by simply combining a plurality of XML documents.
  • the conversion unit 150 it is possible to reduce the burden on the user by eliminating the need to delete the temporary conversion result XML document that is no longer needed after obtaining the target conversion result XML document.
  • various styles can be obtained by preparing style sheets according to the rules of merge and filter and applying them in an appropriate order just by letting the user select the output format. Users can be provided with changes that meet user requirements.
  • the availability of the style sheet can be increased by using parts, and the burden of creating user-friendly S-style sheets can be reduced.
  • the XML output dialog box 10 is a simple structure for a plurality of XML documents. The case where the combination order and the order of application of style sheets are determined has been described. However, the present invention includes any function of the XML output dialog box 10 such as these functions, which are not limited to this, in the continuous conversion processor 100. The same applies to the case.
  • the continuous conversion program, the continuous conversion method, and the continuous conversion apparatus according to the present invention are useful for the conversion of XML documents, and are particularly suitable when the style sheet used for conversion is complex.

Abstract

 複数のXML文書を単純に結合したXML文書に対して変換部(150)がスタイルシート記憶部(120)に記憶されたスタイルシートを順に適用する連続変換プロセッサ(100)を一つのプロセスとして実行するよう構成する。また、マージルール(データを結合・追加するルール)やフィルタルール(データを削除・正規化するルール)に従ったスタイルシートを用意し、利用者に出力形式を選択させるだけでそれらのスタイルシートを適切な順序で連続変換プロセッサ(100)が適用する。

Description

明 細 書
連続変換プログラム、連続変換方法および連続変換装置
技術分野
[0001] 本発明は、複数のスタイルシートを適用する XML文書の変換をスタイルシートごと に利用者に行わせる代わりに、複数のスタイルシートを用いた連続変換を行うことに よって、スタイルシートを一つずつ適用する場合に必要となる一時的変換結果 XML 文書の削除を不要として利用者の負担を低減するとともに、生成されるプロセス数を 減らして OSの負担を低減する連続変換プログラム、連続変換方法および連続変換 装置に関するものである。 背景技術
[0002] 近年、 XML文書がよく使われている力 各分野で XMLの構造'仕様に関して標準 ィ匕が進められてはいるものの、各利用者が独自の仕様を作成している。一つの XML 文書を参照するだけならこれで問題ないが、複数の XML文書を使用して新たな情 報を作成する場合、異なる仕様でできた XML文書を共通化させる必要がある。
[0003] このため、 XML文書を共通化するための処理を行うものとして XSLTバーサがある
(例えば、特許文献 1参照。 ) o XSLTバーサ、変換対象となる XML文書と変換に関 する論理が記述されたスタイルシートの指定を受け取って、変換対象 XML文書をス タイルシートに基づ 、て変換し、変換結果 XML文書として出力するものである。
[0004] しかし、所望の変換結果を一回の変換で導くためにはスタイルシートが複雑になる ことから、複雑な変換を行うためには、複数のスタイルシートを用いて複数回変換を 行わなければならない。
[0005] 図 15は、従来の複数回変換を示す図である。同図に示すように、従来の複数回変 換では、スタイルシートを一つ適用して変換処理を行う XSLTバーサによる XML文 書の変換処理を複数回利用する。すなわち、従来の複数回変換では、先に行った変 換結果 XML文書を、次の変換処理の入力として、スタイルシートでの変換を繰り返し て目的の結果 XML文書を出力する。
[0006] 具体的には、変換プロセスにお 、て、最初の変換を行う。ここでは、 XML文書で 記述されたデータ〜データを、 DTDの外部実体参照を利用して一つの XML文書
1 n
に単純に結合する。そして、 XSLTバーサに対して、単順に結合した XML文書とス
1
タイルシートを指定して、一時的な変換結果である XML文書を得る。
1 1
[0007] また、変換プロセスにおいて、 XSLTバーサに対して、変換プロセスの結果である
2 2 1
XML文書とスタイルシートを指定して、一時的な変換結果である XML文書を得る
1 2 2
。以下同様に、最後の変換プロセスである変換プロセスでは、 XSLTバーサに対し m m て、先の変換プロセス の結果である XML文書 とスタイルシートを指定して、目 m— m— 1 m
的の変換結果である XML文書を得る。
m
[0008] 特許文献 1 :特開 2002— 32263号公報
発明の開示
発明が解決しょうとする課題
[0009] し力しながら、従来の複数回変換では、変換した結果に対して、更に変換処理を行 つて目的の変換結果を得るためには、一時的な変換結果を XML文書として保持し ておく必要が生じ、最終目的ではないファイルの管理を利用者に強いるという問題が ある。また、 XSLTパーサを利用する処理は一般に一つのプロセスであり、変換処理 を繰り返す回数の分、プロセス生成回数が増加し、プロセス生成回数の増加は、ノ、 一ドウエア資源の割り当てと 、つた OSへの負担を増加させると 、う問題もある。
[0010] 例えば、 Apacheプロジェクトが提供する XSLT(xalan)を利用して処理を行う場合、 複数回のコマンドの実行が必要になり、更に一時的な変換結果の XML文書を保持 する必要がある。図 16は、 xalanを利用したコマンド実行例を示す図である。
[0011] 本発明は、上記に鑑みてなされたものであって、スタイルシートを一つずつ適用す る場合に必要となる一時的変換結果 XML文書の削除を不要として利用者の負担を 低減するとともに、生成されるプロセス数を減らして OSの負担を低減する連続変換プ ログラム、連続変換方法および連続変換装置を提供することを目的とする。
課題を解決するための手段
[0012] 上述した課題を解決し、目的を達成するため、請求項 1の発明に係る連続変換プロ グラムは、変換対象 XML文書にスタイルシートを適用して変換結果 XML文書に変 換する変換手順を、変換結果 XML文書を次の変換手順の変換対象 XML文書とし つつスタイルシートの数だけ繰り返す繰返変換手順、をコンピュータに実行させること を特徴とする。
[0013] この請求項 1の発明によれば、変換対象 XML文書にスタイルシートを適用して変 換結果 XML文書に変換する変換手順を、変換結果 XML文書を次の変換手順の変 換対象 XML文書としつつスタイルシートの数だけ繰り返すよう構成したので、スタイ ルシートを一つずつ適用する場合に必要となる一時的変換結果 XML文書の削除を 不要とすることができる。
[0014] また、請求項 2の発明に係る連続変換プログラムは、請求項 1の発明にお 、て、前 記繰返変換手順は、 XML文書を構成する要素のうち識別子が同一である要素の属 性および内容の組合せ指定または要素および属性の追加指定を記述するマージル ール、要素および属性の削除指定または要素および属性の出現順序指定を記述す るフィルタルールを用いるスタイルシートの組合せに基づ 、て変換手順を繰り返すこ とを特徴とする。
[0015] この請求項 2の発明によれば、マージルール、フィルタルールを用いるスタイルシー トの組合せに基づ 、て変換手順を繰り返すよう構成したので、スタイルシートを部品 化して可用性を高めることができる。
[0016] また、請求項 3の発明に係る連続変換プログラムは、請求項 1または 2の発明にお いて、前記繰返変換手順は、複数の異なる仕様の XML文書を単純に結合して得ら れる XML文書を最初の変換対象 XML文書とすることを特徴とする。
[0017] この請求項 3の発明によれば、複数の異なる仕様の XML文書を単純に結合して得 られる XML文書を最初の変換対象 XML文書とするよう構成したので、異なる仕様の XML文書カゝら単一仕様の XML文書を作成することができる。
[0018] また、請求項 4の発明に係る連続変換プログラムは、請求項 1または 2の発明にお いて、前記繰返変換手順は、単一のプロセスとして実行されることを特徴とする。
[0019] この請求項 4の発明によれば、繰返し行う変換を単一のプロセスとして実行するよう 構成したので、生成されるプロセスの数を減らすことができる。
[0020] また、請求項 5の発明に係る連続変換プログラムは、請求項 1または 2の発明にお いて、前記繰返変換手順は、最後の変換で得られる変換結果 XML文書の出力形式 力 決定されるスタイルシートおよび該スタイルシートの適用順序に基づいて変換手 順を繰り返すことを特徴とする。
[0021] この請求項 5の発明によれば、最後の変換で得られる変換結果 XML文書の出力 形式力 決定されるスタイルシートおよびスタイルシートの適用順序に基づいて変換 手順を繰り返すよう構成したので、スタイルシートの作成を不要とすることができる。
[0022] また、請求項 6の発明に係る連続変換方法は、変換対象 XML文書にスタイルシー トを適用して変換結果 XML文書に変換する変換工程を、利用者の一回の指定で、 変換結果 XML文書を次の変換工程の変換対象 XML文書としつつスタイルシートの 数だけ繰り返す繰返変換工程、を含んだことを特徴とする。
[0023] この請求項 6の発明によれば、変換対象 XML文書にスタイルシートを適用して変 換結果 XML文書に変換する変換工程を、利用者の一回の指定で、変換結果 XML 文書を次の変換工程の変換対象 XML文書としつつスタイルシートの数だけ繰り返す よう構成したので、スタイルシートを一つずつ適用する場合に必要となる一時的変換 結果 XML文書の削除を不要とすることができる。
[0024] また、請求項 7の発明に係る連続変換方法は、請求項 6の発明にお 、て、前記繰 返変換工程は、 XML文書を構成する要素のうち識別子が同一である要素の属性お よび内容の組合せ指定または要素および属性の追加指定を記述するマージルール 、要素および属性の削除指定または要素および属性の出現順序指定を記述するフ ィルタルールを用いるスタイルシートの組合せに基づ 、て変換工程を繰り返すことを 特徴とする。
[0025] この請求項 7の発明によれば、マージルール、フィルタルールを用いるスタイルシー トの組合せに基づ 、て変換手順を繰り返すよう構成したので、スタイルシートを部品 化して可用性を高めることができる。
[0026] また、請求項 8の発明に係る連続変換方法は、請求項 6または 7の発明にお 、て、 前記繰返変換工程は、複数の異なる仕様の XML文書を単純に結合して得られる X ML文書を最初の変換対象 XML文書とすることを特徴とする。
[0027] この請求項 8の発明によれば、複数の異なる仕様の XML文書を単純に結合して得 られる XML文書を最初の変換対象 XML文書とするよう構成したので、異なる仕様の XML文書カゝら単一仕様の XML文書を作成することができる。
[0028] また、請求項 9の発明に係る連続変換方法は、請求項 6または 7の発明にお 、て、 前記繰返変換工程は、最後の変換で得られる変換結果 XML文書の出力形式から 決定されるスタイルシートおよび該スタイルシートの適用順序に基づいて変換工程を 繰り返すことを特徴とする。
[0029] この請求項 9の発明によれば、最後の変換で得られる変換結果 XML文書の出力 形式力 決定されるスタイルシートおよびスタイルシートの適用順序に基づいて変換 手順を繰り返すよう構成したので、スタイルシートの作成を不要とすることができる。
[0030] また、請求項 10の発明に係る連続変換装置は、変換対象 XML文書にスタイルシ ートを適用して変換結果 XML文書に変換する XML文書変換を、変換結果 XML文 書を次の XML文書変換の変換対象 XML文書としつつスタイルシートの数だけ繰り 返す繰返変換手段、を備えたことを特徴とする。
[0031] この請求項 10の発明によれば、変換対象 XML文書にスタイルシートを適用して変 換結果 XML文書に変換する XML文書変換を、変換結果 XML文書を次の XML文 書変換の変換対象 XML文書としつつスタイルシートの数だけ繰り返すよう構成した ので、スタイルシートを一つずつ適用する場合に必要となる一時的変換結果 XML文 書の削除を不要とすることができる。
発明の効果
[0032] 請求項 1、 6および 10の発明によれば、一時的変換結果 XML文書の削除を不要と することができるので、利用者の負担を低減することができるという効果を奏する。
[0033] また、請求項 2および 7の発明によれば、スタイルシートを部品化して可用性を高め るので、スタイルシートを作成する負担を低減することができるという効果を奏する。
[0034] また、請求項 3および 8の発明によれば、異なる仕様の XML文書力 単一仕様の X
ML文書を作成することができるので、異なる仕様の XML文書共通化することができ るという効果を奏する。
[0035] また、請求項 4の発明によれば、生成されるプロセスの数を減らすので、 OSの負担 を低減することができると 、う効果を奏する。
[0036] また、請求項 5および 9の発明によれば、スタイルシートの作成を不要とするので、 利用者の負担を低減することができるという効果を奏する。
図面の簡単な説明
[図 1]図 1は、本実施例に係る連続変換プロセスを説明するための説明図である。
[図 2]図 2は、本実施例に係る連続変換プロセッサの構成を示す機能ブロック図であ る。
[図 3]図 3は、本実施例に係る連続変換プロセッサの処理手順を示すフローチャート である。
[図 4]図 4は、コンピュータ装置の運用管理システムを示す図である。
[図 5-1]図 5— 1は、データ Aの記述例を示す図である。
[図 5-2]図 5— 2は、データ Bの記述例を示す図である。
[図 5- 3]図 5— 3は、データ Cの記述例を示す図である。
[図 6-1]図 6— 1は、コンピュータ装置全体の構成部品に関する単純に結合した XML 文書の記述例を示す図である。
[図 6-2]図 6— 2は、オペレーティングシステムの構成部品に関する単純に結合した X ML文書の記述例を示す図である。
[図 7-1]図 7— 1は、装置管理者用 XML文書の記述例を示す図である。
[図 7-2]図 7— 2は、アプリケーション開発者用 XML文書の記述例を示す図である。
[図 7-3]図 7— 3は、 OS管理者用 XML文書の記述例を示す図である。
[図 8]図 8は、スタイルシートの記述ルールを示す図である。
[図 9-1]図 9— 1は、スタイルシート Sに記述する論理を示す図である。
[図 9-2]図 9— 2は、スタイルシート Tに記述する論理を示す図である。
[図 9-3]図 9— 3は、スタイルシート Uに記述する論理を示す図である。
[図 9-4]図 9— 4は、スタイルシート Vに記述する論理を示す図である。
[図 10]図 10は、スタイルシート Vの記述例を示す図である。
[図 11]図 11は、ユーザインタフェースとして動作する XML出力ダイアログボックスが 表示する画面例を示す図である。
[図 12]図 12は、出力形式とスタイルシートの適用順テーブルを示す図である。
[図 13- 1]図 13— 1は、装置管理者用 XML文書を生成するまでの XML出力ダイァロ グボックスによる処理の流れを示す図である。
[図 13-2]図 13— 2は、アプリケーション開発者用 XML文書を生成するまでの XML 出力ダイアログボックスによる処理の流れを示す図である。
[図 13- 3]図 13— 3は、 OS管理者用 XML文書を生成するまでの XML出力ダイァロ グボックスによる処理の流れを示す図である。
[図 14]図 14は、本実施例に係る連続変換プロセッサ(プログラム)を実行するコンビュ ータの構成を示す機能ブロック図である。
[図 15]図 15は、従来の複数回変換を示す図である。
[図 16]図 16は、 xalanを利用したコマンド実行例を示す図である。
符号の説明
10 XML出力ダイアログボックス
100 連続変換プロセッサ
110 ダイアログ IZF部
120 スタイルシート記憶部
130 第 1XML文書記憶部
140 第 2XML文書記憶部
150 変換部
160 変換対象設定部
170 変換結果出力部
180 制御部
200 コンピュータ
210 RAM
220 CPU
221 連続変換プロセス
230 HDD
240 LANインタフェース
250 人出力インタフェース
260 DVDドライブ 発明を実施するための最良の形態
[0039] 以下に、本発明に係る連続変換プログラム、連続変換方法および連続変換装置の 実施例を図面に基づいて詳細に説明する。なお、この実施例によりこの発明が限定 されるものではない。
実施例
[0040] まず、本実施例に係る連続変換プロセスについて説明する。図 1は、本実施例に係 る連続変換プロセスを説明するための説明図である。同図に示すように、この連続変 換プロセスでは、連続変換プロセッサ 100に対して、データ〜データを単純に結合
1 n
した変換対象となる XML文書とスタイルシート〜スタイノレシートを指定して、目的の
1 m
変換結果である XML文書を得る。
[0041] すなわち、連続変換プロセッサ 100の内部で、指定された順にスタイルシートを適 用し、一時的な変換結果である XML文書を利用者に与えることなぐ目的の変換結 果である XML文書を出力する。
[0042] このように、連続変換プロセッサ 100の内部で、指定された順にスタイルシートを適 用することによって、最終目的ではないファイルの管理を利用者に強いることをなくす ことができる。また、単一の連続変換プロセスにより連続変換を行うことによって、生成 されるプロセス数を減らして OSの負担を低減することができる。
[0043] 次に、本実施例に係る連続変換プロセッサ 100の構成について説明する。図 2は、 本実施例に係る連続変換プロセッサ 100の構成を示す機能ブロック図である。同図 に示すように、この連続変換プロセッサ 100は、ダイアログ IZF部 110と、スタイルシ ート記憶部 120と、第 1XML文書記憶部 130と、第 2XML文書記憶部 140と、変換 部 150と、変換対象設定部 160と、変換結果出力部 170と、制御部 180とを有する。
[0044] ダイアログ IZF部 110は、変換対象となる XML文書、スタイルシートの適用順など の情報を XML出力ダイアログボックス 10から取得する処理部である。
[0045] ここで、 XML出力ダイアログボックス 10は、変換対象となる複数の XML文書、最終 的な XML文書の出力形式、出力先ファイルなどの情報を利用者力 受け付けるプロ セスであり、利用者はこの XML出力ダイアログボックス 10に対して連続変換に必要 な情報を指定する。 [0046] また、この XML出力ダイアログボックス 10は、変換対象となる複数の XML文書を 単純に結合してダイアログ IZF部 110に渡し、結合された XML文書を受け取ったダ ィァログ IZF部 110は、第 1XML文書記憶部 130に格納する。
[0047] また、この XML出力ダイアログボックス 10は、最終的な XML文書の出力形式から スタイルシートの適用順を決定してダイアログ IZF部 110に渡し、スタイルシートの適 用順を受け取ったダイアログ IZF部 110は制御部 180に渡す。
[0048] すなわち、利用者は、連続変換にあたって、適用するスタイルシートを直接指定す るのではなぐ最終的な XML文書の出力形式を指定する。すると、 XML出力ダイァ ログボックス 10が、最終的な XML文書の出力形式からスタイルシートの適用順を決 定する。
[0049] このように、利用者にスタイルシートを直接指定させるのではなぐ最終的な XML文 書の出力形式を指定させることによって、利用者にスタイルシートを作成させる負担 を低減することができる。なお、最終的な XML文書の出力形式力もスタイルシートの 適用順を決定する例については後述する。
[0050] また、 XML出力ダイアログボックス 10は、最終的な XML文書の出力形式に変換さ れた XML文書を連続変換プロセッサ 100から受け取り、利用者が指定した出力先フ アイルに出力する。
[0051] スタイルシート記憶部 120は、複数のスタイルシートを記憶する記憶部であり、この スタイルシート記憶部 120に記憶されたスタイルシートは、様々な出力形式への変換 に用いられる。
[0052] 第 1XML文書記憶部 130および第 2XML文書記憶部 140は、各変換において入 力または出力となる XML文書を記憶する記憶部である。すなわち、第 1XML文書記 憶部 130が変換対象 XML文書を記憶する場合には、第 2XML文書記憶部 140は 変換結果 XML文書を記憶し、第 2XML文書記憶部 140が変換対象 XML文書を記 憶する場合には、第 1XML文書記憶部 130は変換結果 XML文書を記憶する。
[0053] 変換部 150は、第 1XML文書記憶部 130または第 2XML文書記憶部 140から変 換対象 XML文書を読み出してスタイルシート記憶部 120に記憶されたスタイルシー トを適用し、適用結果を変換結果 XML文書として第 2XML文書記憶部 140または 第 IXML文書記憶部 130に格納する処理部である。
[0054] 変換対象設定部 160は、変換結果 XML文書を次の変換に備えて変換対象 XML 文書として設定する処理部である。すなわち、第 1XML文書記憶部 130に記憶され た XML文書が変換対象 XML文書となって変換部 150によって変換され、変換結果 XML文書として第 2XML文書記憶部 140に格納されると、この変換対象設定部 16 0は、第 2XML文書記憶部 140に記憶された XML文書を変換対象 XML文書に設 定し、第 1XML文書記憶部 130を変換結果 XML文書の格納先として設定する。
[0055] そして、次に第 2XML文書記憶部 140に記憶された XML文書が変換対象 XML 文書となって変換部 150によって変換され、変換結果 XML文書として第 1XML文書 記憶部 130に格納されると、この変換対象設定部 160は、第 1XML文書記憶部 130 に記憶された XML文書を変換対象 XML文書に設定し、第 2XML文書記憶部 140 を変換結果 XML文書の格納先として設定する。
[0056] このように、この変換対象設定部 160が、第 1XML文書記憶部 130に記憶された X ML文書と第 2XML文書記憶部 140に記憶された XML文書を交互に変換対象 XM L文書に設定することによって、先の変換で変換結果 XML文書となった XML文書を 次の変換で変換対象 XML文書とすることができる。なお、この変換対象設定部 160 は、第 1XML文書記憶部 130に記憶された XML文書を最初の変換対象 XML文書 として設定する。
[0057] 変換結果出力部 170は、最後のスタイルシートが適用され、変換部 150により出力 された変換結果 XML文書を第 1XML文書記憶部 130または第 2XML文書記憶部 140から読み出して XML出力ダイアログボックス 10に出力する処理部である。
[0058] 制御部 180は、連続変換プロセッサ 100全体の制御を行う処理部であり、具体的に は、機能部間の制御の移動や機能部と記憶部の間のデータの受け渡しなどを行うこ とによって、連続変換プロセッサ 100を一つのプロセスとして機能させる。
[0059] 例えば、この制御部 180は、スタイルシート記憶部 120から順にスタイルシートを読 み出して変換部 150に渡すとともに、変換部 150および変換対象設定部 160を制御 して連続変換を行う。
[0060] 次に、本実施例に係る連続変換プロセッサ 100の処理手順について説明する。図 3は、本実施例に係る連続変換プロセッサ 100の処理手順を示すフローチャートであ る。なお、ここでは、ダイアログ I/F部 110が変換対象となる XML文書、スタイルシー トの適用順などの情報を XML出力ダイアログボックス 10から取得し、変換対象となる XML文書を第 1XML文書記憶部 130に格納し、スタイルシート適用順を制御部 18 0に渡しているものとする。
[0061] 図 3に示すように、この連続変換プロセッサ 100は、 XML出力ダイアログボックス 10 が単純に結合し、第 1XML文書記憶部 130に記憶された XML文書を変換対象 XM L文書に変換対象設定部 160が設定する (ステップ S101)。
[0062] そして、制御部 180が未適用のスタイルシートがあるか否かを判定し (ステップ S10
2)、未適用のスタイルシートがある場合には、変換部 150が変換対象 XML文書にス タイルシートを適用して変換結果を変換結果 XML文書として出力する (ステップ S10
3)。そして、変換対象設定部 160が変換結果 XML文書を次の変換の変換対象 XM L文書に設定し (ステップ S 104)、制御部 180が制御をステップ 102に戻して未適用 のスタイルシートがあるか否かを判定する。
[0063] 一方、未適用のスタイルシートがない場合には、変換結果出力部 170が、次の変換 の変換対象 XML文書に設定された XML文書を XML出力ダイアログボックス 10に 出力する (ステップ S 105)。
[0064] このように、変換部 150がスタイルシートを連続して適用することによって、利用者は 複数のスタイルシートを適用する XML文書の複数回の変換を 1回の連続変換で行う ことができる。
[0065] 次に、本実施例に係る連続変換プロセッサ 100をコンピュータ装置の運用管理シス テムに適用した場合について図 4〜図 13— 3を用いて説明する。図 4は、コンビユー タ装置の運用管理システムを示す図である。
[0066] 同図に示すように、この運用管理システムでは、コンピュータ装置内に、装置の構 成部品に関する情報を管理する装置管理機能と、オペレーティングシステムおよび
1 オペレーティングシステムを有し、オペレーティングシステム、オペレーティングシス
2 1
テム内に、それぞれのオペレーティングシステムの構成部品に関する情報を管理す
2
る OS管理機能、 OS管理機能を有する。 [0067] 装置管理機能は、コンピュータ装置の構成部品に関する情報を記述した XML文 書であるデータ Aを出力する。データ Aには、部品の交換を行うための情報として、 C PUやメモリの注文名や故障を判断するための状態が含まれる。図 5—1に、データ A の記述例を示す。
[0068] OS管理機能、 OS管理機能は、それぞれオペレーティングシステム、オペレーテ
1 2 1
イングシステムの構成部品に関する情報を記述した XML文書であるデータ B、デー
2
タ Cを出力する。データ B、データ Cには CPUのクロック周波数やメモリの容量が含ま れる。図 5— 2にデータ Bの記述例を示し、図 5— 3にデータ Cの記述例を示す。
[0069] なお、データ A、データ B、データ Cにおいて、同じ要素に対しては同じ識別子が設 定されて!/、る。識別子が" ID0001"であるオペレーティングシステムなどがその例であ る。
[0070] 単純に結合した XML文書は、データ A、データ B、データ Cを外部実体参照により 、一つの XML文書にしたものである。コンピュータ装置全体の構成部品に関する情 報を結合する場合は、データ A、データ B、データ Cを全て外部実体参照により、一 つの XML文書にする。図 6— 1に、コンピュータ装置全体の構成部品に関する単純 に結合した XML文書の記述例を示す。
[0071] オペレーティングシステムの構成部品に関する情報を結合する場合は、データ B、 データ Cを外部実体参照により、一つの XML文書にする。図 6— 2に、オペレーティ ングシステムの構成部品に関する単純に結合した XML文書の記述例を示す。
[0072] 装置管理者は、コンピュータ装置全体の性能や状態を参照するために、運用管理 システムを使用する。したがって、装置管理者にとっては、部品の注文名は不要な情 報となる。そこで、装置管理者は、部品の注文名が削除された、装置管理者用 XML 文書を取得する。図 7— 1に、装置管理者用 XML文書の記述例を示す。図 5— 1に 示したデータ Aと比較すると、装置管理者用 XML文書では、 CPUやメモリの注文名 が削除されている。
[0073] アプリケーション開発者は、コンピュータ装置全体をツリー構造で参照させる機能を 有するアプリケーションを提供する。そこで、アプリケーション開発者は、ツリー階層の ドリルダウン表示を考慮し、下位要素の状態を追加された、アプリケーション開発者 用 XML文書を取得する。図 7— 2に、アプリケーション開発者用 XML文書の記述例 を示す。この記述例では、図 5— 1〜図 5— 3に示したデータ A、データ Bおよびデー タ Cがマージされて、下位要素の状態が追加されて!、る。
[0074] OS管理者は、各オペレーティングシステムの CPU仕様やメモリ仕様を参照するた めに、運用管理システムを使用する。したがって、 OS管理者にとっては、識別子は不 要な情報となる。そこで、 OS管理者は、識別子が削除された、 OS管理者用 XML文 書を取得する。図 7— 3に、 OS管理者用 XML文書の記述例を示す。図 5— 2に示し たデータ Bおよび図 5— 3に示したデータ Cと比較すると、 OS管理者用 XML文書で は、識別子が削除されている。
[0075] スタイルシート群としては、図 8の記述ルールに従って、部品化したスタイルシートを 用意する。スタイルシートには、テンプレート 'ルールと呼ばれる、変換に関する論理 が記述されている。部品化を明確にするため、マージルール (データを結合 '追加す るルール)と、フィルタルール (データを削除'正規ィ匕するルール)を設けて、それぞれ のルールに従った範囲内でスタイルシートを用意する。
[0076] 具体的には、スタイルシート群として、同じ識別子の値を持つ要素について全ての 属性を出現させるスタイルシート Sと、注文名を削除するスタイルシート Tと、下位要素 の状態を追加するスタイルシート U、及び識別子を削除するスタイルシート Vを用意 する。
[0077] すなわち、スタイルシート Sには、図 9 1に示す論理を記述し、スタイルシート丁に は、図 9— 2に示す論理を記述し、スタイルシート Uには、図 9— 3に示す論理を記述 し、スタイルシート Vには、図 9— 4に示す論理を記述する。スタイルシート S、スタイル シート Uは、マージルールに従って記述したスタイルシートであり、スタイルシート T、 スタイルシート Vは、フィルタルールに従って記述したスタイルシートである。
[0078] 図 10は、スタイルシート Vの記述例を示す図である。同図には、図 9—4に示した論 理が具体的に記述されて 、る。
[0079] 図 11は、ユーザインタフェースとして動作する XML出力ダイアログボックス 10が表 示する画面例を示す図である。同図に示すように、利用者は、 [データ取得先の選択] により、データの取得先を選択する。すると、 XML出力ダイアログボックス 10は、選 択されたパターンに従って外部実体参照の数を変更して、単純に結合した XML文 書を、自動的に作成する。
[0080] また、利用者は、 [出力形式の選択]で、出力形式を排他選択し、スタイルシートの 適用順を決定する。図 12は、出力形式とスタイルシートの適用順テーブルを示す図 である。 XML出力ダイアログボックス 10の内部に、この出力形式とスタイルシートの 適用順テーブルを用意する。そして、 XML出力ダイアログボックス 10は、 [出力形式 の選択]で排他選択された出力形式に対応するスタイルシートの適用順を、このテー ブルを参照することにより決定する。
[0081] 図 13— 1は、装置管理者用 XML文書を生成するまでの XML出力ダイアログボッ タス 10による処理の流れを示す図である。 XML出力ダイアログボックス 10は、装置 管理者から、 [データ取得先の選択]として"装置管理機能"、 "OS管理機能〃および〃
1
OS管理機能 "を受け付け、 [出力形式の選択]として"注文名の削除"を受け付け、 [
2
出力ファイルの指定」としてファイル名を受け付ける (ステップ S 201)。
[0082] そして、 XML出力ダイアログボックス 10は、 [データ取得先の選択]で選択された" 装置管理機能〃、〃OS管理機能〃および〃 OS管理機能〃からデータ A、データ Bおよ
1 2
びデータ Cを取得し、コンピュータ装置全体の構成部品に関する、単純に結合した X ML文書を作成する(ステップ S202)。
[0083] そして、 XML出力ダイアログボックス 10は、変換対象となる単純に結合した XML 文書と、出力形式とスタイルシートの適用順テーブルを参照して〃注文名の削除〃から 決定したスタイルシート S, Tの適用順とを指定して、連続変換プロセッサ 100を実行 する(ステップ S 203)。
[0084] そして、 XML出力ダイアログボックス 10は、連続変換プロセッサ 100の出力を [出 力先ファイルの指定]で指定されたファイルに装置管理者用 XML文書として出力す る(ステップ S 204)。
[0085] このように、 XML出力ダイアログボックス 10が、装置管理者からデータ取得先、出 力形式および出力先ファイルを受け付け、連続変換プロセッサ 100を動作させて XM L文書の連続変換を行わせることによって、装置管理者は、装置管理者用 XML文書 を容易に取得することができる。 [0086] 図 13— 2は、アプリケーション開発者用 XML文書を生成するまでの XML出力ダイ ァログボックス 10による処理の流れを示す図である。 XML出力ダイアログボックス 10 は、アプリケーション開発者から、 [データ取得先の選択]として"装置管理機能"、 "O S管理機能〃および" OS管理機能 "を受け付け、 [出力形式の選択]として〃下位要素
1 2
の状態の追加"を受け付け、 [出力ファイルの指定]としてファイル名を受け付ける (ス テツプ S301)。
[0087] そして、 XML出力ダイアログボックス 10は、 [データ取得先の選択]で選択された" 装置管理機能〃、〃OS管理機能〃および〃 OS管理機能〃からデータ A、データ Bおよ
1 2
びデータ Cを取得し、コンピュータ装置全体の構成部品に関する、単純に結合した X ML文書を作成する(ステップ S302)。
[0088] そして、 XML出力ダイアログボックス 10は、変換対象となる単純に結合した XML 文書と、出力形式とスタイルシートの適用順テーブルを参照して〃下位要素の状態の 追加"力も決定したスタイルシート S, Uの適用順とを指定して、連続変換プロセッサ 1 00を実行する(ステップ S303)。
[0089] そして、 XML出力ダイアログボックス 10は、連続変換プロセッサ 100の出力を [出 力先ファイルの指定]で指定されたファイルにアプリケーション開発者用 XML文書と して出力する (ステップ S304)。
[0090] このように、 XML出力ダイアログボックス 10力 アプリケーション開発者力もデータ 取得先、出力形式および出力先ファイルを受け付け、連続変換プロセッサ 100を動 作させて XML文書の連続変換を行わせることによって、アプリケーション開発者は、 アプリケーション開発者用 XML文書を容易に取得することができる。
[0091] 図 13— 3は、 OS管理者用 XML文書を生成するまでの XML出力ダイアログボック ス 10による処理の流れを示す図である。 XML出力ダイアログボックス 10は、 OS管理 者から、 [データ取得先の選択]として" OS管理機能〃および" OS管理機能〃を受け
1 2 付け、 [出力形式の選択]として"識別子の削除"を受け付け、 [出力ファイルの指定」と してファイル名を受け付ける(ステップ S401)。
[0092] そして、 XML出力ダイアログボックス 10は、 [データ取得先の選択]で選択された" O S管理機能 "および" OS管理機能 "からデータ Bおよびデータ Cを取得し、オペレー ティングシステムの構成部品に関する、単純に結合した XML文書を作成する (ステツ プ S402)。
[0093] そして、 XML出力ダイアログボックス 10は、変換対象となる単純に結合した XML 文書と、出力形式とスタイルシートの適用順テーブルを参照して〃識別子の削除〃から 決定したスタイルシート S, Vの適用順とを指定して、連続変換プロセッサ 100を実行 する(ステップ S403)。
[0094] そして、 XML出力ダイアログボックス 10は、連続変換プロセッサ 100の出力を [出 力先ファイルの指定]で指定されたファイルに OS管理者用 XML文書として出力する (ステップ S404)。
[0095] このように、 XML出力ダイアログボックス 10が、 OS管理者力もデータ取得先、出力 形式および出力先ファイルを受け付け、連続変換プロセッサ 100を動作させて XML 文書の連続変換を行わせることによって、 OS管理者は、 OS管理者用 XML文書を 容易に取得することができる。
[0096] 次に、本実施例に係る連続変換プロセッサ(プログラム) 100を実行するコンビユー タについて説明する。図 14は、本実施例に係る連続変換プロセッサ 100を実行する コンピュータの構成を示す機能ブロック図である。同図に示すように、このコンビユー タ 200は、 RAM210と、 CPU220と、 HDD230と、 LANインタフェース 240と、入出 力インタフェース 250と、 DVDドライブ 260とを有する。
[0097] RAM210は、プログラムやプログラムの実行途中結果などを記憶するメモリであり、 CPU220は、 RAM210からプログラムを読み出して実行する中央処理装置である。
[0098] HDD230は、プログラムやデータを格納するディスク装置であり、 LANインタフエ ース 240は、コンピュータ 200を LAN経由で他のコンピュータに接続するためのイン タフエースである。
[0099] 入出力インタフェース 250は、マウスやキーボードなどの入力装置および表示装置 を接続するためのインタフェースであり、 DVDドライブ 260は、 DVDの読み書きを行 う装置である。
[0100] そして、このコンピュータ 200において実行される連続変換プロセッサ 100は、 DV Dに記憶され、 DVDドライブ 260によって DVDから読み出されてコンピュータ 200に インストールされる。
[0101] あるいは、この連続変換プロセッサ 100は、 LANインタフェース 240を介して接続さ れた他のコンピュータシステムのデータベースなどに記憶され、これらのデータべ一 スから読み出されてコンピュータ 200にインストールされる。
[0102] そして、インストールされた連続変換プロセッサ 100は、 HDD230に記憶され、 RA M210に読み出されて CPU220によって連続変換プロセス 221として実行される。
[0103] 上述してきたように、本実施例では、複数の XML文書を単純に結合した XML文書 に対して、変換部 150がスタイルシート記憶部 120に記憶されたスタイルシートを順 に適用することとしたので、目的の変換結果 XML文書を取得後に、不要となった一 時的な変換結果 XML文書を削除する必要をなくして利用者の負担を低減すること ができる。
[0104] また、本実施例では、連続変換プロセッサ 100を一つのプロセスとして実行するの で、生成されるプロセスが減り、 OSの負担を低減することができる。
[0105] また、本実施例では、マージやフィルタのルールに従ったスタイルシートを用意し、 利用者に出力形式を選択させるだけでそれらのスタイルシートを適切な順序で適用 することによって、様々なユーザ要件にあった変 能を利用者に提供することがで きる。また、スタイルシートを部品化して可用性を高めることができ、利用者力 Sスタイル シートを作成する負担を低減することができる。
[0106] また、本実施例に係る連続変換プロセッサ 100を用いることによって、単純に結合し た XML文書のサイズが大き 、場合、複数の XML文書を結合するためのスタイルシ ートを適用する前に、不要な部分を削除するスタイルシートを適用して結合処理の際 の変換対象となる XMLを小さくすることにより、プロセスのメモリ使用量を抑えることも できる。
[0107] また、一つの XML文書を別の XML文書に変換する場合でも、スタイルシートが複 雑であるならば、本実施例に係る連続変換プロセッサ 100を用いることを前提に、簡 単なスタイルシートに分けることによって、保守性の高いスタイルシートとすることがで きる。
[0108] なお、本実施例では、 XML出力ダイアログボックス 10が複数の XML文書の単純 結合やスタイルシートの適用順の決定などを行う場合について説明したが、本発明 はこれに限定されるものではなぐこれらの機能など XML出力ダイアログボックス 10 のいずれかの機能を連続変換プロセッサ 100に含める場合にも同様に適用すること ができる。
産業上の利用可能性
以上のように、本発明に係る連続変換プログラム、連続変換方法および連続変換 装置は、 XML文書の変換に有用であり、特に、変換に使用するスタイルシートが複 雑な場合に適している。

Claims

請求の範囲
[1] 変換対象 XML文書にスタイルシートを適用して変換結果 XML文書に変換する変 換手順を、変換結果 XML文書を次の変換手順の変換対象 XML文書としつつスタイ ルシートの数だけ繰り返す繰返変換手順、
をコンピュータに実行させることを特徴とする連続変換プログラム。
[2] 前記繰返変換手順は、 XML文書を構成する要素のうち識別子が同一である要素 の属性および内容の組合せ指定または要素および属性の追加指定を記述するマー ジルール、要素および属性の削除指定または要素および属性の出現順序指定を記 述するフィルタルールを用いるスタイルシートの組合せに基づ 、て変換手順を繰り返 すことを特徴とする請求項 1に記載の連続変換プログラム。
[3] 前記繰返変換手順は、複数の異なる仕様の XML文書を単純に結合して得られる XML文書を最初の変換対象 XML文書とすることを特徴とする請求項 1または 2に記 載の連続変換プログラム。
[4] 前記繰返変換手順は、単一のプロセスとして実行されることを特徴とする請求項 1ま たは 2に記載の連続変換プログラム。
[5] 前記繰返変換手順は、最後の変換で得られる変換結果 XML文書の出力形式から 決定されるスタイルシートおよび該スタイルシートの適用順序に基づいて変換手順を 繰り返すことを特徴とする請求項 1または 2に記載の連続変換プログラム。
[6] 変換対象 XML文書にスタイルシートを適用して変換結果 XML文書に変換する変 換工程を、利用者の一回の指定で、変換結果 XML文書を次の変換工程の変換対 象 XML文書としつつスタイルシートの数だけ繰り返す繰返変換工程、
を含んだことを特徴とする連続変換方法。
[7] 前記繰返変換工程は、 XML文書を構成する要素のうち識別子が同一である要素 の属性および内容の組合せ指定または要素および属性の追加指定を記述するマー ジルール、要素および属性の削除指定または要素および属性の出現順序指定を記 述するフィルタルールを用いるスタイルシートの組合せに基づ 、て変換工程を繰り返 すことを特徴とする請求項 6に記載の連続変換方法。
[8] 前記繰返変換工程は、複数の異なる仕様の XML文書を単純に結合して得られる XML文書を最初の変換対象 XML文書とすることを特徴とする請求項 6または 7に記 載の連続変換方法。
[9] 前記繰返変換工程は、最後の変換で得られる変換結果 XML文書の出力形式カゝら 決定されるスタイルシートおよび該スタイルシートの適用順序に基づいて変換工程を 繰り返すことを特徴とする請求項 6または 7に記載の連続変換方法。
[10] 変換対象 XML文書にスタイルシートを適用して変換結果 XML文書に変換する X ML文書変換を、変換結果 XML文書を次の XML文書変換の変換対象 XML文書と しつつスタイルシートの数だけ繰り返す繰返変換手段、
を備えたことを特徴とする連続変換装置。
PCT/JP2005/021968 2005-11-30 2005-11-30 連続変換プログラム、連続変換方法および連続変換装置 WO2007063582A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2005/021968 WO2007063582A1 (ja) 2005-11-30 2005-11-30 連続変換プログラム、連続変換方法および連続変換装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2005/021968 WO2007063582A1 (ja) 2005-11-30 2005-11-30 連続変換プログラム、連続変換方法および連続変換装置

Publications (1)

Publication Number Publication Date
WO2007063582A1 true WO2007063582A1 (ja) 2007-06-07

Family

ID=38091923

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2005/021968 WO2007063582A1 (ja) 2005-11-30 2005-11-30 連続変換プログラム、連続変換方法および連続変換装置

Country Status (1)

Country Link
WO (1) WO2007063582A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979793B2 (en) 2007-09-28 2011-07-12 Microsoft Corporation Graphical creation of a document conversion template

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001344267A (ja) * 2000-06-02 2001-12-14 Institute Of Tsukuba Liaison Co Ltd Xml文書問い合わせ言語処理装置
JP2004005487A (ja) * 2002-03-29 2004-01-08 Ricoh Co Ltd 表示用データ生成装置、表示用データ生成システム、データ管理装置、表示用データ生成方法、プログラム及び記録媒体
JP2005513627A (ja) * 2001-12-17 2005-05-12 ゼット・アイ・エイチ コーポレーション Xmlプリンタシステム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001344267A (ja) * 2000-06-02 2001-12-14 Institute Of Tsukuba Liaison Co Ltd Xml文書問い合わせ言語処理装置
JP2005513627A (ja) * 2001-12-17 2005-05-12 ゼット・アイ・エイチ コーポレーション Xmlプリンタシステム
JP2004005487A (ja) * 2002-03-29 2004-01-08 Ricoh Co Ltd 表示用データ生成装置、表示用データ生成システム、データ管理装置、表示用データ生成方法、プログラム及び記録媒体

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979793B2 (en) 2007-09-28 2011-07-12 Microsoft Corporation Graphical creation of a document conversion template
US8972854B2 (en) 2007-09-28 2015-03-03 Microsoft Technology Licensing, Llc Graphical creation of a document conversion template

Similar Documents

Publication Publication Date Title
Frisch gaussian 09W Reference
JP5193042B2 (ja) データベースアプリケーションで選択可能な機能制御を表示するためのコマンドユーザインターフェース
US8791955B2 (en) Method, system, and computer-readable medium for creating and laying out a graphic within an application program
US20080126407A1 (en) System-data-architecture management system, system-data-architecture management process, and computer-readable medium storing system-data-architecture management program
US20080235624A1 (en) Information processing apparatus, information processing method, and computer-readable recording medium storing information processing program
JP2005092542A (ja) ジョブネット構成ファイルの生成装置および生成方法
US8136043B2 (en) GUI generation apparatus and method for generating GUI
JP5416112B2 (ja) インタラクティブなユーザーインターフェースの定義
JP2004362091A (ja) データ変換装置、データ変換システム及びデータ格納制御プログラム
WO2007063582A1 (ja) 連続変換プログラム、連続変換方法および連続変換装置
JP5023038B2 (ja) プログラム生成用プログラム及びプログラム生成装置
JP2000222493A (ja) オブジェクト編集装置及び方法及びコンピュータ読取り可能なプログラムが格納された記憶媒体
US8176063B2 (en) System and method for non-overwriting extensible mapping
US20080270985A1 (en) Database application assembly and preparation
JP2012088981A (ja) 電子文書管理システム
JP2002007384A (ja) 構造化文書の変換
JPH09245035A (ja) ドキュメント管理装置
JP2004086774A (ja) 画面構造図モデリング装置、プログラム、画面構造図モデリング方法
JP2004362343A (ja) ソースコード変換装置、ソースコード変換方法、およびプログラム
JP5322403B2 (ja) ホームページ作成装置とそのホームページ作成プログラム及びホームページ作成方法
JP2002082930A (ja) 構造化文書処理方法および構造化文書処理装置
JP6157192B2 (ja) 情報処理装置、制御方法およびコンピュータプログラム
JP2010165153A (ja) 項目設定装置、並びにその制御方法及び制御プログラム
JPH11316699A (ja) データベース作成方法、データベース作成システムおよびデータベース作成プログラムを記録したプログラム記録媒体
JP2004227396A (ja) プログラムテスト支援装置、コンピュータプログラム、及びコンピュータ読み取り可能な記憶媒体

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 05811555

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP