JP2003036223A - Markup document conversion method - Google Patents

Markup document conversion method

Info

Publication number
JP2003036223A
JP2003036223A JP2002078020A JP2002078020A JP2003036223A JP 2003036223 A JP2003036223 A JP 2003036223A JP 2002078020 A JP2002078020 A JP 2002078020A JP 2002078020 A JP2002078020 A JP 2002078020A JP 2003036223 A JP2003036223 A JP 2003036223A
Authority
JP
Japan
Prior art keywords
document
conversion
markup
script
markup language
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.)
Granted
Application number
JP2002078020A
Other languages
Japanese (ja)
Other versions
JP4322462B2 (en
Inventor
Kazuo Yanoo
一男 矢野尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2002078020A priority Critical patent/JP4322462B2/en
Publication of JP2003036223A publication Critical patent/JP2003036223A/en
Application granted granted Critical
Publication of JP4322462B2 publication Critical patent/JP4322462B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem that in converting a document described in a markup language including a procedural script language, into a document of a different markup language, it is difficult to completely convert the procedural script language itself if the specifications of the script languages in the markup languages are different between before and after conversion. SOLUTION: In conversion of markup languages, scripts, which are included in a document to be converted, are executed in a conversion device. This enables a browser, which displays markup languages that do not support script languages, to reproduce operations described with scripts in the document to be converted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、手続き型スクリプ
ト言語を内包するコンテンツ記述言語で記述された文書
を、手続き型スクリプト言語を持たない、あるいは異な
る手続き型スクリプト言語を使用するブラウザ上で実行
させるためのマークアップ文書変換方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention executes a document described in a content description language including a procedural script language on a browser that does not have a procedural script language or uses a different procedural script language. Markup document conversion method for.

【0002】[0002]

【従来の技術】インターネット及びイントラネット上の
文書の大部分は、ワールドワイドウェブ(WWW)で使
用されるHTML(ハイパーテキストマークアップ言
語)形式の文書で記述されている。HTMLは、SGM
Lをベースとしたマークアップ言語として開発された
が、フォームと呼ばれる仕組みによって、HTML文書
を配布するサーバー(ウェブサーバー)に対してクライ
アントのブラウザから情報を送ることが出来る。ウェブ
サーバー上に、送られてきた情報に応じたHTML文書
をブラウザに送り返すプログラムを置くことによって、
対話型のコンテンツを作成することが出来る。
2. Description of the Related Art Most of documents on the Internet and Intranet are described in HTML (Hyper Text Markup Language) format documents used in the World Wide Web (WWW). HTML is SGM
Although it was developed as a markup language based on L, information can be sent from a client browser to a server (web server) that distributes HTML documents by a mechanism called a form. By placing a program that sends back an HTML document corresponding to the sent information to the browser on the web server,
You can create interactive content.

【0003】HTMLにおけるフォームの構成要素はf
orm要素とinput要素である。input要素は
type属性の値によって様々な入力部品を表現するこ
とができる。input要素にはname属性とval
ue属性を設定でき、type属性として”submi
t”という値を持つinput要素がクリックされたと
き、そのinput要素が含まれるform要素内の全
てのinput要素のname属性の値とvalue属
性の値の対がサーバー側に送信される。
Form elements in HTML are f
These are the orm element and the input element. The input element can represent various input components depending on the value of the type attribute. name attribute and val in the input element
The ue attribute can be set, and "submi" is set as the type attribute.
When an input element having a value of “t” is clicked, a pair of the value of the value of the value attribute and the value of the value of the value attribute of all the input elements within the form element including the input element is transmitted to the server side.

【0004】HTMLが高機能化するにつれて、HTM
L文書中に手続き型のスクリプト言語であるJava
(登録商標) Scriptを埋め込む方式が一般化さ
れ、HTML4.0では正式な仕様として認知された。
Java Scriptを使用すると、ユーザが入力し
た情報をウェブサーバーに送らずにブラウザ上で処理し
て、入力された情報に応じた画面をブラウザ上に表示す
ることが出来る。
As HTML has become more sophisticated, HTM
Java, which is a procedural script language in L documents
The method of embedding (registered trademark) Script has been generalized, and has been recognized as an official specification in HTML 4.0.
When Java Script is used, the information input by the user can be processed on the browser without being sent to the web server, and a screen corresponding to the input information can be displayed on the browser.

【0005】Java Scriptはscript要
素内に記述される。記述されたスクリプトは、HTML
文書がロードされたときに実行される。また、ある要素
がクリックされたときに起動するスクリプトを、その要
素のonclick属性として記述することができる。
onclickのようなイベントのことを固有イベント
と呼ぶ。固有イベントを利用して、スクリプトによる対
話動作を記述できる。
Java Script is described in a script element. The written script is HTML
Runs when the document is loaded. Also, a script that is activated when an element is clicked can be described as the onclick attribute of the element.
An event such as onclick is called a unique event. Scripts can be used to describe interactive operations using unique events.

【0006】電波産業会(ARIB)によって、デジタ
ルデータ放送用のマークアップ言語として策定されたB
ML(Broadcast Markup Langu
age)は、XMLをベースとしたマークアップ言語で
あり、HTML同様にECMAScriptで記述され
たスクリプトを埋め込むことが出来る。ECMAScr
iptは、Java Scriptを標準化したスクリ
プト言語である。2000年12月から始まったBSデ
ジタルデータ放送では、「基本サービスのための運用ガ
イドライン」と呼ばれるプロファイルに則ったBMLが
使用されている。基本サービスのための運用ガイドライ
ンではフォームは運用されていないため、対話型のコン
テンツは全てECMAScriptを使用して記述する
必要がある。
[0006] B established as a markup language for digital data broadcasting by the Association of Radio Industries and Businesses (ARIB)
ML (Broadcast Markup Langu
(age) is a markup language based on XML, and like HTML, a script described in ECMAScript can be embedded. ECMAScr
ipt is a scripting language that standardizes Java Script. In BS digital data broadcasting that started in December 2000, BML according to a profile called "operation guideline for basic service" is used. Since the form is not operated in the operation guideline for the basic service, it is necessary to describe all interactive contents by using ECMAScript.

【0007】一方、NTT Docomoのiモード
や、J−PhoneのJ Sky Webでは、制限付
きのHTML文書の表示のみをサポートしている。両者
とも、フォームはサポートしているが、Java Sc
riptのようなスクリプト言語の埋め込みはサポート
してない。従って、対話型のコンテンツはフォームのみ
を使用して記述する必要がある。以下、このような制限
を持つHTML文書を、スクリプト言語をサポートする
最新のHTMLと区別するために、携帯端末用HTML
と呼ぶ。
On the other hand, the i-mode of NTT Docomo and the J Sky Web of J-Phone only support the display of restricted HTML documents. Both support forms, but Java Sc
It does not support embedding scripting languages such as ript. Therefore, interactive content should be described using forms only. Hereinafter, in order to distinguish the HTML document having such restrictions from the latest HTML that supports the script language, the HTML for mobile terminals is described.
Call.

【0008】WAP Forumで携帯端末用のマーク
アップ言語として策定されたWML(Wireless
Markup Language)では、postf
ield要素によって、HTMLのフォームと同様の対
話動作を実現できる。また、携帯用HTMLと異なり、
固有イベントやWMLScriptによるスクリプトも
サポートしているが、言語仕様はECMAScript
やJava Scriptとは異なる。
[0008] WML (Wireless) was established by WAP Forum as a markup language for mobile terminals.
In Markup Language), postf
With the field element, it is possible to realize an interactive operation similar to the HTML form. Also, unlike portable HTML,
Scripts with unique events and WMLScript are also supported, but the language specification is ECMAScript.
And Java Script.

【0009】HTMLで使用されるJava Scri
ptとBMLで使用されるECMAScriptの言語
仕様はほぼ同じだが、スクリプト言語から文書本体を操
作するインタフェース(DOM「Document O
bject Model」と呼ぶ)が異なり、HTML
4.0で記述された文書のHTML部分をBMLに書き
換えても、スクリプトの仕様が異なるために、BMLブ
ラウザ上では実行することができない。
Java Scri used in HTML
Although the language specifications of ECMAScript used in pt and BML are almost the same, an interface for operating the document body from the script language (DOM "Document O
"bject Model")
Even if the HTML part of the document described in 4.0 is rewritten to BML, it cannot be executed on the BML browser because the script specifications are different.

【0010】WWW用の文書、デジタルデータ放送用の
文書、携帯端末用の文書を相互に変換する要望は高い
が、上記のとおり、各文書で使用されている言語には、
手続き型スクリプト言語による対話型コンテンツ作成の
点で大きな違いがある。
Although there is a strong demand for mutual conversion of WWW documents, digital data broadcasting documents, and mobile terminal documents, as mentioned above, the languages used in each document are:
There is a big difference in creating interactive contents with a procedural script language.

【0011】特開2000−194612号公報では、
HTML文書を無線アプリケーションプロトコル(WA
P)の無線マークアップ言語(WML)等で記述された
文書へ変換する方法を開示している。この手法はマーク
アップ言語部分のみを装置用設定によって変換するが、
スクリプト言語の変換は行わない。そのため、スクリプ
ト言語を含むHTML文書を変換すると、スクリプト言
語で記述された情報が欠落してしまう。このように、ス
クリプト言語を無視する手法を従来例1と呼ぶ。
In Japanese Patent Laid-Open No. 2000-194612,
An HTML document can be converted into a wireless application protocol (WA
P), a method of converting into a document described in a wireless markup language (WML) or the like is disclosed. This method converts only the markup language part according to the device settings,
Does not convert the script language. Therefore, when the HTML document including the script language is converted, the information described in the script language is lost. The method of ignoring the script language in this way is called Conventional Example 1.

【0012】特開2001−5716号公報では、HT
ML文書をMHEG文書に変換する方法を開示してい
る。この手法は、マークアップ言語の変換だけでなく、
HTML文書中に記述されたスクリプト言語を、それに
対応するMHEGアクションに変換する。しかし、HT
ML文書内で使用されるJava Scriptの記述
能力とMHEGアクションの記述能力が異なるため、H
TML文書中にスクリプト言語で記述された情報を、全
てMHEG文書中に移植することは出来ない。このよう
に、スクリプト言語ごと変換する手法を従来例2と呼
ぶ。
In Japanese Patent Laid-Open No. 2001-5716, HT
A method for converting an ML document into an MHEG document is disclosed. This method is not only for converting markup languages,
The script language described in the HTML document is converted into the corresponding MHEG action. But HT
Since the description ability of Java Script and the description ability of MHEG action used in the ML document are different,
It is not possible to transfer all the information described in the script language in the TML document into the MHEG document. A method of converting each script language as described above is called Conventional Example 2.

【0013】[0013]

【発明が解決しようとする課題】従来例1では、マーク
アップ言語中に含まれるスクリプト言語が無視されてし
まうため、スクリプト言語で記述された重要な情報が変
換結果に反映されない。この手法では、スクリプト言語
を利用してユーザとの対話を実現するBML文書を携帯
端末用HTML文書に変換しても、変換結果として生成
されるHTML文書では対話動作が欠落してしまう。
In Conventional Example 1, the script language included in the markup language is ignored, so that important information described in the script language is not reflected in the conversion result. In this method, even if a BML document that realizes a dialog with a user is converted into an HTML document for a mobile terminal by using a script language, the HTML document generated as a result of the conversion lacks a dialog operation.

【0014】従来例2では、マークアップ言語中に含ま
れるスクリプト言語を、スクリプト言語ごと変換するこ
とによって、スクリプト言語で記述された情報はある程
度は変換結果に反映される。しかし、スクリプト言語と
DOMの仕様は言語・ブラウザによりまちまちであり、
完全に変換できる事例は希である。また、もともとスク
リプト言語をサポートしない携帯端末用HTML文書に
変換した場合、従来例1と同様にスクリプト言語で記述
された情報が欠落してしまう。
In Conventional Example 2, the script language included in the markup language is converted for each script language, so that the information described in the script language is reflected to some extent in the conversion result. However, the specifications of script language and DOM vary depending on the language and browser,
There are rare cases where it can be completely converted. Further, when converted to an HTML document for a mobile terminal which originally does not support the script language, the information described in the script language will be lost as in the first conventional example.

【0015】いずれの場合も、スクリプト言語を使用し
てユーザとの対話を行うHTML文書やBML文書を携
帯端末用HTMLに変換しても、変換結果には元の文書
の持っていた対話処理を再現できない。
In any case, even if an HTML document or a BML document which interacts with a user using a script language is converted into an HTML for a mobile terminal, the conversion result shows the interaction process of the original document. I can't reproduce it.

【0016】しかし、対話処理は多くのコンテンツで必
須の機能であるため、変換元のマークアップ言語中に記
述されたスクリプトの対話処理を再現しながら、マーク
アップ言語を変換する方式が望まれる。
However, since the interactive process is an essential function for many contents, it is desirable to convert the markup language while reproducing the interactive process of the script described in the markup language of the conversion source.

【0017】そこで、本発明は、手続き型スクリプト言
語を内包したマークアップ言語を、それとは異なるマー
クアップ言語をサポートするブラウザで、元の文書に含
まれていたスクリプトの対話動作を再現しつつ、表示で
きるようにするためのマークアップ文書変換方式を提供
することを目的とする。また、その際に、変換結果を人
手により修正できるようにしたマークアップ文書変換方
式を提供することを目的とする。
Therefore, according to the present invention, a markup language including a procedural script language is reproduced by a browser supporting a markup language different from the markup language while reproducing the interactive operation of the script included in the original document. It is an object to provide a markup document conversion method for enabling display. It is another object of the present invention to provide a markup document conversion method in which the conversion result can be manually corrected.

【0018】[0018]

【課題を解決するための手段】本発明に係るマークアッ
プ文書変換方式は、変換を行うサーバープログラム上
で、変換元のマークアップ言語に含まれているスクリプ
トを実行して、変換元のマークアップ言語を動的に変更
してから、マークアップ言語同士の変換規則に従って変
換先のマークアップ言語に変換し、ブラウザに送ること
を特徴とする。
A markup document conversion method according to the present invention executes a script included in a markup language of a conversion source on a server program for conversion to convert the markup document of the conversion source. The feature is that the language is dynamically changed, and then it is converted into the markup language of the conversion destination according to the conversion rule between the markup languages and sent to the browser.

【0019】本発明のマークアップ文書変換方式は、サ
ーバープログラム上で、変換元マークアップ言語でサポ
ートされるスクリプト言語の処理系が動作するようにし
て、ブラウザの仕様とは無関係に、スクリプト言語及び
DOMの仕様に忠実に則った処理系をサーバー側で用意
することが出来るようにし、変換元文書に含まれている
スクリプト記述の中でブラウザで実現可能な動作を確実
に実現する。
According to the markup document conversion method of the present invention, the script language processing system supported by the conversion source markup language operates on the server program so that the script language and the script language can be processed independently of the browser specifications. It enables the server side to prepare a processing system that closely conforms to the DOM specifications, and reliably realizes the operation that can be realized by the browser in the script description included in the conversion source document.

【0020】[0020]

【発明の実施の形態】以下、本発明の実施の一形態につ
いて説明する。 (実施の形態1)この実施の形態1のマークアップ文書
変換方式のブロック図を図1に示す。変換元文書11
は、手続き型スクリプト言語LAを含んだマークアップ
言語LBで記述されている。ブラウザ13は、マークア
ップ言語LCで記述された文書を表示する装置である。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below. (Embodiment 1) FIG. 1 shows a block diagram of a markup document conversion method according to the first embodiment. Source document 11
Is written in a markup language LB including a procedural script language LA. The browser 13 is a device that displays a document described in the markup language LC.

【0021】変換装置12は、変換元文書をブラウザに
表示する手段である。変換装置12は、変換元文書読み
込み手段14、スクリプト実行手段17、イベント変換
手段18、マークアップ言語変換手段19、イベント処
理手段22から成る。変換元文書読み込み手段14は、
変換元文書を読み込み、変換元文書11に含まれるスク
リプト部分16とマークアップ部分15に分割する。ス
クリプト実行手段17はスクリプト言語LAをサポート
する言語処理系である。このスクリプト実行手段17
は、変換元文書読み込み手段14によって分割された、
スクリプト部分16を読み込んで実行する。スクリプト
中に文書内容を変更する記述があれば、スクリプトに記
述されたとおりにマークアップ部分の内容を変更する。
The conversion device 12 is means for displaying the conversion source document on the browser. The conversion device 12 includes a conversion source document reading unit 14, a script execution unit 17, an event conversion unit 18, a markup language conversion unit 19, and an event processing unit 22. The conversion source document reading means 14
The conversion source document is read and divided into a script portion 16 and a markup portion 15 included in the conversion source document 11. The script execution means 17 is a language processing system that supports the script language LA. This script execution means 17
Is divided by the conversion source document reading means 14,
The script portion 16 is read and executed. If there is a description to change the document content in the script, the content of the markup part is changed as described in the script.

【0022】マークアップ部分15は、イベント変換手
段18とマークアップ言語変換手段19によってマーク
アップ言語LCで記述された、変換済み文書21に変換
される。ここで、イベント変換手段18は、変換元文書
中の固有イベントを、サーバーに情報を送出する要素
(HTMLであればinput要素)に変換する。この
とき、固有イベントのハンドラとして設定されていたス
クリプトを、サーバーに送出する情報として設定する。
マークアップ言語変換手段19は、マークアップ言語L
Aをマークアップ言語LCに変換する手段である。変換
済文書はブラウザに送られ、ユーザに表示される。ブラ
ウザ上で、ユーザがボタンを押すなどして、サーバーに
情報を送信する要素が起動された場合、イベント処理手
段22は送信されたデータから、設定されていたスクリ
プトを取り出し、そのスクリプトをスクリプト実行手段
17で実行し、続いてイベント変換手段18、マークア
ップ言語変換手段19を実行して変換済文書を更新し、
再びブラウザに送る。上記の繰り返しにより、変換元マ
ークアップ言語中に記述されたスクリプト言語による対
話動作を、変換先マークアップ言語のフォームによる対
話動作に変換できる。
The markup portion 15 is converted into a converted document 21 described in the markup language LC by the event conversion means 18 and the markup language conversion means 19. Here, the event conversion unit 18 converts the unique event in the conversion source document into an element (input element in the case of HTML) that sends information to the server. At this time, the script set as the handler of the unique event is set as the information to be sent to the server.
The markup language conversion means 19 uses the markup language L.
A means for converting A into a markup language LC. The converted document is sent to the browser and displayed to the user. When an element that transmits information to the server is activated by the user pressing a button on the browser, the event processing unit 22 extracts the set script from the transmitted data and executes the script. The conversion processing is executed by the means 17, and then the event conversion means 18 and the markup language conversion means 19 are executed to update the converted document,
Send it to the browser again. By repeating the above, the interactive operation in the script language described in the conversion source markup language can be converted into the interactive operation in the form of the conversion destination markup language.

【0023】図2と図3は、対話動作の変換についての
解説図である。図2は、スクリプトを含む文書を、その
文書をサポートするブラウザで直に表示・閲覧した場合
の図である。ユーザがある文書を閲覧しようとすると、
ブラウザ32はサーバー31から文書受信33を行い画
面に表示する。ユーザがボタンを押すなどの入力を行う
と、文書中に固有イベントのハンドラとして記述されて
いたスクリプトがブラウザ上で実行され、文書更新35
が実行される。
FIG. 2 and FIG. 3 are explanatory diagrams of the conversion of the interactive operation. FIG. 2 is a diagram when a document including a script is directly displayed / browsed by a browser that supports the document. When a user tries to view a document,
The browser 32 receives the document 33 from the server 31 and displays it on the screen. When the user makes an input such as pressing a button, the script described as the unique event handler in the document is executed on the browser, and the document update 35
Is executed.

【0024】図3は、この実施の形態1のマークアップ
文書変換方式を使用して、スクリプトを含む文書を、そ
の文書をサポートしないブラウザで表示・閲覧できるよ
うに変換した場合の図である。ユーザがある文書を閲覧
しようとした時、ブラウザはサーバーから、変換装置4
1によって変換された文書を受信して画面に表示する。
次に、ユーザがボタンを押すなどの入力を行うと、その
ボタンはサーバーにデータを送信する要素に変換されて
いるため、サーバーにデータ送信38を行う。送信され
たデータは、固有イベントに関連付けられていたスクリ
プトなので、サーバー内の変換装置41で、このスクリ
プトを実行して文書更新39を行う。そして、更新され
た文書を変換した結果がブラウザに送られ、文書受信4
0が行われる。このように、ユーザからの見かけ上の図
3の対話動作は、図2の対話動作と同じものとなる。
FIG. 3 is a diagram when the markup document conversion method of the first embodiment is used to convert a document including a script so that it can be displayed / browsed by a browser that does not support the document. When a user tries to view a document, the browser sends a conversion device 4 from the server.
The document converted by 1 is received and displayed on the screen.
Next, when the user makes an input such as pressing a button, the button is converted into an element for transmitting data to the server, and therefore data transmission 38 is performed to the server. Since the transmitted data is the script associated with the unique event, the conversion device 41 in the server executes this script to update the document 39. Then, the result of converting the updated document is sent to the browser, and the document reception 4
0 is performed. As described above, the apparent dialogue operation of the user from FIG. 3 is the same as the dialogue operation of FIG.

【0025】従来例1では、サーバープログラム上でマ
ークアップ言語を変換するだけだったが、この実施の形
態1のマークアップ文書変換方式では、スクリプトで記
述された対話動作を再現することが出来る。また、サー
バープログラム上で、変換元マークアップ言語でサポー
トされるスクリプト言語の処理系が動作するため、ブラ
ウザの仕様とは無関係に、スクリプト言語及びDOMの
仕様に忠実に則った処理系をサーバー側で用意すること
が出来る。従って、従来例2のようにスクリプト言語ご
と変換する方式とは異なり、変換元文書に含まれている
スクリプト記述の中でブラウザで実現可能な動作は確実
に実現することが出来る。
In the first conventional example, only the markup language was converted on the server program, but the markup document conversion method of the first embodiment can reproduce the interactive operation described by the script. In addition, since the script language processing system supported by the conversion source markup language runs on the server program, a processing system faithfully conforming to the script language and DOM specifications is executed on the server side regardless of the browser specifications. Can be prepared at. Therefore, unlike the method of converting each script language as in the second conventional example, the operation that can be realized by the browser in the script description included in the conversion source document can be surely realized.

【0026】次に、このマークアップ文書変換方式の具
体例について説明する。ここでは、基本サービスのため
の運用ガイドラインに沿って記述されたBML文書を、
iモード用HTML(Compact HTML,CH
TML)に変換する場合の具体例(以下、実施例1−1
という)について述べる。変換先文書をCHTMLとし
ているが、この実施例1−1は変換先のマークアップ言
語が、最新のHTML4.0であっても、J−Sky
Web用のHTMLであっても適用できる。
Next, a specific example of this markup document conversion method will be described. Here, the BML document described according to the operation guideline for the basic service,
HTML for i-mode (Compact HTML, CH
A specific example of conversion to TML (hereinafter, referred to as Example 1-1)
That)). Although the conversion destination document is CHTML, in this embodiment 1-1, even if the conversion destination markup language is the latest HTML 4.0, J-Sky is used.
It can be applied even to HTML for the Web.

【0027】図4は、変換元となるBML文書の例であ
る。BML文書には、ECMAScriptで記述した
スクリプトをScript要素を使用して埋め込むこと
が出来る。図4の例では、12行目から18行目までが
スクリプトである。この文書は、BMLブラウザ上では
図5のように動作する。まず、最初は図5左のように、
「ユーザ登録」、「入力完了」というテキストと、その
間にパスワードを入力するエリアが表示される。ユーザ
がパスワードを入力し、「入力完了」ボタンを押すと、
script要素内に記述されたスクリプト関数sho
wNextが実行される。showNext関数は、D
OMを通じてvisibilityスタイル特性を操作
することにより、それまで見えなかった「次へ」という
テキストを表示する(図5右)。
FIG. 4 shows an example of a BML document which is a conversion source. A script described in ECMAScript can be embedded in a BML document by using a Script element. In the example of FIG. 4, the 12th to 18th lines are scripts. This document operates as shown in FIG. 5 on the BML browser. First, as shown on the left of Fig. 5,
The texts "user registration" and "input completed" and the area for entering the password are displayed. When the user enters the password and presses the "Enter" button,
Script function sho described in the script element
wNext is executed. The showNext function is D
By manipulating the visibility style property through the OM, the previously unseen text "next" is displayed (Fig. 5, right).

【0028】以下、この実施例1−1における図1の各
手段の詳細を解説する。変換元文書読み込み手段14
は、BML文書中からscript要素を調べ、scr
ipt要素が存在する場合は、script要素の内部
を文書(変換元文書スクリプト部分)16として出力
し、script要素を取り除いたものを文書(変換元
文書マークアップ部分)15として出力する。ここで、
文書15、文書16は必ずしもファイルの形態を取る必
要はなく、メモリ上に展開されたデータとして保持して
もよい。この時点での文書15を図6、文書16を図7
に示す。
The details of each means shown in FIG. 1 in the embodiment 1-1 will be described below. Conversion source document reading means 14
Checks the script element in the BML document and
When the ipt element is present, the inside of the script element is output as the document (conversion source document script portion) 16 and the one without the script element is output as the document (conversion source document markup portion) 15. here,
The documents 15 and 16 do not necessarily have to take the form of files, and may be held as data expanded on the memory. Document 15 at this point is shown in FIG. 6, and document 16 is shown in FIG.
Shown in.

【0029】次に、スクリプト実行手段17が図7に示
されるスクリプトを実行する。この実施の形態では、ス
クリプト実行手段17は、BMLのECMAScrip
tとDOMインタフェースをサポートする。図7のスクリ
プトの場合、スクリプトは関数定義文しか記述されてい
ないため、この段階ではスクリプト実行後も文書15へ
の変更はない。
Next, the script executing means 17 executes the script shown in FIG. In this embodiment, the script executing means 17 uses the BML ECMAScript.
Supports t and DOM interfaces. In the case of the script in FIG. 7, only the function definition statement is described in the script, and therefore, at this stage, there is no change to the document 15 even after the script is executed.

【0030】次に、イベント変換手段18によって、図
6に示されるBML文書中に含まれる固有イベントの記
述を、CHTMLのフォームの記述に変換する。この実
施例1−1におけるイベント変換手段18は図9に示さ
れる。このイベント変換手段18は、BML文書中の全
ての要素に対して適用される。まず、その要素にonc
lick属性が設定されているかどうかを調べ、設定さ
れている場合は、ステップS15に記した方法でinp
ut要素に変換する。従って、図6中のid属性がok
のp要素はinput要素に変換される。onclic
k属性が設定されていない場合、その要素がinput
要素かどうかを調べ、input要素である場合は、i
d属性に設定されている値をname属性として追加す
る(ステップS14)。従って、図6中のid属性が”
pass”のinput要素には”pass”というn
ame属性が追加される。次に、その要素がbody要
素であるかどうかを調べ、body要素である場合はf
orm要素を子要素として出力する(ステップS1
6)。
Next, the event conversion means 18 converts the description of the unique event included in the BML document shown in FIG. 6 into the description of the CHTML form. The event converting means 18 in this Embodiment 1-1 is shown in FIG. The event converting means 18 is applied to all the elements in the BML document. First, the element is onc
It is checked whether the lick attribute is set, and if it is set, inp is performed by the method described in step S15.
Convert to ut element. Therefore, the id attribute in FIG. 6 is ok
The p element of is converted to an input element. onclic
If the k attribute is not set, the element is input
Check whether it is an element, and if it is an input element, i
The value set in the d attribute is added as the name attribute (step S14). Therefore, the id attribute in FIG.
In the input element of "pass", n called "pass"
The ame attribute is added. Next, it is checked whether the element is a body element, and if it is a body element, f
The orm element is output as a child element (step S1)
6).

【0031】イベント変換手段18によって固有イベン
ト記述が変換された文書は、マークアップ言語変換手段
19によってCHTML文書(図8)に変換される。こ
の実施例1−1におけるマークアップ言語変換手段19
は、文書内の全ての要素に対して、図10に示される変
換表を上から順に解釈することによって実現される。
The document having the unique event description converted by the event conversion means 18 is converted into a CHTML document (FIG. 8) by the markup language conversion means 19. Markup language conversion means 19 in the embodiment 1-1
Is realized by interpreting the conversion table shown in FIG. 10 in order from the top for all the elements in the document.

【0032】まず、その要素のスタイルを調べ、vis
ibility特性がhiddenの場合は、その要素
は無視する。なぜなら、visibility特性がh
iddenの要素は元のBML上では表示されないため
である。例えば、図6のid属性がnextのp要素
(「次へ」)は、visibilityがhidden
に設定されているため、図8中には出力されない。次
に、その要素がbml要素である場合は、html要素
にタグ名を変更して出力する。次に、その要素がsty
le要素の場合は、その要素を無視する。なぜなら、C
HTMLではスタイルシートはサポートされないためで
ある。同様に、object要素の場合も無視する。な
ぜなら、object要素で示される画像・動画・音声
をCHTMLブラウザ上で表示しないようにするためで
ある。ここで、画像に関しては、無視せずにファイルフ
ォーマット変換やサイズ変換を行って、img要素に変
換するという実施例も考えられる。同様に、beite
m要素とbevent要素も無視する。これらはCHT
ML文書では表現できないためである。それ以外の要素
は、style属性、id属性、class属性を削除
して、そのままCHTML文書中に出力する。styl
e属性等を削除するのは、CHTMLではこれらの属性
がサポートされないためである。
First, the style of the element is examined, and vis
If the ibilty property is hidden, that element is ignored. Because the visibility characteristic is h
This is because the element of idden is not displayed on the original BML. For example, in the p element (“next”) whose id attribute is next in FIG. 6, the visibility is hidden
Since it is set to, it is not output in FIG. Next, if the element is a bml element, the tag name is changed to the html element and the element is output. Then the element is sty
If it is a le element, that element is ignored. Because C
This is because HTML does not support style sheets. Similarly, the case of the object element is also ignored. This is because the image / moving image / sound indicated by the object element is not displayed on the CHTML browser. Here, an example in which the image format is converted into the img element by performing file format conversion or size conversion without ignoring the image can be considered. Similarly, beite
The m element and the event element are also ignored. These are CHT
This is because it cannot be expressed in an ML document. For other elements, the style attribute, the id attribute, and the class attribute are deleted, and the element is output as it is in the CHTML document. styl
The e attribute and the like are deleted because these attributes are not supported in CHTML.

【0033】マークアップ言語変換手段19の結果、出
力されるCHTML文書は図8のとおりである。図8の
CHTML文書は、CHTMLブラウザ上で図11左の
ように表示される。ここで、ユーザが、パスワードを入
力して入力ボタンを押すと、図12に示すフォームデー
タが返される。この情報が、イベント処理手段20に渡
される。
The CHTML document output as a result of the markup language converting means 19 is as shown in FIG. The CHTML document in FIG. 8 is displayed on the CHTML browser as shown in the left part of FIG. Here, when the user inputs the password and presses the input button, the form data shown in FIG. 12 is returned. This information is passed to the event processing means 20.

【0034】イベント処理手段20は図13の手順で表
される。フォームデータとして渡されたname、va
lueのそれぞれの対に対して、ステップS31からス
テップS33に示される手順を実行する。まず、nam
eの先頭が、@であるかどうかを判別する(ステップS
31)。基本サービスのための運用ガイドラインに沿っ
て記述されたBMLのid属性には@という文字は使用
できないため、@が先頭についている場合、ステップS
14でinput要素を生成した変換元要素のoncl
ick属性であると特定できるため、nameの先頭か
ら@を取り除いたものをスクリプトとして解釈し、スク
リプト実行手段17を起動する(ステップS32)。@
が先頭についていない場合、ステップS17で生成した
input要素と特定できるので、ステップS33の処
理を実行する。全てのname、value対に対して
上記の処理が終了したら、マークアップ言語変換手段1
9を起動して終了する(ステップS34)。
The event processing means 20 is represented by the procedure shown in FIG. Name, va passed as form data
The procedure shown in steps S31 to S33 is executed for each pair of lues. First, nam
It is determined whether the beginning of e is @ (step S
31). Since the character @ cannot be used in the id attribute of BML described according to the operation guideline for basic services, if @ is at the beginning, step S
Oncl of the conversion source element that generated the input element in 14
Since it can be specified as the ick attribute, the name without @ from the beginning is interpreted as a script, and the script executing means 17 is activated (step S32). @
If is not at the beginning, it can be specified as the input element generated in step S17, and therefore the process of step S33 is executed. When the above process is completed for all name and value pairs, the markup language conversion means 1
9 is started and the process ends (step S34).

【0035】例えば、図12のフォームデータが返され
た場合、まずname=”pass”に関しては、ステ
ップS33により、変換元文書15中のid属性の値が
passのinput要素のvalue属性値を”12
34”に変更する。また、name=”@showNe
xt();”に関しては、ステップS32により、sh
owNext(); というスクリプトを実行する。図
7より、showNext();; が実行されると、関
数showNextが実行され、まずpassというi
dを持つ要素のvalue属性値が変数pwに取得され
る(C1)。この例の場合、ステップS33により”1
234”に設定されているため、pwには”1234”
が代入される。次に、pwの長さが調べられる(C
2)。pwの長さは4なので、if文内のコードが実行
され、nextというidを持つ要素のvisibil
ity特性が”visible”に変更される。
For example, when the form data of FIG. 12 is returned, first, regarding name = “pass”, the value attribute value of the input element whose id attribute value in the conversion source document 15 is “pass” is determined in step S33. 12
34 ". Also, name =""@ showNe.
xt (); ”, sh
Run the script owNext () ;. From FIG. 7, when showNext () ;; is executed, the function showNext is executed, and i is called pass.
The value attribute value of the element having d is acquired in the variable pw (C1). In the case of this example, "1" is obtained in step S33.
Since it is set to 234 ", pw is" 1234 "
Is substituted. Next, the length of pw is examined (C
2). Since the length of pw is 4, the code in the if statement is executed, and the visibil of the element with the id next
The property “ty” is changed to “visible”.

【0036】その後、マークアップ言語変換手段が起動
されて出力される変換済み文書は図14のようになり、
CHTMLブラウザでは図11右のように表示される。
After that, the converted document output by the markup language conversion means being activated is as shown in FIG.
The CHTML browser displays as shown on the right side of FIG.

【0037】次に、変換先文書がWMLである場合の実
施例(以下、実施例1−2という)について述べる。こ
の実施例1−2では、図1を構成する各手段のうち、イ
ベント変換手段18とマークアップ言語変換手段19が
前記実施例1−1とは異なる。
Next, an embodiment in which the conversion destination document is WML (hereinafter referred to as Embodiment 1-2) will be described. In the embodiment 1-2, the event converting means 18 and the markup language converting means 19 among the respective means constituting FIG. 1 are different from those of the embodiment 1-1.

【0038】イベント変換手段18は、図15、図16
で示される。図15のステップS44が、図9に示した
実施例1−1におけるイベント変換手段と異なる。in
put要素でフォームの送出を行うCHTML(HTM
L)と異なり、WMLではdo要素、go要素、pos
tfield要素の組み合わせによってフォームの送出
を行うためである。マークアップ言語変換手段19は、
文書内の全ての要素に対して、図17に示される変換表
を上から順に解釈することによって実現される。
The event converting means 18 is shown in FIGS.
Indicated by. Step S44 of FIG. 15 is different from the event converting means in the embodiment 1-1 shown in FIG. in
CHTML (HTM) that sends a form using the put element
Unlike L), in WML, do element, go element, pos
This is because the form is sent out by a combination of tfield elements. The markup language conversion means 19
This is realized by interpreting the conversion table shown in FIG. 17 in order from the top for all the elements in the document.

【0039】図4に示されるBML文書を、この実施例
1−2によってWML文書に変換した例を図18に示
す。この文書は、WMLブラウザでは図11左のように
表示される。ここで、ユーザがパスワードを入力して入
力ボタンを押すと、図19に示すフォームデータが返さ
れる。この情報がイベント処理手段20に渡される。こ
の実施例1−2におけるイベント処理手段20は前記実
施例1−1と同じである。イベント処理手段実行後に出
力されるWML文書は図20のようになる。この文書は
WMLブラウザでは図11右のように表示される。
FIG. 18 shows an example in which the BML document shown in FIG. 4 is converted into a WML document according to the embodiment 1-2. This document is displayed on the WML browser as shown in the left part of FIG. Here, when the user inputs the password and presses the input button, the form data shown in FIG. 19 is returned. This information is passed to the event processing means 20. The event processing means 20 in the embodiment 1-2 is the same as that in the embodiment 1-1. The WML document output after execution of the event processing means is as shown in FIG. This document is displayed on the WML browser as shown on the right side of FIG.

【0040】以上のように、この実施の形態1によれ
ば、スクリプト言語を利用して画面を変更するBML文
書の画面遷移を、スクリプト言語をサポートしないCH
TMLブラウザやWMLブラウザ上でも実現できるな
ど、手続き型スクリプト言語を内包したマークアップ言
語を、それとは異なるマークアップ言語をサポートする
ブラウザで、元の文書に含まれていたスクリプトの対話
動作を再現しつつ表示できる効果がある。
As described above, according to the first embodiment, the CH that does not support the script language does not support the screen transition of the BML document whose screen is changed by using the script language.
A markup language that includes a procedural script language, such as can be implemented on a TML browser or WML browser, is reproduced by a browser that supports a different markup language than the markup language. While there is an effect that can be displayed.

【0041】(実施の形態2)次に、本発明の実施の形
態2について説明する。この実施の形態2では、前記実
施の形態1で述べた変換装置12の機能を、事前変換装
置と修正済み文書変換装置に分割することにより、変換
元マークアップ言語に含まれているスクリプトの動作を
再現しつつ、かつ人手による変換結果の修正も可能とす
る。事前変換装置と修正済み文書変換装置を使用した変
換方法を図27に示す。変換元文書11は、一旦、事前
変換装置51で変換される。変換された結果は、修正用
変換済み文書52として保存される。修正用変換済み文
書52は文書編集装置53により、ユーザによる手作業
または他のプログラムによる変更が加えられる。変更後
の文書は、修正済み文書54として保存される。修正済
み文書54は修正済み文書変換配信装置55によりブラ
ウザに配信される。
(Second Embodiment) Next, a second embodiment of the present invention will be described. In the second embodiment, by dividing the function of the conversion device 12 described in the first embodiment into a pre-conversion device and a modified document conversion device, the operation of the script included in the conversion source markup language is executed. While reproducing, it is also possible to manually correct the conversion result. FIG. 27 shows a conversion method using the pre-conversion device and the modified document conversion device. The conversion source document 11 is once converted by the pre-conversion device 51. The converted result is stored as the corrected converted document 52. The converted document for correction 52 is manually modified by the user or modified by another program by the document editing device 53. The changed document is saved as the corrected document 54. The corrected document 54 is distributed to the browser by the corrected document conversion / distribution device 55.

【0042】事前変換装置51の構成は図28に示され
る。事前変換装置51は、変換元文書読み込み手段1
4、イベント変換手段18、静的フォーマット変換手段
56からなる。変換元文書読み込み手段14とイベント
変換手段18は、図1に示した変換装置12のもと同じ
ものである。静的フォーマット変換手段56は、マーク
アップ言語変換手段19から、変換時の条件によって情
報の欠落が生じうる変換規則を除いたものである。な
お、変換時の条件によって情報の欠落が生じうる変換規
則は後述する動的フォーマット変換手段63に含まれ
る。例えば、変換元文書11のある要素のタグを別のタ
グに変換する規則は、変換時の条件によって情報の欠落
が生じないため静的フォーマット変換手段56に含まれ
る。一方、変換元文書11のある要素の子要素の数が一
定数以下の場合は、その要素を無視する(変換結果とし
て出力しない)規則は、変換時の条件にって情報の欠落
が生じるため、動的フォーマット変換手段63に含まれ
る。変換時の条件によって情報の欠落が生じる変換が除
外されるため、修正用変換済み文書52の内容は変換済
み文書21と異なり、スクリプトの実行結果に影響され
ないものであり、人手による修正に適したものとなる。
文書編集装置53は、マークアップ言語LCで記述され
た文書を編集可能な任意の手段である。
The structure of the pre-conversion device 51 is shown in FIG. The pre-conversion device 51 is a conversion source document reading means 1
4, event conversion means 18, static format conversion means 56. The conversion source document reading means 14 and the event conversion means 18 are the same as those of the conversion device 12 shown in FIG. The static format conversion means 56 is the markup language conversion means 19 except for the conversion rules that may cause loss of information depending on the conversion conditions. It should be noted that the conversion rule that may cause information loss depending on the conversion condition is included in the dynamic format conversion means 63 described later. For example, the rule for converting a tag of a certain element of the conversion source document 11 into another tag is included in the static format conversion unit 56 because information is not lost due to the conversion condition. On the other hand, when the number of child elements of a certain element of the conversion source document 11 is less than or equal to a certain number, the rule to ignore the element (not output as the conversion result) causes information loss due to the condition at the time of conversion. , Included in the dynamic format conversion means 63. Since the conversion that causes information loss is excluded depending on the conversion condition, the contents of the corrected converted document 52 are different from the converted document 21 and are not affected by the execution result of the script, and are suitable for manual correction. Will be things.
The document editing device 53 is any means capable of editing a document described in the markup language LC.

【0043】修正済み文書変換配信装置55の構成は図
29に示される。修正済み文書変換配信装置55は、変
換元文書読み込み手段14、差分反映手段61、動的フ
ォーマット変換手段63、イベント処理手段22、スク
リプト実行手段17、差分生成手段65からなる。ここ
で、変換元文書読み込み手段14、イベント処理手段2
2、スクリプト実行手段17は変換装置12を構成する
手段と同じものである。動的フォーマット変換手段63
は、上述の通り、マークアップ言語変換手段19から変
換時の条件によって情報の欠落が生じうる変換規則を抜
き出したものである。なお、図29中の双方向サーバ通
信手段66は、事前変換装置51と修正済み文書変換配
信装置55を使用した変換方法に必須の機能ではない。
この双方向サーバ通信手段66は、後述する実施例2−
4で説明する。修正済み文書54には、差分反映手段6
1によりスクリプトの実行によって生成された差分情報
62の内容が反映される。次に、動的フォーマット変換
手段63により、静的フォーマット変換手段56では考
慮されなかった変換がなされる。この結果、文書編集装
置53によりなされた修正済み文書への変更を保存しつ
つ、かつ、スクリプトの実行によって生じる文書変更を
再現した変換済文書64が生成され、ブラウザに送信さ
れる。
The structure of the corrected document conversion / delivery device 55 is shown in FIG. The corrected document conversion / delivery device 55 includes a conversion source document reading unit 14, a difference reflection unit 61, a dynamic format conversion unit 63, an event processing unit 22, a script execution unit 17, and a difference generation unit 65. Here, the conversion source document reading means 14 and the event processing means 2
2. The script execution means 17 is the same as the means constituting the conversion device 12. Dynamic format conversion means 63
As described above, is a conversion rule extracted from the markup language conversion means 19 that may cause information loss depending on the conversion condition. The bidirectional server communication means 66 in FIG. 29 is not an essential function for the conversion method using the pre-conversion device 51 and the corrected document conversion / delivery device 55.
The two-way server communication means 66 is used in the second embodiment described later.
This will be explained in Section 4. The corrected document 54 includes the difference reflection means 6
1 reflects the contents of the difference information 62 generated by executing the script. Next, the dynamic format conversion means 63 performs conversion that was not considered by the static format conversion means 56. As a result, the converted document 64 that reproduces the document change generated by the execution of the script while storing the change to the corrected document made by the document editing device 53 is generated and transmitted to the browser.

【0044】次に、このマークアップ文書変換方式の具
体例について説明する。ここでは、基本サービスのため
の運用ガイドラインに則って記述されたBML文書を、
iモード用HTML(CompAct HTML,CH
TML)に変換する場合の具体例(以下、実施例2−1
という)について述べる。変換先文書をCHTMLとし
ているが、この実施例2−1は変換先のマークアップ言
語が、最新のHTML4.0であっても、J Sky
Web用のHTMLであっても適用できる。図4は、変
換元となるBML文書の例である。BML文書には、E
CMAScriptで記述したスクリプトをscrip
t要素を使用して埋め込むことが出来る。図4の例では
12行目から18行目までがスクリプトである。この文
書は、BMLブラウザ上では図5のように動作する。ま
ず、最初は図5左のように、「ユーザ登録」、「入力完
了」というテキストと、その間にパスワードを入力する
エリアが表示される。ユーザがパスワードを入力し、
「入力完了」ボタンを押すと、script要素内に記
述されたスクリプト関数showNextが実行され
る。showNext関数は、DOMを通じてvisi
bilityスタイル特性を操作することにより、それ
まで見えなかった「次へ」というテキストを表示する
(図5右)。
Next, a specific example of this markup document conversion method will be described. Here, the BML document described according to the operation guideline for the basic service,
HTML for i-mode (CompAct HTML, CH
A specific example of conversion into TML (hereinafter, referred to as Example 2-1)
That)). Although the conversion destination document is CHTML, in this embodiment 2-1, even if the conversion destination markup language is the latest HTML 4.0, J Sky
It can be applied even to HTML for the Web. FIG. 4 is an example of a BML document that is a conversion source. For BML documents, E
Script the script described in CMASscript
It can be embedded using the t element. In the example of FIG. 4, the 12th to 18th lines are scripts. This document operates as shown in FIG. 5 on the BML browser. First, as shown in the left side of FIG. 5, the texts "user registration" and "input completed" and the area for entering the password are displayed between them. User enters password,
When the "input complete" button is pressed, the script function showNext described in the script element is executed. The showNext function is
By manipulating the ability style property, the text "next" which was not visible until then is displayed (Fig. 5, right).

【0045】以下、この実施例2−1における図1の各
手段の詳細を解説する。変換元文書読み込み手段14
は、BML文書中からscript要素を調べ、scr
ipt要素が存在する場合は、script要素の内部
を文書(変換元文書スクリプト部分)16として出力
し、script要素を取り除いたものを文書(変換元
文書マークアップ部分)15として出力する。ここで、
文書15、文書16は必ずしもファイルの形態を取る必
要はなく、メモリ上に展開されたデータとして保持して
もよい。この時点での文書15を図6、文書16を図7
に示す。次に、スクリプト実行手段17が図7に示され
るスクリプトを実行する。この実施例2−1では、スク
リプト実行手段17は、BMLのECMAScript
とDOMンタフェースをサポートする。図7のスクリプ
トの場合、スクリプトは関数定義文しか記述されていな
いため、この段階ではスクリプト実行後も文書15への
変更はない。
The details of each means of FIG. 1 in the embodiment 2-1 will be described below. Conversion source document reading means 14
Checks the script element in the BML document and
When the ipt element is present, the inside of the script element is output as the document (conversion source document script portion) 16 and the one without the script element is output as the document (conversion source document markup portion) 15. here,
The documents 15 and 16 do not necessarily have to take the form of files, and may be held as data expanded on the memory. Document 15 at this point is shown in FIG. 6, and document 16 is shown in FIG.
Shown in. Next, the script execution means 17 executes the script shown in FIG. In this embodiment 2-1, the script execution means 17 uses the BML ECMAScript.
And DOM interface support. In the case of the script in FIG. 7, only the function definition statement is described in the script, and therefore, at this stage, there is no change to the document 15 even after the script is executed.

【0046】次に、イベント変換手段18によって、図
6に示されるBML文書中に含まれる固有イベントの記
述を、CHTMLのフォームの記述に変換する。この実
施例2−1におけるイベント変換手段18は図9に示さ
れる。このイベント変換手段18は、BML文書中の全
ての要素に対して適用される。まず、その要素にonc
lick属性が設定されているかどうかを調べ、設定さ
れている場合は、ステップS15に記した方法でinp
ut要素に変換する。従って、図6中のid属性がok
のp要素はinput要素に変換される。onclic
k属性が設定されていない場合、その要素がinput
要素かどうかを調べ、input要素である場合は、i
d属性に設定されている値をname属性として追加す
る(ステップS14)。従って、図6中のid属性が”
pass”のinput要素には”pass”というna
me属性が追加される。次に、その要素がbody要素
であるかどうかを調べ、body要素である場合はfo
rm要素を子要素として出力する(ステップS16)。
Next, the event conversion means 18 converts the description of the unique event contained in the BML document shown in FIG. 6 into the description of the CHTML form. The event converting means 18 in this Embodiment 2-1 is shown in FIG. The event converting means 18 is applied to all the elements in the BML document. First, the element is onc
It is checked whether the lick attribute is set, and if it is set, inp is performed by the method described in step S15.
Convert to ut element. Therefore, the id attribute in FIG. 6 is ok
The p element of is converted to an input element. onclic
If the k attribute is not set, the element is input
Check whether it is an element, and if it is an input element, i
The value set in the d attribute is added as the name attribute (step S14). Therefore, the id attribute in FIG.
The input element of "pass" is "pass" na
The me attribute is added. Next, it checks whether the element is a body element, and if it is a body element, fo
The rm element is output as a child element (step S16).

【0047】イベント変換手段18によって固有イベン
ト記述が変換された文書は、マークアップ言語変換手段
19によってCHTML文書(図8)に変換される。こ
の実施例におけるマークアップ言語変換手段19は、文
書内の全ての要素に対して、図10に示される変換表を
上から順に解釈することによって実現される。まず、そ
の要素のスタイルを調べ、visibility特性が
hiddenの場合は、その要素は無視する。なぜな
ら、visibility特性がhiddenの要素は
元のBML上では表示されないためである。例えば、図
6のid属性がnextのp要素(「次へ」)は、vi
sibilityがhiddenに設定されているた
め、図8中には出力されない。次に、その要素がBML
要素である場合は、HTML要素にタグ名を変更して出
力する。次に、その要素がstyle要素の場合は、そ
の要素を無視する。なぜなら、CHTMLではスタイル
シートはサポートされないためである。同様に、obj
ect要素の場合も無視する。なぜなら、object
要素で示される画像・動画・音声をCHTMLブラウザ
上で表示しないようにするためである。ここで、画像に
関しては、無視せずにファイルフォーマット変換やサイ
ズ変換を行って、img要素に変換するという実施例も
考えられる。同様に、beitem要素とbevent
要素も無視する。これらはCHTML文書では表現でき
ないためである。それ以外の要素は、style属性、
id属性、class属性を削除して、そのままCHT
ML文書中に出力する。style属性等を削除するの
は、CHTMLではこれらの属性がサポートされないた
めである。マークアップ言語変換手段19の結果、出力
されるCHTML文書は図8のとおりである。図8のC
HTML文書は、CHTMLブラウザ上で図11左のよ
うに表示される。ここで、ユーザが、パスワードを入力
して入力ボタンを押すと、図12に示すフォームデータ
が返される。この情報が、イベント処理手段22に渡さ
れる。
The document whose unique event description has been converted by the event converting means 18 is converted into a CHTML document (FIG. 8) by the markup language converting means 19. The markup language conversion means 19 in this embodiment is realized by sequentially interpreting the conversion table shown in FIG. 10 from the top for all the elements in the document. First, the style of the element is examined, and if the visibility property is hidden, the element is ignored. This is because the element whose visibility property is hidden is not displayed on the original BML. For example, the p element (“next”) whose id attribute is next in FIG.
Since sibility is set to hidden, it is not output in FIG. Then the element is BML
If it is an element, the tag name is changed to an HTML element and output. Next, if the element is a style element, the element is ignored. This is because style sheets are not supported in CHTML. Similarly, obj
Ignore the case of ect element. Because the object
This is to prevent the image, moving image, and sound indicated by the element from being displayed on the CHTML browser. Here, an example in which the image format is converted into the img element by performing file format conversion or size conversion without ignoring the image can be considered. Similarly, beitem element and event
Ignore the element as well. This is because these cannot be expressed in the CHTML document. Other elements are style attributes,
Delete the id attribute and class attribute and leave CHT
Output in ML document. The reason why the style attribute and the like are deleted is that these attributes are not supported in CHTML. The CHTML document output as a result of the markup language conversion means 19 is as shown in FIG. 8C
The HTML document is displayed on the CHTML browser as shown on the left side of FIG. Here, when the user inputs the password and presses the input button, the form data shown in FIG. 12 is returned. This information is passed to the event processing means 22.

【0048】イベント処理手段22は図13の手順で表
される。フォームデータとして渡されたname、va
lueのそれぞれの対に対して、ステップS31からス
テップS33に示される手順を実行する。まず、nam
eの先頭が、@であるかどうかを判別する(ステップS
31)。BSデジタル放送の運用ガイドラインに沿って
記述されたBMLのid属性には@という文字は使用で
きないため、@が先頭についている場合、ステップS1
8でinput要素を生成した変換元要素のoncli
ck属性であると特定できるため、nameの先頭から
@を取り除いたものをスクリプトとして解釈し、スクリ
プト実行手段17を起動する(ステップS32)。@が
先頭についていない場合、ステップS14で生成したi
nput要素と特定できるので、ステップS33の処理
を実行する。全てのname、value対に対して上
記の処理が終了したら、マークアップ言語変換手段19
を起動して終了する(ステップS34)。
The event processing means 22 is represented by the procedure shown in FIG. Name, va passed as form data
The procedure shown in steps S31 to S33 is executed for each pair of lues. First, nam
It is determined whether the beginning of e is @ (step S
31). Since the character @ cannot be used in the id attribute of BML described according to the operation guideline for BS digital broadcasting, if @ is at the beginning, step S1
Oncli of the conversion source element that generated the input element in 8.
Since it can be specified as the ck attribute, the name without @ from the beginning is interpreted as a script, and the script execution means 17 is activated (step S32). If @ is not at the beginning, i generated in step S14
Since it can be specified as an nput element, the process of step S33 is executed. When the above process is completed for all name and value pairs, the markup language conversion means 19
Is started and terminated (step S34).

【0049】例えば、図12のフォームデータが返され
た場合、まずname=”pass”に関しては、ステ
ップS33により、変換元文書15中のid属性の値が
passのinput要素のvalue属性値を”12
34”に変更する。また、name=”@showNe
xt();”に関しては、ステップS32により、sh
owNext(); というスクリプトを実行する。図
7より、showNext(); が実行されると、関
数showNextが実行され、まずpassというi
dを持つ要素のvalue属性値が変数pwに取得され
る(C1)。この例の場合、ステップS33により”1
234”に設定されているため、pwには”1234”
が代入される。次に、pwの長さが調べられる(C
2)。pwの長さは4なので、if文内のコードが実行
され、nextというidを持つ要素のvisibil
ity特性が”visible”に変更される。その
後、マークアップ言語変換手段が起動されて出力される
変換済み文書は図14のようになり、CHTMLブラウ
ザでは図11右のように表示される。
For example, when the form data of FIG. 12 is returned, first, regarding name = “pass”, the value attribute value of the input element whose id attribute value in the conversion source document 15 is “pass” is determined in step S33. 12
34 ". Also, name =""@ showNe.
xt (); ”, sh
Run the script owNext () ;. From FIG. 7, when showNext (); is executed, the function showNext is executed, and i is called pass.
The value attribute value of the element having d is acquired in the variable pw (C1). In the case of this example, "1" is obtained in step S33.
Since it is set to 234 ", pw is" 1234 "
Is substituted. Next, the length of pw is examined (C
2). Since the length of pw is 4, the code in the if statement is executed, and the visibil of the element with the id next
The property “ty” is changed to “visible”. After that, the converted document output by the markup language conversion means being activated is as shown in FIG. 14, and displayed on the CHTML browser as shown on the right in FIG.

【0050】次に、変換先文書がWMLである場合の実
施例2−2について述べる。この実施例2−2では、図
1を構成する各手段のうち、イベント変換手段18とマ
ークアップ言語変換手段19が前記実施例2−1とは異
なる。イベント変換手段18は、図15、図16で示さ
れる。図15のステップS44が、図9に示した実施例
2−1におけるイベント変換手段と異なる。input
要素でフォームの送出を行うCHTML(HTML)と
異なり、WMLではdo要素、go要素、postfi
eld要素の組み合わせによってフォームの送出を行う
ためである。マークアップ言語変換手段19は、文書内
の全ての要素に対して、図17に示される変換表を上か
ら順に解釈することによって実現される。
Next, the embodiment 2-2 in the case where the conversion destination document is WML will be described. In the embodiment 2-2, the event converting means 18 and the markup language converting means 19 among the means constituting FIG. 1 are different from those of the embodiment 2-1. The event converting means 18 is shown in FIGS. Step S44 in FIG. 15 is different from the event converting means in the embodiment 2-1 shown in FIG. input
Unlike CHTML (HTML) which sends a form by element, in WML, do element, go element, postfi
This is because the form is sent out by combining the eld elements. The markup language conversion means 19 is realized by sequentially interpreting the conversion table shown in FIG. 17 from the top for all the elements in the document.

【0051】図4に示されるBML文書を、この実施例
2−2によってWML文書に変換した例を図18に示
す。この文書は、WMLブラウザでは図11左のように
表示される。ここで、ユーザがパスワードを入力して入
力ボタンを押すと、図19に示すフォームデータが返さ
れる。この情報がイベント処理手段22に渡される。こ
の実施例2−2におけるイベント処理手段22は前記実
施例2−1と同じである。イベント処理手段実行後に出
力されるWML文書は図20のようになる。この文書は
WMLブラウザでは図11右のように表示される。
FIG. 18 shows an example in which the BML document shown in FIG. 4 is converted into a WML document according to the embodiment 2-2. This document is displayed on the WML browser as shown in the left part of FIG. Here, when the user inputs the password and presses the input button, the form data shown in FIG. 19 is returned. This information is passed to the event processing means 22. The event processing means 22 in the embodiment 2-2 is the same as that in the embodiment 2-1. The WML document output after execution of the event processing means is as shown in FIG. This document is displayed on the WML browser as shown on the right side of FIG.

【0052】次に、変換先文書がJavaScript
とCSS2(CascadingStyle Shee
ts Level2)をサポートするHTML4.0で
ある場合の実施例2−3について述べる。この実施例2
−3では、JavaScriptとCSS2を利用する
ことによって、実施例2−1よりも元文書に近い画面構
成を再現できる。この実施例2−3では、図1を構成す
る各手段のうち、イベント変換手段18とマークアップ
言語変換手段19が実施例2−1および実施例2−2と
は異なる。イベント変換手段18は、図21で示され
る。図21のステップS55、ステップS56、ステッ
プS57が、図9に示した実施例2−1におけるイベン
ト変換手段と異なる。実施例2−1では、onclic
k属性が設定された要素をinput要素に変換するこ
とによって、イベント発火をサーバへのフォーム送出に
変換していたが、この実施例2−3では、onclic
k属性に設定されたスクリプトを、フォームを送出する
スクリプトに置き換えることによって、イベント発火を
サーバへのフォーム送出に変換する。onclick属
性が設定された要素をinput要素に変更することが
無いため、元文書に近い画面構成を再現できる。
Next, the conversion destination document is JavaScript.
And CSS2 (Cascading Style Shee)
Example 2-3 in the case of HTML 4.0 supporting ts Level2) will be described. This Example 2
In No. 3, by using Java Script and CSS2, it is possible to reproduce a screen configuration closer to that of the original document than in Example 2-1. In the example 2-3, the event converting means 18 and the markup language converting means 19 of the respective means constituting FIG. 1 are different from those of the example 2-1 and the example 2-2. The event converting means 18 is shown in FIG. Step S55, step S56, and step S57 in FIG. 21 are different from the event converting means in the embodiment 2-1 shown in FIG. In Example 2-1, the onclic
The event firing was converted to form transmission to the server by converting the element in which the k attribute was set to the input element. However, in this embodiment 2-3, onclic is used.
Event firing is converted to form submission to the server by replacing the script set in the k attribute with a script that submits the form. Since the element in which the onclick attribute is set is not changed to the input element, the screen configuration close to that of the original document can be reproduced.

【0053】フォームを送出するスクリプトは図22の
とおりである。このスクリプトは、第1引数xに渡され
たinput要素のdisabled属性をfalseに
することによって一時的に有効にし、第2引数yに渡さ
れたform要素を送出す。従って、送出されたデータ
には、第1引数xに渡されたinput要素に設定され
ているname属性とvalue属性の対が含まれる。
図22のスクリプトは、ステップS57で変換先HTM
L中に出力される。また、第1引数xとして渡されるi
nput要素は、ステップS55で出力される。onc
lick属性の値は、図22のスクリプト関数を起動す
る関数呼び出し文に変換される(ステップS56)。マ
ークアップ言語変換手段19は、文書内の全ての要素に
対して、図23に示す変換表を上から順に解釈する。ま
た、各要素のstyle属性と、style要素の内部
には図24に示す変換表を適用する。
The script for submitting the form is as shown in FIG. This script temporarily enables the disabled attribute of the input element passed to the first argument x by setting it to false, and sends out the form element passed to the second argument y. Therefore, the transmitted data includes a pair of the name attribute and the value attribute set in the input element passed to the first argument x.
The script of FIG. 22 is converted to the HTM in step S57.
It is output during L. Also, i passed as the first argument x
The nput element is output in step S55. onc
The value of the lick attribute is converted into a function call statement that activates the script function of FIG. 22 (step S56). The markup language conversion means 19 interprets the conversion table shown in FIG. 23 in order from the top for all the elements in the document. Further, the style attribute of each element and the conversion table shown in FIG. 24 are applied to the inside of the style element.

【0054】図4のBML文書を、この実施例2−3に
よってHTML文書に変換した例を図25に示す。この
文書は、JavaScriptとCSS2をサポートし
たHTMLブラウザでは図5左のように表示される。こ
こで、ユーザがパスワードを入力して入力ボタンを押す
と、図19に示すフォームデータが返される。この情報
がイベント処理手段22に渡される。この実施例2−3
におけるイベント処理手段22は実施例2−1と同じで
ある。イベント処理手段実行後に出力されるHTML文
書は図26のようになる。この文書はHTMLブラウザ
では図5右のように表示される。
FIG. 25 shows an example in which the BML document shown in FIG. 4 is converted into an HTML document by the embodiment 2-3. This document is displayed as shown on the left side of FIG. 5 in the HTML browser that supports Javascript and CSS2. Here, when the user inputs the password and presses the input button, the form data shown in FIG. 19 is returned. This information is passed to the event processing means 22. This example 2-3
The event processing means 22 in is the same as that in the embodiment 2-1. The HTML document output after execution of the event processing means is as shown in FIG. This document is displayed on the HTML browser as shown on the right side of FIG.

【0055】次に事前変換装置を使用し、かつ、双方向
サーバ通信手段を持つ場合の実施例2−4について述べ
る。この実施例2−4では、前記実施例2−1と同様
に、BML文書をCHTMLに変換する場合を想定する
が、変換元文書や変換先文書がこれと異なるものに対し
ても適用できる。また、双方向サーバ通信手段による双
方向サーバとの通信機能は、変換元文書がBMLである
場合ならば、図1に示す変換装置にも適用できる。この
実施例2−4では、変換元文書として、図30に示すB
ML文書を想定する。このBML文書は、まず最初に図
31左のような画面を表示する。この画面では、「解答
を入力して下さい」というテキストと、解答を入力する
エリア、入力完了ボタンが表示される。ユーザが解答を
入力して、入力完了ボタンを押すと、script要素
内に記述されたスクリプト関数enterが実行され
る。enter関数は、BMLの双方向通信機能を使用
して、入力された解答を電話番号“00−0000−0
000”で表される双方向サーバに送信する。双方向サ
ーバでは、送信されたデータが正解の場合は“ok”と
いう文字列を、そうでない場合は“ng”という文字列
を返す。
Next, a description will be given of the embodiment 2-4 in the case of using the pre-translation device and having the bidirectional server communication means. In this embodiment 2-4, similar to the above-mentioned embodiment 2-1, it is assumed that the BML document is converted into CHTML, but the present invention can be applied to the case where the conversion source document or the conversion destination document is different from this. Further, the communication function with the bidirectional server by the bidirectional server communication means can be applied to the conversion device shown in FIG. 1 if the conversion source document is BML. In Example 2-4, B shown in FIG. 30 is used as the conversion source document.
Assume an ML document. This BML document first displays a screen as shown on the left in FIG. On this screen, the text "Please enter the answer", the area for entering the answer, and the input completion button are displayed. When the user inputs the answer and presses the input completion button, the script function enter described in the script element is executed. The enter function uses the two-way communication function of BML to input the answer to the telephone number "00-0000-0".
000 "to the bidirectional server. The bidirectional server returns the character string" ok "if the transmitted data is correct, and returns the character string" ng "otherwise.

【0056】Eenter関数内では、双方向サーバか
ら返された文字列が“ok”の場合は、msgというI
Dで示されるテキストエリアに“正解”という文字列を
挿入し、そうでない場合は“はずれ”という文字列を挿
入する。その結果、入力された解答が正解の場合は、図
31右上のような画面表示になり、不正解の場合は、図
31右下のような画面表示となる。この文書を、まず図
28に示す事前変換装置51で読み込む。事前変換装置
51は、変換元文書読み込み手段14、イベント変換手
段18、静的フォーマット変換手段56から成るが、変
換元文書読み込み手段14とイベント変換手段18は、
前記実施例2−1と同じである。従って、変換元文書読
み込み手段14によって、図30に示す変換元文書のマ
ークアップ部分が読み込まれ、onclick属性を持
つid属性が“ok”のp要素が、input要素に変
換される。次に、静的フォーマット変換手段56は、文
書内の全ての要素に対して、図36に示す変換表を上か
ら順に解釈する。これを図10に表されるマークアップ
言語変換手段と比較すると、「Visibilityス
タイル特性がhiddenの要素を出力しない」という
処理と、「id属性を無視する」処理がない。この2つ
の処理は、動的フォーマット変換手段63で実行され
る。その結果として、事前変換装置51によって生成さ
れる修正用変換済み文書52は、図32のようになる。
In the Enterer function, if the character string returned from the bidirectional server is "ok", I called msg
In the text area indicated by D, the character string "correct answer" is inserted, and otherwise, the character string "disappear" is inserted. As a result, when the input answer is correct, the screen display is as shown in the upper right of FIG. 31, and when it is incorrect, the screen as shown in the lower right of FIG. 31 is displayed. This document is first read by the pre-conversion device 51 shown in FIG. The pre-conversion device 51 includes a conversion source document reading unit 14, an event conversion unit 18, and a static format conversion unit 56. The conversion source document reading unit 14 and the event conversion unit 18 are
Same as Example 2-1. Therefore, the conversion source document reading unit 14 reads the markup portion of the conversion source document shown in FIG. 30, and converts the p element having the onclick attribute and the id attribute “ok” into the input element. Next, the static format conversion means 56 interprets the conversion table shown in FIG. 36 in order from the top for all the elements in the document. Comparing this with the markup language conversion means shown in FIG. 10, there is no processing of “not outputting elements whose visibility style characteristic is hidden” and processing of “ignoring id attribute”. These two processes are executed by the dynamic format conversion means 63. As a result, the corrected converted document 52 generated by the pre-conversion device 51 is as shown in FIG.

【0057】次に、文書編集装置53で、修正用変換済
み文書を編集する。文書編集装置53は、汎用のHTM
Lオーサリングツールやテキストエディタである。修正
用変換済み文書は通常のHTML文書であるため、汎用
のHTMLオーサリングツールやテキストエディタで編
集することが出来る。図33は、編集した結果として生
成される修正済み文書54の例である。ここでは、図3
2の文書に対して、「解答を入力してください」という
テキストを「解答入力」に短縮し(図33の4行目)、
id属性が“msg”のp要素をfont要素に変更し
て“red”という値を持つcolor属性を追加した
上、文書の先頭の方に移動した。
Then, the document editing apparatus 53 edits the corrected converted document. The document editing device 53 is a general-purpose HTM.
L authoring tool and text editor. Since the modified converted document is a normal HTML document, it can be edited with a general-purpose HTML authoring tool or a text editor. FIG. 33 is an example of the corrected document 54 generated as a result of editing. Here, FIG.
For the second document, shorten the text "Please enter answer" to "Enter answer" (4th line in Fig. 33),
I changed the p element with id attribute "msg" to the font element, added the color attribute with the value "red", and moved it to the beginning of the document.

【0058】次に、図29を用いて、この修正済文書を
CHTMLブラウザに送出する処理を解説する。修正済
文書は、まず、差分反映手段61で処理される。差分反
映手段は、差分情報62を修正済文書に反映させる手段
である。差分情報62は、差分生成手段65によって生
成される。初めて差分反映手段61が実行された時点で
は、差分生成手段65は一度も実行されていないため、
差分情報は空である。したがって、差分反映手段61か
らの出力は修正済み文書と同じである。差分反映手段6
1からの出力は、動的フォーマット変換手段63で処理
される。動的フォーマット変換手段は、図37に示す変
換表を上から順に解釈することによって実行される。図
33に示される文書に、図37を適用すると、“ms
g”というidを持つfont要素が削除され(変換元
文書マークアップ部中の、“msg”というidを持つ
要素のvisibilityスタイル特性が“hidd
en”であるため)、かつ、各要素に記述されているi
d属性が削除される。従って、その結果として出力され
る変換済み文書64は図34のようになる。
Next, with reference to FIG. 29, the process of sending this corrected document to the CHTML browser will be described. The corrected document is first processed by the difference reflecting means 61. The difference reflecting means is means for reflecting the difference information 62 on the corrected document. The difference information 62 is generated by the difference generation means 65. When the difference reflection means 61 is executed for the first time, the difference generation means 65 has never been executed,
The difference information is empty. Therefore, the output from the difference reflection means 61 is the same as that of the corrected document. Difference reflection means 6
The output from 1 is processed by the dynamic format conversion means 63. The dynamic format conversion means is executed by interpreting the conversion table shown in FIG. 37 in order from the top. When FIG. 37 is applied to the document shown in FIG. 33, “ms
The font element with id "g" is deleted (in the source document markup part, the visibility style characteristic of the element with id "msg" is "hidd").
en ") and i described in each element
The d attribute is deleted. Therefore, the converted document 64 output as a result is as shown in FIG.

【0059】図34のCHTMLコンテンツは、CHT
MLブラウザ上では図38左のように表示される。ここ
で、ユーザが、解答を入力して入力完了ボタンを押す
と、図39に示すフォームデータが返される。この情報
が、イベント処理手段22に渡される。イベント処理手
段22の動作は、前記実施例2−1と同じである。図3
9のフォームデータが返された場合、ステップS32に
よりenter();というスクリプトが実行される。
この実施例2−4では、スクリプト実行手段17は、D
OMに対する書き込み時は差分生成手段65を呼び出
し、browserオブジェクトのconnect,s
endTextData,receiveTextDa
ta,disconnectの各メソッドの呼び出し時
は、双方向サーバ通信手段66に用意されている同名の
メソッドを呼び出す。
The CHTML content of FIG. 34 is CHT.
38 is displayed on the ML browser. Here, when the user inputs the answer and presses the input completion button, the form data shown in FIG. 39 is returned. This information is passed to the event processing means 22. The operation of the event processing means 22 is the same as that in the embodiment 2-1. Figure 3
When the form data of 9 is returned, the script called enter (); is executed in step S32.
In this embodiment 2-4, the script execution means 17 uses D
When writing to the OM, the difference generation means 65 is called, and the connect, s of the browser object
endTextData, receiveTextDa
At the time of calling each method of ta and disconnect, the method of the same name prepared in the bidirectional server communication means 66 is called.

【0060】双方向サーバ通信手段66は、図40に示
すメソッドを持つ。各メソッドは、BMLブラウザで実
装されている双方向通信機能と同じ機能を持つため、双
方向サーバと電話回線を通じて通信することが出来る。
なお、双方向サーバ通信手段66は、BMLブラウザで
実装されている双方向通信機能と同じ機能を持つ必要は
無い。例えば、双方向サーバが、電話回線からの発呼を
受ける部分と、受信したデータの処理を行う部分に分か
れており、後者がより高速なネットワークに接続されて
いる場合、双方向サーバ通信手段はconnect,s
endTextData等のメソッド呼び出しを、後者
に対する通信に変換するように実装することもできる。
The bidirectional server communication means 66 has the method shown in FIG. Since each method has the same function as the bidirectional communication function implemented in the BML browser, it is possible to communicate with the bidirectional server through the telephone line.
The bidirectional server communication unit 66 does not need to have the same function as the bidirectional communication function implemented in the BML browser. For example, if the interactive server is divided into a part that receives a call from the telephone line and a part that processes the received data, and the latter is connected to a higher speed network, the interactive server communication means connect, s
A method call such as endTextData can also be implemented so as to be converted into communication for the latter.

【0061】差分生成手段65は、スクリプトによるD
OMツリーの変更内容を、差分情報として保存する手段
である。この実施例2−4では、要素の属性の値の変
更、テキストノードの内容の変更、スタイルの変更をそ
れぞれ、(“Attrat”,要素のid,属性名,変
更後の属性値)、(“text”,親要素のid,親素
内でのテキストノードの出現位置,変更後のテキスト)
、(“style”,スタイルが変更された要素のi
d,スタイル特性名,新しいスタイル特性値)というリ
ストで保存する。
The difference generating means 65 is D by a script.
This is a means for saving the contents of changes in the OM tree as difference information. In Example 2-4, the value of the attribute of the element is changed, the content of the text node is changed, and the style is changed (“Atrat”, element id, attribute name, changed attribute value) and (“ "text", id of parent element, appearance position of text node in parent element, changed text)
, ("Style", i of the style-changed element
Save as a list of d, style property name, new style property value).

【0062】enter関数が実行された場合の、スク
リプト実行手段17の処理は以下のとおりである。 1行目: idがanswerの要素のvalue属性
を取得する。value属性はイベント処理手段(図1
3のステップS33)で“1”に設定されているため、
ansには“1”が代入される。 2行目: 双方向サーバ通信手段66のconnect
関数がコールされ、双方向サーバとの通信手段が確立さ
れる。 3行目: 双方向サーバ通信手段66のsendTex
tData関数がコールされ、双方向サーバに“1”と
いう文字列が送信される。 4行目: 双方向サーバ通信手段66のreceive
TextData関数がコールされ、双方向サーバから
“ok”または“ng”という文字列を受信する。 5行目: 双方向サーバ通信手段66のdisconn
ect関数がコールされ、双方向サーバとの通信手段が
切断される。 6−10行目: 受信した文字列が“ok”の場合、差
分生成手段65によって、(“text”,“ms
g”,1,“正解”)という変更情報が保存される。
“ng”の場合、(“text”,“msg”,1,
“はずれ”)という差分情報が保存される。 11行目:差分生成手段65によって、(“styl
e”,“msg,“visibility”,“vis
ible”)という差分情報が保存される。次に、生成
された差分情報は、差分反映手段61によって、修正済
み文書に反映される。差分反映手段61は、テキストノ
ードの差分情報(“text”,“msg”,1,“正
解”)より、修正済み文書中の“msg”というid属
性を持つfont要素の最初のテキストノードの内容を
“正解”に変更する(入力された解答が正解の場合)。
また、スタイルの差分情報(“style”,“ms
g”,“visibility”,“visibl
e”)より、“msg”というid属性を持つfont
要素のvisibility特性をvisibleに変
更する。
The processing of the script executing means 17 when the enter function is executed is as follows. 1st line: The value attribute of the element whose id is answer is acquired. The value attribute is an event processing means (see FIG. 1).
Since it is set to "1" in step S33) of 3,
“1” is substituted for ans. Second line: connect of the bidirectional server communication means 66
The function is called to establish a means of communication with the bidirectional server. Third line: sendTex of the bidirectional server communication means 66
The tData function is called and the character string "1" is sent to the bidirectional server. 4th line: receive of the bidirectional server communication means 66
The TextData function is called to receive the string "ok" or "ng" from the interactive server. Line 5: discon of the bidirectional server communication means 66
The ect function is called to disconnect the communication means with the bidirectional server. Lines 6-10: When the received character string is "ok", the difference generation means 65 causes ("text", "ms").
The change information "g", 1, "correct answer") is stored.
In the case of "ng", ("text", "msg", 1,
The difference information of “out” is stored. 11th line: By the difference generation means 65 (("styl"
e ”,“ msg, ”“ visibility ”,“ vis ”
The difference information "ible") is saved. Next, the generated difference information is reflected in the corrected document by the difference reflecting unit 61. The difference reflecting unit 61 is the difference information ("text") of the text node. , "Msg", 1, "correct answer"), the content of the first text node of the font element having the id attribute "msg" in the corrected document is changed to "correct answer" (the entered answer is correct) If).
In addition, style difference information (“style”, “ms”
g ”,“ visibility ”,“ visibl ”
e)), a font having an id attribute "msg"
Change the visibility property of the element to visible.

【0063】変更された修正済み文書は、動的フォーマ
ット変換手段63によって変換され、その結果として図
35に示す変換済み文書が生成される。図35のCHT
ML文書は、CHMTLブラウザでは図38右上のよう
に表示される。
The changed corrected document is converted by the dynamic format conversion means 63, and as a result, the converted document shown in FIG. 35 is generated. CHT in FIG.
The ML document is displayed in the CHMTL browser as shown in the upper right of FIG.

【0064】この実施の形態2によれば、スクリプト言
語を利用して画面を変更するBML文書の画面遷移を、
スクリプト言語をサポートしないCHTMLブラウザや
WMLブラウザ上でも実現できるなど、手続き型スクリ
プト言語を内包したマークアップ言語を、それとは異な
るマークアップ言語をサポートするブラウザで、元の文
書に含まれていたスクリプトの対話動作を再現しつつ表
示できる効果がある。例えば、スクリプト言語を利用し
て画面を変更するBML文書の画面遷移を、スクリプト
言語をサポートしないCHTMLブラウザ上やWMLブ
ラウザ上や、仕様の異なるスクリプト言語を持つHTM
Lブラウザ上でも実現できる。また、BML文書中にス
クリプトで記述された双方向サーバとの通信機能も再現
することが出来る。さらに、変換結果に人手による修正
が必要になる場合でも、人手によって修正された内容を
保存しつつ、かつ、スクリプトによる文書変更も反映さ
せた文書変換と配信を実現することが出来る。
According to the second embodiment, the screen transition of the BML document whose screen is changed by using the script language,
A markup language that includes a procedural scripting language, such as can be implemented on a CHTML or WML browser that does not support a scripting language, is a browser that supports a different markup language than the one included in the original document. There is an effect that the interactive operation can be displayed while being reproduced. For example, the screen transition of a BML document that changes the screen by using a script language is performed on a CHTML browser or a WML browser that does not support the script language, or an HTM having a script language with different specifications.
It can be realized on the L browser. In addition, the communication function with the bidirectional server described in the BML document with a script can be reproduced. Further, even when the conversion result needs to be manually corrected, it is possible to realize the document conversion and distribution in which the content manually corrected is saved and the document change by the script is also reflected.

【0065】[0065]

【発明の効果】本発明によれば、手続き型スクリプト言
語を内包したマークアップ言語を、それとは異なるマー
クアップ言語をサポートするブラウザで、元の文書に含
まれていたスクリプトの対話動作を再現しつつ、表示す
ることが出来る効果がある。例えば、スクリプト言語を
利用して画面を変更するBML文書の画面遷移を、スク
リプト言語をサポートしないCHTMLブラウザ上やW
MLブラウザ上や、仕様の異なるスクリプト言語を持つ
HTMLブラウザ上でも実現できる。また、BML文書
中にスクリプトで記述された双方向サーバとの通信機能
も再現することが出来る効果がある。さらに、変換結果
に人手による修正が必要になる場合でも、人手によって
修正された内容を保存しつつ、かつ、スクリプトによる
文書変更も反映させた文書変換と配信を実現することが
出来る効果がある。
According to the present invention, a markup language including a procedural script language is reproduced by a browser supporting a markup language different from the markup language, and the interactive operation of the script included in the original document is reproduced. While there is an effect that can be displayed. For example, the screen transition of a BML document whose screen is changed by using a script language is displayed on a CHTML browser that does not support the script language or W
It can be realized on an ML browser or an HTML browser having a script language with different specifications. Further, there is an effect that the communication function with the bidirectional server described by the script in the BML document can be reproduced. Further, even when the conversion result needs to be manually corrected, there is an effect that it is possible to realize the document conversion and distribution in which the content manually corrected is saved and the document change by the script is also reflected.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施の一形態のマークアップ文書変換
方式を示すブロック図である。
FIG. 1 is a block diagram showing a markup document conversion system according to an embodiment of the present invention.

【図2】本発明の実施の一形態のマークアップ文書変換
方式による対話動作の変換についての解説図であり、ス
クリプトを含む文書をその文書をサポートするブラウザ
上で実行した場合の動作を示す説明図である。
FIG. 2 is an explanatory diagram of conversion of a dialogue operation by the markup document conversion method according to the embodiment of the present invention, and an explanation showing an operation when a document including a script is executed on a browser supporting the document. It is a figure.

【図3】本発明の実施の一形態のマークアップ文書変換
方式による対話動作の変換についての解説図であり、ス
クリプトを含む文書を、その文書をサポートしないブラ
ウザで表示・閲覧できるように変換した場合を示す説明
図である。
FIG. 3 is an explanatory diagram of conversion of an interactive operation by the markup document conversion method according to the embodiment of the present invention, in which a document including a script is converted so that it can be displayed / viewed by a browser that does not support the document. It is explanatory drawing which shows a case.

【図4】本発明の実施の一形態のマークアップ文書変換
方式における変換元となるBML文書の例を示す図であ
る。
FIG. 4 is a diagram showing an example of a BML document that is a conversion source in the markup document conversion method according to the embodiment of the present invention.

【図5】本発明の実施の一形態のマークアップ文書変換
方式におけるBML文書の表示例を示す図である。
FIG. 5 is a diagram showing a display example of a BML document in the markup document conversion system according to the embodiment of the present invention.

【図6】本発明の実施の一形態のマークアップ文書変換
方式における変換元文書読み込み手段によって抽出され
たマークアップ文書の例を示す図である。
FIG. 6 is a diagram showing an example of a markup document extracted by a conversion source document reading unit in the markup document conversion method according to the exemplary embodiment of the present invention.

【図7】本発明の実施の一形態のマークアップ文書変換
方式における変換元文書読み込み手段によって抽出され
たスクリプトの例を示す図である。
FIG. 7 is a diagram showing an example of a script extracted by a conversion source document reading unit in the markup document conversion system according to the embodiment of the present invention.

【図8】本発明の実施の一形態のマークアップ文書変換
方式における変換後のCHTML文書の例を示す図であ
る。
FIG. 8 is a diagram showing an example of a converted CHTML document in the markup document conversion system according to the embodiment of the present invention.

【図9】本発明の実施の一形態のマークアップ文書変換
方式におけるイベント変換手段の動作を示すフローチャ
ートである。
FIG. 9 is a flowchart showing the operation of the event conversion means in the markup document conversion system according to the embodiment of the present invention.

【図10】本発明の実施の一形態のマークアップ文書変
換方式におけるマークアップ言語変換手段で使用する変
換表を示す図である。
FIG. 10 is a diagram showing a conversion table used by the markup language conversion means in the markup document conversion system according to the embodiment of the present invention.

【図11】本発明の実施の一形態のマークアップ文書変
換方式における変換後のCHTML文書の表示例を示す
図である。
FIG. 11 is a diagram showing a display example of a converted CHTML document in the markup document conversion system according to the embodiment of the present invention.

【図12】本発明の実施の一形態のマークアップ文書変
換方式における送出されるフォームデータの例を示す図
である。
FIG. 12 is a diagram showing an example of form data transmitted in the markup document conversion system according to the embodiment of the present invention.

【図13】本発明の実施の一形態のマークアップ文書変
換方式におけるイベント処理手段の動作を示すフローチ
ャートである。
FIG. 13 is a flowchart showing the operation of the event processing means in the markup document conversion system according to the embodiment of the present invention.

【図14】本発明の実施の一形態のマークアップ文書変
換方式におけるイベント処理手段実行後のCHTML文
書の例を示す図である。
FIG. 14 is a diagram showing an example of a CHTML document after executing the event processing means in the markup document conversion system according to the embodiment of the present invention.

【図15】本発明の実施の一形態のマークアップ文書変
換方式におけるイベント変換手段の動作を示すフローチ
ャートである。
FIG. 15 is a flowchart showing an operation of an event conversion unit in the markup document conversion system according to the exemplary embodiment of the present invention.

【図16】本発明の実施の一形態のマークアップ文書変
換方式におけるイベント変換手段中のpostfiel
d要素の生成手段を示す図である。
FIG. 16 is a postfield in the event converting means in the markup document converting system according to the embodiment of the present invention.
It is a figure which shows the production | generation means of d element.

【図17】本発明の実施の一形態のマークアップ文書変
換方式におけるマークアップ言語変換手段データ使用す
る変換表を示す図である。
FIG. 17 is a diagram showing a conversion table used by markup language conversion means data in the markup document conversion system according to the embodiment of the present invention.

【図18】本発明の実施の一形態のマークアップ文書変
換方式における変換後のWML文書の表示例を示す図で
ある。
FIG. 18 is a diagram showing a display example of a WML document after conversion in the markup document conversion system according to the embodiment of the present invention.

【図19】本発明の実施の一形態のマークアップ文書変
換方式における送出されるフォームデータの例を示す図
である。
FIG. 19 is a diagram showing an example of form data transmitted in the markup document conversion system according to the embodiment of the present invention.

【図20】本発明の実施の一形態のマークアップ文書変
換方式におけるイベント処理手段実行後のWML文書の
例を示す図である。
FIG. 20 is a diagram showing an example of a WML document after execution of event processing means in the markup document conversion system according to the embodiment of the present invention.

【図21】本発明の実施の一形態のマークアップ文書変
換方式におけるイベント変換手段の動作を示すフローチ
ャートである。
FIG. 21 is a flowchart showing the operation of the event conversion means in the markup document conversion system according to the embodiment of the present invention.

【図22】本発明の実施の一形態のマークアップ文書変
換方式におけるフォーム送信用スクリプトの例を示す図
である。
FIG. 22 is a diagram showing an example of a form transmission script in the markup document conversion system according to the embodiment of the present invention.

【図23】本発明の実施の一形態のマークアップ文書変
換方式におけるマークアップ言語変換手段の変換規則
(要素変換)を示す説明図である。
FIG. 23 is an explanatory diagram showing conversion rules (element conversion) of the markup language conversion means in the markup document conversion system according to the embodiment of the present invention.

【図24】本発明の実施の一形態のマークアップ文書変
換方式におけるマークアップ言語変換手段の変換規則
(スタイル変換)を示す説明図である。
FIG. 24 is an explanatory diagram showing conversion rules (style conversion) of the markup language conversion means in the markup document conversion system according to the embodiment of the present invention.

【図25】本発明の実施の一形態のマークアップ文書変
換方式における変換後のHTML文書の例を示す図であ
る。
FIG. 25 is a diagram showing an example of an HTML document after conversion in the markup document conversion system according to the embodiment of the present invention.

【図26】本発明の実施の一形態のマークアップ文書変
換方式におけるイベント処理手段実行後のHTML文書
の例を示す図である。
FIG. 26 is a diagram showing an example of an HTML document after execution of event processing means in the markup document conversion system according to the embodiment of the present invention.

【図27】本発明の実施の一形態のマークアップ文書変
換方式における事前変換装置を含む場合の変換サーバの
構成を示すブロック図である。
FIG. 27 is a block diagram showing a configuration of a conversion server including a pre-conversion device in the markup document conversion system according to the embodiment of the present invention.

【図28】本発明の実施の一形態のマークアップ文書変
換方式における事前変換装置の構成を示すブロック図で
ある。
FIG. 28 is a block diagram showing a configuration of a pre-conversion device in the markup document conversion system according to the embodiment of the present invention.

【図29】本発明の実施の一形態のマークアップ文書変
換方式における修正済み文書変換装置の構成を示すブロ
ック図である。
FIG. 29 is a block diagram showing the configuration of a corrected document conversion device in the markup document conversion system according to the embodiment of the present invention.

【図30】本発明の実施の一形態のマークアップ文書変
換方式におけるBML文書の例を示す図である。
FIG. 30 is a diagram showing an example of a BML document in the markup document conversion system according to the embodiment of the present invention.

【図31】本発明の実施の一形態のマークアップ文書変
換方式におけるBML文書の表示例を示す図である。
FIG. 31 is a diagram showing a display example of a BML document in the markup document conversion system according to the embodiment of the present invention.

【図32】本発明の実施の一形態のマークアップ文書変
換方式における修正用変換済文書の例を示す図である。
FIG. 32 is a diagram showing an example of a corrected converted document in the markup document conversion system according to the embodiment of the present invention.

【図33】本発明の実施の一形態のマークアップ文書変
換方式における修正済み文書の例を示す図である。
FIG. 33 is a diagram showing an example of a corrected document in the markup document conversion system according to the embodiment of the present invention.

【図34】本発明の実施の一形態のマークアップ文書変
換方式における変換後のCHTML文書の例を示す図で
ある。
FIG. 34 is a diagram showing an example of a converted CHTML document in the markup document conversion system according to the embodiment of the present invention.

【図35】本発明の実施の一形態のマークアップ文書変
換方式におけるイベント処理手段実行後のCHTML文
書の例を示す図である。
FIG. 35 is a diagram showing an example of a CHTML document after executing the event processing means in the markup document conversion system according to the embodiment of the present invention.

【図36】本発明の実施の一形態のマークアップ文書変
換方式における静的フォーマット変換手段の変換規則を
示す説明図である。
FIG. 36 is an explanatory diagram showing conversion rules of the static format conversion means in the markup document conversion system according to the embodiment of the present invention.

【図37】本発明の実施の一形態のマークアップ文書変
換方式における動的フォーマット変換手段の変換規則を
示す説明図である。
FIG. 37 is an explanatory diagram showing conversion rules of the dynamic format conversion means in the markup document conversion system according to the embodiment of the present invention.

【図38】本発明の実施の一形態のマークアップ文書変
換方式における変換後のCHTML文書の表示例を示す
図である。
FIG. 38 is a diagram showing a display example of a converted CHTML document in the markup document conversion system according to the embodiment of the present invention.

【図39】本発明の実施の一形態のマークアップ文書変
換方式において送出されるフォームデータの例を示す図
である。
FIG. 39 is a diagram showing an example of form data transmitted in the markup document conversion system according to the embodiment of the present invention.

【図40】本発明の実施の一形態のマークアップ文書変
換方式における双方向サーバ通信手段のインタフェース
を示す説明図である。
FIG. 40 is an explanatory diagram showing an interface of a bidirectional server communication unit in the markup document conversion system according to the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

11……変換元文書、12……変換装置、13……ブラ
ウザ、14……変換元文書読み込み手段、17……スク
リプト実行手段、18……イベント変換手段、19……
マークアップ言語変換手段、22……イベント処理手
段、51……事前変換装置、53……文書編集装置、5
5……修正済み文書変換配信装置、61……差分反映手
段、65……差分生成手段、66……双方向サーバ通信
手段。
11 ... conversion source document, 12 ... conversion device, 13 ... browser, 14 ... conversion source document reading means, 17 ... script execution means, 18 ... event conversion means, 19 ...
Markup language conversion means, 22 ... Event processing means, 51 ... Prior conversion device, 53 ... Document editing device, 5
5 ... Corrected document conversion / delivery device, 61 ... Difference reflecting means, 65 ... Difference generating means, 66 ... Bidirectional server communication means.

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 手続き型スクリプト言語を内包するマー
クアップ言語で記述された文書を、異なるマークアップ
言語で記述された文書に変換するマークアップ文書変換
方式であって、 前記異なるマークアップ言語で記述された文書に変換す
る際に、変換元のマークアップ言語に含まれている手続
き型スクリプト言語を、文書を配信するサーバー上の変
換装置で実行することを特徴とするマークアップ文書変
換方式。
1. A markup document conversion method for converting a document described in a markup language including a procedural script language into a document described in a different markup language, wherein the document is described in the different markup language. A markup document conversion method in which a procedural script language included in a markup language of a conversion source is executed by a conversion device on a server that distributes the document when the document is converted into a converted document.
【請求項2】 変換元のマークアップ言語がBML(放
送用マークアップ言語)、変換後マークアップ言語がH
TML(ハイパーテキストマークアップ言語)であるこ
とを特徴とする請求項1記載のマークアップ文書変換方
式。
2. The markup language of the conversion source is BML (markup language for broadcasting), and the markup language after conversion is H.
The markup document conversion method according to claim 1, wherein the markup document conversion method is TML (Hypertext Markup Language).
【請求項3】 変換元のマークアップ言語がBML(放
送用マークアップ言語)、変換後マークアップ言語がi
モード用HTMLであることを特徴とする請求項1記載
のマークアップ文書変換方式。
3. The conversion source markup language is BML (broadcast markup language), and the converted markup language is i.
The markup document conversion method according to claim 1, wherein the markup document conversion method is HTML for mode.
【請求項4】 変換元のマークアップ言語がBML(放
送用マークアップ言語)、変換後マークアップ言語がJ
Sky Web用HTMLであることを特徴とする請
求項1記載のマークアップ文書変換方式。
4. The markup language of the conversion source is BML (markup language for broadcasting), and the markup language after conversion is J.
The markup document conversion method according to claim 1, wherein the markup document conversion method is HTML for Sky Web.
【請求項5】 変換元のマークアップ言語がBML(放
送用マークアップ言語)、変換後マークアップ言語がW
MLであることを特徴とする請求項1記載のマークアッ
プ文書変換方式。
5. The markup language of the conversion source is BML (markup language for broadcasting), and the markup language after conversion is W.
The markup document conversion method according to claim 1, wherein the markup document conversion method is ML.
【請求項6】 変換元のマークアップ言語に含まれるo
nclick属性等の固有イベントを、変換先マークア
ップ言語であるHTMLのform要素とinput要
素に変換することを特徴とする請求項2乃至4の何れか
に記載のマークアップ文書変換方式。
6. Included in the markup language of the conversion source
5. The markup document conversion method according to claim 2, wherein a unique event such as an nclick attribute is converted into an HTML form element and an input element which are target conversion markup languages.
【請求項7】 変換元のマークアップ言語に含まれるo
nclick属性等の固有イベントを、変換先マークア
ップ言語であるWMLのdo要素、go要素、post
field要素に変換することを特徴とする請求項5記
載のマークアップ文書変換方式。
7. The o included in the markup language of the conversion source
Unique events such as the nclick attribute are converted to the markup language WML do element, go element, post
The markup document conversion method according to claim 5, wherein conversion is performed into a field element.
【請求項8】 固有イベントをinput要素に変換す
る際に、固有イベントの属性として記述されたスクリプ
トにinput要素のid属性には使用されない文字を
付加したものをname属性の値として設定し、ユーザ
が起動したスクリプトを変換装置側で判別することを特
徴とする請求項6記載のマークアップ文書変換方式。
8. When converting a unique event into an input element, a script described as an attribute of the unique event with a character that is not used in the id attribute of the input element is set as the value of the name attribute and set by the user. 7. The markup document conversion system according to claim 6, wherein the conversion device side determines the script started by the.
【請求項9】 固有イベントをpostfield属性
に変換する際に、固有イベントの属性として記述された
スクリプトにinput要素のid属性には使用されな
い文字を付加したものをname属性の値として設定
し、ユーザが起動したスクリプトを変換装置側で判別す
ることを特徴とする請求項7記載のマークアップ文書変
換方式。
9. When converting a unique event into a postfield attribute, a character described as an attribute of the unique event with a character not used in the id attribute of the input element is set as the value of the name attribute, and the user is set. 8. The markup document conversion method according to claim 7, wherein the script started by is determined on the conversion device side.
【請求項10】 前記変換装置は、変換元文書を読み込
み、前記変換元文書に含まれるスクリプト部分とマーク
アップ部分に分割する変換元文書読み込み手段と、前記
変換元文書読み込み手段によって分割された前記スクリ
プト部分、またはユーザから送信されたデータから取り
出したスクリプト部分を読み込んで実行するスクリプト
実行手段と、前記マークアップ部分を異なるマークアッ
プ言語で記述された変換済み文書に変換するイベント変
換手段およびマークアップ言語変換手段と、ブラウザに
送られユーザに対し表示された前記変換済文書におい
て、前記ユーザから情報を送信する要素が起動される
と、前記ユーザから送信されたデータから設定されてい
たスクリプト部分を取り出し、そのスクリプト部分を前
記スクリプト実行手段で実行し、続いて前記イベント変
換手段、前記マークアップ言語変換手段を実行して変換
済文書を更新し、再び前記ブラウザへ送るイベント処理
手段とを備えていることを特徴とする請求項1乃至9の
何れかに記載のマークアップ文書変換方式。
10. The conversion device reads a conversion source document and divides it into a script part and a markup part included in the conversion source document, and the conversion source document reading part. Script execution means for reading and executing a script part or a script part extracted from data sent from a user, and event conversion means and markup for converting the markup part into a converted document described in a different markup language. In the language conversion means and the converted document sent to the browser and displayed to the user, when the element for transmitting information from the user is activated, the script part set from the data transmitted from the user is displayed. Take out the script part with the script execution means 10. An event processing means for executing the event, and subsequently executing the event conversion means and the markup language conversion means to update the converted document and send again to the browser. The markup document conversion method described in any of 1.
【請求項11】 変換元マークアップ言語に含まれる固
有イベントの値を、そのイベントが発火したことを特定
するフォームデータをポストするスクリプトに置き換え
ることを特徴とする請求項2記載のマークアップ文書変
換方式。
11. The markup document conversion according to claim 2, wherein the value of the unique event included in the conversion source markup language is replaced with a script that posts form data that specifies that the event has been fired. method.
【請求項12】 変換元マークアップ言語に含まれてい
るスクリプト言語の外部機器・外部プログラムを操作す
るインタフェースを実装するプログラムを、文書を配信
するサーバ上の変換装置から呼び出すことにより、スク
リプトによる外部機器・外部プログラムの操作も再現す
ることを特徴とする請求項2乃至5の何れかに記載のマ
ークアップ文書変換方式。
12. A script-based external device that calls a program that implements an interface for operating an external device / external program in a script language included in the conversion source markup language from a conversion device on a server that distributes a document. 6. The markup document conversion system according to claim 2, wherein the operation of the device / external program is also reproduced.
【請求項13】 変換元マークアップ言語がBMLであ
り、BML文書中に含まれている双方向サーバとの通信
インタフェースを実装するための双方向サーバ通信手段
を変換装置内に持たせることにより、スクリプト中に記
述された双方向機能の動作を再現することを特徴とする
請求項12記載のマークアップ文書変換方式。
13. The conversion source markup language is BML, and bidirectional server communication means for implementing a communication interface with a bidirectional server included in a BML document is provided in the conversion device. 13. The markup document conversion method according to claim 12, wherein the operation of the bidirectional function described in the script is reproduced.
【請求項14】 変換装置によって自動的に変換元マー
クアップ言語を変換して配信するのではなく、事前変換
装置によって予め修正用変換済み文書を生成し、修正用
変換済み文書を文書編集装置によって修正し、それによ
って得られた修正済み文書を配信する修正済み文書変換
装置を設けることにより、人手または他のプログラムに
よる変換結果の修正が可能であることを特徴とする請求
項1乃至13の何れかに記載のマークアップ文書変換方
式。
14. The conversion device does not automatically convert and distribute the conversion source markup language, but a pre-conversion device generates a correction converted document in advance, and the correction converted document is converted by the document editing device. 14. The conversion result can be corrected manually or by another program by providing a corrected document conversion device that corrects and delivers the corrected document obtained by the correction. Markup document conversion method described in crab.
【請求項15】 修正済み文書変換装置に差分生成手段
と差分反映手段とスクリプト実行手段を有し、修正済み
文書中の、事前変換装置によって生成された修正個所の
内容を保存しつつ、変換元文書に含まれているスクリプ
トを実行して変換元文書の動作を再現することを特徴と
する請求項14記載のマークアップ文書変換方式。
15. The modified document conversion apparatus has a difference generation means, a difference reflection means, and a script execution means, and stores the content of the modified part generated by the pre-conversion apparatus in the modified document while converting the conversion source. 15. The markup document conversion method according to claim 14, wherein the script included in the document is executed to reproduce the operation of the conversion source document.
JP2002078020A 2001-04-10 2002-03-20 Markup document conversion method Expired - Fee Related JP4322462B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002078020A JP4322462B2 (en) 2001-04-10 2002-03-20 Markup document conversion method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001111345 2001-04-10
JP2001-111345 2001-04-10
JP2002078020A JP4322462B2 (en) 2001-04-10 2002-03-20 Markup document conversion method

Publications (2)

Publication Number Publication Date
JP2003036223A true JP2003036223A (en) 2003-02-07
JP4322462B2 JP4322462B2 (en) 2009-09-02

Family

ID=26613364

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002078020A Expired - Fee Related JP4322462B2 (en) 2001-04-10 2002-03-20 Markup document conversion method

Country Status (1)

Country Link
JP (1) JP4322462B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007535748A (en) * 2004-04-30 2007-12-06 マイクロソフト コーポレーション Method and apparatus for processing documents
JP2009199459A (en) * 2008-02-22 2009-09-03 Ntt Docomo Inc Content provision system, server apparatus and content provision method
JP2010518521A (en) * 2007-02-09 2010-05-27 ノバラ・インコーポレイテッド Method and apparatus for providing information content to be displayed on a client device
JP2011065385A (en) * 2009-09-16 2011-03-31 Access Co Ltd Device, method and program for converting markup language document
US8332815B2 (en) 2009-03-17 2012-12-11 International Business Machines Corporation Enhanced development tool for utilizing a javascript object notation (JSON) bridge for non-java-based component communication within java-based composite applications
US9928306B2 (en) 2014-03-31 2018-03-27 Fujitsu Limited Web page editing method, apparatus, and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09222974A (en) * 1996-02-16 1997-08-26 Fuji Xerox Co Ltd Language interpretation display method, device and system using the same
JPH09223062A (en) * 1996-02-16 1997-08-26 Fuji Xerox Co Ltd Customization method for service offering form and server device applicable to execution of the customization method
JP2000076473A (en) * 1998-04-07 2000-03-14 Fuji Xerox Co Ltd Automatic document re-authoring method and system therefor
JP2001005716A (en) * 1999-06-18 2001-01-12 Nec Corp Method for converting html document into mheg document

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09222974A (en) * 1996-02-16 1997-08-26 Fuji Xerox Co Ltd Language interpretation display method, device and system using the same
JPH09223062A (en) * 1996-02-16 1997-08-26 Fuji Xerox Co Ltd Customization method for service offering form and server device applicable to execution of the customization method
JP2000076473A (en) * 1998-04-07 2000-03-14 Fuji Xerox Co Ltd Automatic document re-authoring method and system therefor
JP2001005716A (en) * 1999-06-18 2001-01-12 Nec Corp Method for converting html document into mheg document

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
日経インターネットテクノロジ, CSND200100108017, February 2001 (2001-02-01), JP, pages 148 - 151, ISSN: 0000720472 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007535748A (en) * 2004-04-30 2007-12-06 マイクロソフト コーポレーション Method and apparatus for processing documents
JP4854658B2 (en) * 2004-04-30 2012-01-18 マイクロソフト コーポレーション Method and apparatus for processing documents
JP2010518521A (en) * 2007-02-09 2010-05-27 ノバラ・インコーポレイテッド Method and apparatus for providing information content to be displayed on a client device
JP2009199459A (en) * 2008-02-22 2009-09-03 Ntt Docomo Inc Content provision system, server apparatus and content provision method
US8332815B2 (en) 2009-03-17 2012-12-11 International Business Machines Corporation Enhanced development tool for utilizing a javascript object notation (JSON) bridge for non-java-based component communication within java-based composite applications
JP2011065385A (en) * 2009-09-16 2011-03-31 Access Co Ltd Device, method and program for converting markup language document
US9928306B2 (en) 2014-03-31 2018-03-27 Fujitsu Limited Web page editing method, apparatus, and medium

Also Published As

Publication number Publication date
JP4322462B2 (en) 2009-09-02

Similar Documents

Publication Publication Date Title
US7685252B1 (en) Methods and systems for multi-modal browsing and implementation of a conversational markup language
US8635218B2 (en) Generation of XSLT style sheets for different portable devices
CN101615181B (en) System and method for establishing internationalized network application
US20030046316A1 (en) Systems and methods for providing conversational computing via javaserver pages and javabeans
US7493560B1 (en) Definition links in online documentation
US7657828B2 (en) Method and apparatus for coupling a visual browser to a voice browser
JP3936718B2 (en) System and method for accessing Internet content
US7610406B2 (en) Updating a web user interface on a client device
US20020174147A1 (en) System and method for transcoding information for an audio or limited display user interface
US20030145062A1 (en) Data conversion server for voice browsing system
US20060168095A1 (en) Multi-modal information delivery system
GB2317070A (en) Voice processing/internet system
US7143359B2 (en) Emulating advanced graphical user interface elements in a hypermedia content browser
CN101086738A (en) Content converting device, content display device, content browsing device, content converting method, and content browsing method
US20030097265A1 (en) Multimodal document reception apparatus and multimodal document transmission apparatus, multimodal document transmission/reception system, their control method, and program
JP2003186792A (en) Method for displaying message and its server and client
JP2003036223A (en) Markup document conversion method
US6912579B2 (en) System and method for controlling an apparatus having a dedicated user interface from a browser
JP6664536B1 (en) Web form input support system
JP4140878B2 (en) Method and system for implementing multimodal browsing and conversational markup languages
US20010042079A1 (en) Display control with active hypertext documents
Honkala et al. Xforms in x-smiles
JPH09265431A (en) Method and device for editing document, and client device including the device
Blackstock BA Sc., University of British Columbia, 1991
JP2001273214A (en) Web page decoding system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050629

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050829

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050920

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051017

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20051017

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20051017

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20051117

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20060310

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070117

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080604

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090417

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20090508

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090603

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120612

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120612

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130612

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees