JP3830686B2 - Structured document processing apparatus and structured document processing method - Google Patents

Structured document processing apparatus and structured document processing method Download PDF

Info

Publication number
JP3830686B2
JP3830686B2 JP04554499A JP4554499A JP3830686B2 JP 3830686 B2 JP3830686 B2 JP 3830686B2 JP 04554499 A JP04554499 A JP 04554499A JP 4554499 A JP4554499 A JP 4554499A JP 3830686 B2 JP3830686 B2 JP 3830686B2
Authority
JP
Japan
Prior art keywords
structured document
logical structure
style
input
structure element
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.)
Expired - Fee Related
Application number
JP04554499A
Other languages
Japanese (ja)
Other versions
JP2000242641A (en
Inventor
修 森口
誠 今村
克志 鈴木
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP04554499A priority Critical patent/JP3830686B2/en
Publication of JP2000242641A publication Critical patent/JP2000242641A/en
Application granted granted Critical
Publication of JP3830686B2 publication Critical patent/JP3830686B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、SGML(Standard Generalized Markup Language)、XML(eXtensible Markup Language)などによる構造化文書の一部または全部を表組レイアウトで表示する構造化文書処理装置および構造化文書処理方法に関するものである。
【0002】
【従来の技術】
図71、図72および図73は、例えば特開平10−187726号公報に記載された従来の構造化文書処理方法(第1の従来の技術)について説明する図である。この従来の構造化文書処理方法は、構造化文書を編集するソフトウェアにより構造化文書を表組レイアウトで表示するものである。
【0003】
この従来の構造化文書処理方法においては、図71に示すようなタグ(今の場合、「段落」、「TBLHEAD」、「TBLROWS」など)による構造化文書の各論理構造要素が、図72に示すようなタグ名と構造枠および構造名の表示指定との対応関係に応じて、構造枠や構造名とともに表示される。例えば、タグ名が「TBLCELL」である論理構造要素は構造枠とともに表示され、その構造名は表示されない。また、タグ名が「段落」である論理構造要素については、構造枠表示指定に応じて表示/非表示が決定される。
【0004】
このようにして、図71に示すように表組可能な物理構造を有する構造化文書が例えば図73に示すように表組レイアウトで表示される。なお、表組可能な物理構造を有する構造化文書とは、一連の構造要素の各構造要素が同一な一連の構造要素でそれぞれ構成されているという2階層の繰り返し構造で実際に記述されている構造化文書のことである。すなわち、例えば6個の下位の論理構造要素で構成される論理構造要素を3行2列の表組レイアウトで表示する場合、6個の下位の論理構造要素を3個ずつに区切るため、3個の下位の論理構造要素で構成される行にそれぞれ相当する2つの物理構造要素が構造化文書に記述される。
【0005】
次に、図74は、例えば特開平10−214265号公報に記載された従来の構造化文書処理装置(第2の従来の技術)を示すブロック図である。図において、512は入力文書511の文書型が定義されている入力文書文書型定義書である。なお、文書型の定義とは、構造化文書において、構造要素識別子によって識別される文書中の構成要素の出現順序を規定するものである。
【0006】
513は、入力文書文書型定義書512に記述されている入力文書511の文書型の定義を参照しながら入力文書511の論理構造を解析した後、その論理構造を表現する木構造である入力文書構造木を作成する文書構造解析手段である。514は文書構造解析手段513により作成された入力文書構造木を記憶する入力文書構造木バッファである。
【0007】
515は、文書構造木に対する操作命令が記述された文書構造操作命令書である。文書構造操作命令書には、文書の変換や文書の正しさの検証など、ユーザが目的とする構造化文書の処理に必要な文書構造に対する手続きが、文書構造の操作命令として記述される。516は、文書構造操作命令書515に記述された操作命令を解釈実行し、出力文書の論理構造を表現する出力文書構造木を入力文書構造木から生成する文書構造操作命令解釈実行手段である。
【0008】
517は、文書構造操作命令書515に記述された所定の操作命令に従って、入力文書構造木バッファ514に記憶された入力文書構造木から、構造要素識別子が指定する文書の内容を抽出する構造要素抽出手段である。518は、文書構造操作命令書515に記述された所定の操作命令に従って、その構造要素識別子が指定する文書の内容に対する制約条件に基づいて文書の処理内容を制御する条件判定手段である。
【0009】
519は、文書構造操作命令書515に記述された所定の操作命令に従って、文書構造要素が繰り返し出現する場合に、その構造要素識別子が指定するそれぞれの文書の内容に対する操作命令を解釈実行する繰り返し構造処理手段である。520は、文書構造操作命令書515に記述された所定の操作命令に従って、構造要素識別子が指定する文書の内容を出力文書構造木に挿入する構造要素代入手段である。
【0010】
521は、文書構造操作命令解釈実行手段516による操作命令の解釈実行によって作成された出力文書構造木を記憶する出力文書構造木バッファである。522は、当該装置より出力される出力文書524の文書型が定義されている出力文書文書型定義書である。523は、出力文書文書型定義書522に記述された文書型の定義を参照して、出力文書構造木より出力文書を生成する文書構造生成手段である。
【0011】
次に動作について説明する。
文書構造解析手段513は、入力された入力文書511を、入力文書文書型定義書512に従って入力文書構造木に変換し、その入力文書構造木を入力文書構造木バッファ514に記憶させる。
【0012】
次に、文章構造操作命令解釈実行手段516は、その入力文書構造木に対して、文書構造操作命令書515に記述された操作などを実行し、操作の実行結果である出力文書構造木を出力文書構造木バッファ521に記憶させる。
【0013】
そして、文書構造生成手段523は、出力文書構造木を、出力文書文書型定義書522に従って構造化文書である出力文書524に変換し、その出力文書524を出力する。
【0014】
このようにして、この従来の構造化文書処理装置においては、論理構造要素間の制約条件のチェックや複数の文書に対する変換、合成、分割などの操作が実行される。
【0015】
なお、以上のものの他、従来の技術としては、特開平6−131339号公報に記載のもの、特開平7−6162号公報に記載のもの、特開平10−116270号公報に記載のもの、特開平10−116275号公報に記載のもの、特開平10−116281号公報に記載のもの、特開平10−171809号公報に記載のものなどがある。
【0016】
【発明が解決しようとする課題】
従来の構造化文書処理方法(第1の従来の技術)および構造化文書処理装置(第2の従来の技術)は以上のように構成されているので、第1の従来の技術では、表組可能な物理構造を有していない構造化文書をそのまま表組レイアウトで表示することは困難であり、表組可能な物理構造で予め構造化文書を設計しなければならず、表組レイアウトで表示をする構造化文書の設計を簡単化することが困難であるなどの課題があった。
【0017】
また、構造化文書において、表組の方向の設定、表見出しの記述、表における行方向または列方向での複数セルの結合などの組版指定を行うには複雑なタグなどの記述をする必要があり、熟練者ではない者が簡単かつ正確に組版指定をすることが困難であるという課題があった。
【0018】
一方、第2の従来の技術では、文書構造操作命令書に記載の条件とその条件に対応する命令文に従って、論理構造要素のタグ名と内容が条件を満たす場合に命令文を解釈実行するが、制約条件のチェックを実行した場合、出力文書にそのチェックの結果が記載されるため、文書設計者は出力文書でその結果を確認しなければならず、論理構造要素の内容を入力した後瞬時に制約条件のチェックの結果を確認することが困難であるなどの課題があった。
【0019】
また、文書構造操作命令書の命令文に従って論理構造要素の内容を変更する場合、その論理構造要素の内容の変更に起因して、他の命令文に従って再度その論理構造要素の内容が変更されるという命令文の循環実行が発生する可能性があるが、文書構造操作命令書の設計時に、その命令文の循環実行を検知することが困難であるという課題があった。
【0020】
この発明は上記のような課題を解決するためになされたもので、構造化文書を解析して論理構造を特定し、特定した論理構造を表組レイアウトに変換する変換ルールを記述したスタイルシートを、表組レイアウトの範囲などを指定する所定のスタイル表に基づいて作成し、そのスタイルシートに基づいて構造化文書を変換し、表示するようにして、表組可能な物理構造ではない構造化文書に対して、スタイル表に基づいて各種組版を簡単に指定することができる構造化文書処理装置および構造化文書処理方法を得ることを目的とする。
【0021】
また、この発明は、グラフィカルユーザインタフェース(GUI)に基づいて入力欄に設定されたデータを表示するとともに、その入力欄に対してデータが入力された場合、その入力欄に対応する論理構造要素に対する所定の制約条件をそのデータが満足するか否かを検証し、その制約条件が成立した場合に、その制約条件に対応する命令文に基づいて所定の値をその論理構造要素に設定するようにして、論理構造要素の内容を入力した後瞬時に制約条件のチェックの結果を確認することができる構造化文書処理装置および構造化文書処理方法を得ることを目的とする。
【0022】
さらに、この発明は、各論理構造要素に対する所定の制約条件とその所定の制約条件に対応する命令文との条件−実行関係を順次検索して条件−実行関係の循環が発生しているか否かを検証するようにして、スタイル表設計時に、その命令文の循環実行を検知することができる構造化文書処理装置および構造化文書処理方法を得ることを目的とする。
【0024】
【課題を解決するための手段】
この発明に係る構造化文書処理装置は、構造化文書を解析し、その構造化文書の論理構造を特定する論理構造特定手段と、表組レイアウトの範囲および形態、並びにGUIに基づく構造化文書へのデータ入力の入力形式を指定するスタイル表に基づいて、論理構造特定手段により特定された構造化文書の論理構造の一部または全部を表組レイアウトに変換する変換ルール、および入力形式に応じた入力欄の記述を出力するための命令文を記述したスタイルシートを作成するスタイルシート作成手段と、スタイルシートに基づいて構造化文書を変換し、入力欄とともに表示し、GUIに基づいて入力欄に対して設定されたデータをその入力欄に表示する構造化文書表示手段と、入力欄に表示されたデータを構造化文書に書き込む入力データ書込手段とを備えるものである。
【0025】
この発明に係る構造化文書処理装置は、論理構造が複数個の同一の論理構造要素を有し、かつ、それらの論理構造要素に対応する入力欄のうちのいずれか1つに対してデータが入力された場合、複数個の同一の論理構造要素のうちの他の論理構造要素に対応する入力欄に、そのデータを表示するものである。
【0026】
この発明に係る構造化文書処理装置は、GUIに基づいて入力欄に対してデータが入力された場合、そのデータについて、その入力欄に対応する論理構造要素に対する所定の条件が成立するか否かを検証するものである。
【0027】
この発明に係る構造化文書処理装置は、入力されたデータについて、入力欄に対応する論理構造要素に対する所定の条件が成立した場合に、その条件に対応する実行文に基づいて所定の値をその論理構造要素に設定するものである。
【0028】
この発明に係る構造化文書処理装置は、各論理構造要素に対する所定の条件とその所定の条件に対応する実行文との条件−実行関係を調べ、条件−実行関係の循環が発生しているか否かを検証する循環検証手段を備えるものである。
【0029】
この発明に係る構造化文書処理装置は、スタイルシートに記述される変換ルールにより、論理構造の終端の論理構造要素に対応して表組レイアウトのための命令文を生成するものである。
【0030】
この発明に係る構造化文書処理装置は、構造化文書の論理構造に基づいてスタイル表の雛形を生成するスタイル表雛形生成手段を備えるものである。
【0031】
この発明に係る構造化文書処理装置は、他のスタイル表に基づいてスタイル表の雛形を変更し、新たなスタイル表の雛形を生成するスタイル表雛形変更手段を備えるものである。
【0032】
この発明に係る構造化文書処理装置は、スタイル表雛形生成手段が、構造化文書のうちの表組レイアウトの可能な部分については表組レイアウトとしてスタイル表の雛形を生成するものである。
【0033】
この発明に係る構造化文書処理装置は、所定の表示部および入力部を制御してGUIに基づいてスタイル表を作成するスタイル表作成手段を備えるものである。
【0034】
この発明に係る構造化文書処理方法は、論理構造特定手段により、前記構造化文書を解析し、その構造化文書の論理構造を特定するステップと、スタイルシート作成手段により、前記表組レイアウトの範囲および形態、並びにGUIに基づく構造化文書へのデータ入力の入力形式を指定するスタイル表に基づいて、前記論理構造特定手段により特定された前記構造化文書の論理構造の一部または全部を表組レイアウトに変換する変換ルール、および前記入力形式に応じた入力欄の記述を出力するための命令文を記述したスタイルシートを作成するステップと、前記スタイルシートに基づいて前記構造化文書を変換し、表示するステップと、構造化文書表示手段により、前記スタイルシートに基づいて前記構造化文書を変換し、前記入力欄とともに表示し、前記GUIに基づいて前記入力欄に対して設定されたデータをその入力欄に表示するステップと、入力データ書込手段により、前記入力欄に表示されたデータを前記構造化文書に書き込むステップとを備えるものである。
【0035】
【発明の実施の形態】
以下、この発明の実施の一形態を説明する。
実施の形態1.
図1は、この発明の実施の形態1による構造化文書処理装置1の構成を示すブロック図である。図において、1は構造化文書処理装置であり、2はSGMLやXMLなどに基づいて記述された構造化文書21、構造化文書21のうち表組レイアウトで表示する範囲および表示の形態を指定するスタイル表22、構造化文書処理装置1により作成される、上述の文書構造操作命令書に対応する表示用スタイルシート(スタイルシート)23などを保存するハードディスクドライブ装置などのデータ保存部であり、3は構造化文書21の一部または全部を表組レイアウトで表示するディスプレイなどの表示部である。
【0036】
構造化文書処理装置1において、11は構造化文書21を解析してその論理構造を特定する構造化文書解析手段(論理構造特定手段)である。12は、スタイル表22から、表組レイアウトで表示する構造化文書21の範囲および表示の形態を特定するスタイル表解析手段(スタイルシート作成手段、循環検証手段)である。
【0037】
13は、表組レイアウトで表示する構造化文書21の範囲および表示の形態の情報に基づいて、構造化文書21をその論理構造に対応する表組レイアウトに変換する変換ルールを生成し、構造化文書21の論理構造における終端の論理構造要素に対してその変換ルールを付加して表示用スタイルシート23のための論理構造を生成する表組構造変換手段(スタイルシート作成手段)である。14は、表示用スタイルシート23の論理構造に基づいてSGMLなどで命令文を記述して表示用スタイルシート23を作成し、データ保存部2に保存する表示用スタイルシート作成手段(スタイルシート作成手段)である。
【0038】
15は、構造化文書21を、表示用スタイルシート23に記述された命令文に従って表組レイアウトでの表示用データに変換し、その表示用データに対応する画像を表示部3に表示する構造化文書表示手段である。
【0039】
次に動作について説明する。
図2は、実施の形態1による構造化文書処理装置1の動作について説明するフローチャートである。図3は、SGMLに基づいて記述された構造化文書21の一例を示す図であり、図4は、図3の構造化文書21の論理構造に対応する構造木を示す図である。図5は、図3の構造化文書21を表組レイアウトで表示するためのスタイル表の一例を示す図であり、図6は、図5のスタイル表22に対応する構造木を示す図である。図7は、図4の構造化文書21に対応する構造木および図6のスタイル表22に対応する構造木より作成される、表示用スタイルシート23に対応する構造木の一例を示す図であり、図8は、図7の構造木に従って作成された表示用スタイルシート23の一例を示す図である。図9は、図8の表示用スタイルシート23に従って、図3の構造化文書21を変換した表示用データの一例を示す図であり、図10は、図9の表示用データに対応する画像の一例を示す図である。
【0040】
まずステップST1において、構造化文書処理装置1の構造化文書解析手段11は、データ保存部2から構造化文書21を読み出し、その構造化文書21の論理構造を特定し、その論理構造の情報を表組構造変換手段13に供給する。
【0041】
例えば、図3に示す構造化文書21では、「<!DOCTYPE」なる記述105から「]>」なる記述108までが文書型定義部分(DTD)であり、この部分に論理構造要素間の関係が定義される。例えば、記述106により、「ORDER.SPEC」なる論理構造要素が「HEADER」、「BASIC.ITEM」および「DESIGN.ITEM」なる3つの下位の論理構造要素から構成されることが定義されている。また、記述107により、「SPEED」なる論理構造要素が下位の論理構造要素を持たない終端の要素であることが定義されている。記述108以降の部分は文書インスタンスと呼ばれる部分であり、文書型定義で定義された構造に従って実際の文書の内容が記述される。なお、文書インスタンスにおいては、文書内容が論理構造要素毎にタグで区切って記述される。
【0042】
記述109は開始タグであり、タグ名が「ORDER」である論理構造要素の内容110(今の場合「XYZ12345」)がここから開始することを示している。そして記述111は終了タグであり、タグ名が「ORDER」である論理構造要素の内容110がここで終了することを示している。
【0043】
そして、構造化文書解析手段11によりこの構造化文書21の論理構造が特定され、図4に示すような構造木で表現される。この構造木においては、論理構造要素「ORDER.SPEC」112などの論理構造要素がノードとして表現され、論理構造要素「HEADER」113などの下位の論理構造要素との対応関係が、ノード間を結ぶ線として表現されている。なお、リーフ114は、論理構造要素「ORDER」が終端の要素であることを表わし、その終端の論理構造要素の内容(論理構造要素「ORDER」の場合は「XYZ12345」)を有する。
【0044】
次にステップST2において、スタイル表解析手段12は、データ保存部2からスタイル表22を読み出し、構造化文書21のうち表組レイアウトで表示する範囲および表示の形態を特定し、それらの情報を表組構造変換手段13に供給する。
【0045】
例えば、図5に示すスタイル表22では、列115がタグ名の列であり、列116が見出しの列である。見出しは、論理構造要素を識別するために表示する名前であり、見出しが指定されなかった場合にはタグ名を見出しとして使用する。なお、見出し文字列中の特殊文字は、「&」と「;」で特殊文字名を挟んで記述するようにする。例えば「&br;」は改行文字を表わす。
【0046】
列117は表組指定の列である。図5においては、タグ名「ORDER」を表組指定「TAB1」で開始位置とし、タグ名「SPEED」を表組指定「/TAB1」で終了位置として指定した範囲が、1つの表として表組レイアウトで表示する範囲とされる。そして、「TAB1」の引数により、表組レイアウトの形態を指定する表組みプロパティの値が指定される。
【0047】
まず「TAB1」の第1および第2引数により、表組み方向とその方向のセル数がそれぞれ指定される。なお、表組み方向は、横方向を示す値「H」または縦方向を示す値「V」で指定される。また、セルとは表を構成する最小の単位であり、表において行番号および列番号で特定されるものである。従って、例えば「TAB1」の第1および第2引数が「H,3」である場合、横方向に3列の表組みとなる。
【0048】
次に、「TAB1」の第3、第4および第5引数により、表の枠線の太さ、セル間の間隔、およびセル内に表示する文字列の周囲のマージンがピクセル単位でそれぞれ指定される。また「TAB1」の第6および第7引数により、見出しセルの背景色とそれ以外のセルの背景色がそれぞれ指定される。なお、「TAB1」の第8引数はオプションであり、実施の形態4で説明する。オプションを使用しない場合には第8引数を「−」としておく。
【0049】
そして、このスタイル表22の構造がスタイル表解析手段12により特定され、図6に示すような構造木で表現される。各ノード「RULE」118はスタイル表22の各行に対応するものであり、ノード「RULE」118にリンクする各ノード「TARGET−ELEMENT」119はスタイル表22のタグ名の列115に対応するものである。そして、ノード「TARGET−ELEMENT」119にリンクするリーフ120は、各タグ名の内容を有する。すなわち、各リーフ120に、タグ名の内容である「ORDER.SPEC」、「HEADER」、「BASIC.ITEM」、「ORDER」、「PROJECT」、・・・、「SPEED」がそれぞれ保持される。
【0050】
さらに、ノード「RULE」118にリンクする各ノード「LABEL」121はスタイル表22の見出しの列116に対応するものであり、ノード「RULE」118にリンクする各ノード「TABLE」122はスタイル表22の表組指定の列117に対応するものである。そして、ノード「LABEL」121およびノード「TABLE」122にリンクされるリーフ120は、見出しの内容および表組指定の内容をそれぞれ有する。なお、スタイル表22におけるタグ名、並びにそのタグ名に対応する見出しおよび表組指定についての内容は、同一のノード「RULE」118にリンクされるノード「TARGET−ELEMENT」、並びにノード「LABEL」121およびノード「TABLE」122にそれぞれリンクされるリーフ120に保持される。
【0051】
次にステップST3において、表組構造変換手段13は、表組レイアウトで表示する構造化文書21の範囲および表示の形態の情報に基づいて、構造化文書21の論理構造に対応する表組レイアウトに変換する変換ルールを生成し、構造化文書21の論理構造における終端の論理構造要素にそれぞれ対応してその変換ルールを付加して表示用スタイルシート23の論理構造を生成する。
【0052】
例えば、表組構造変換手段13により、図6のスタイル表22の構造木が、図4の構造化文書21の構造木を考慮して図7に示す構造木に変換される。すなわち、図6のスタイル表22の構造木における終端の要素であるタグ名に対応して、ノード「LABEL」121およびノード「TABLE」122の代わりにノード「ACTION」123がノード「RULE」118にリンクされ、さらにそのノード「ACTION」123に、そのタグ名の出現直前に実行する変換ルールを示すノード「ACTION.PRE」124およびそのタグ名の出現直後に実行する変換ルールを示すノード「ACTION.POST」125が適宜リンクされる。そしてその変換ルールの内容は、それらのノード「ACTION.PRE」124およびノード「ACTION.POST」125にリンクされるリーフ120に保持される。
【0053】
なお、構造化文書21の表示用データを、SGMLのサブセットであるHTML(HyperText Markup Language)で記述するために、図7における変換ルールは、HTMLに従って記述される。このようにHTMLを使用するのは、HTMLによるタグ毎のスタイル定義を使用することにより、表組のためのタグ毎のスタイル定義をSGMLにより作成することを省略できるからである。したがって、HTMLを使用せずに、他のスタイル定義を有するマークアップ言語を使用してもよいし、SGMLで新たにスタイル定義をするようにしてもよい。
【0054】
例えば、タグ名「ORDER」に対しては、タグ名「ORDER」の論理構造要素の処理直前に実行される変換ルール「
printf(”<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1>”);
printf(”<TR VALIGN=BOTTOM ALIGN=CENTER BGCOLOR=SKYBLUE>”);
printf(”<TD>注文番号<TD>工事名<TD>国名”);
printf(”<TR VALIGN=TOP ALIGN=CENTER BGCOLOR=WHITE>”);
printf(”<TD>%s”,$content);
」126が割り当てられている。
【0055】
この変換ルールは、図5および図6に示すタグ名「ORDER」に対応する表組指定「TAB1(H,3,1,0,1,SKYBLUE,WHITE,−)」に対応して作成されている。すなわち、「TAB1」の第3、第4および第5引数「1,0,1」に基づいて「<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1>」を出力する命令文「printf(”<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1>”);」が作成され、「TAB1」の第6引数「SKYBLUE」に基づいて「<TR VALIGN=BOTTOM ALIGN=CENTER BGCOLOR=SKYBLUE>」を出力する命令文「printf(”<TR VALIGN=BOTTOM ALIGN=CENTER BGCOLOR=SKYBLUE>”);」が作成される。
【0056】
ここで、「<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1>」は、HTMLにおける表組み開始の指定であり、「BORDER=1」、「CELLSPACING=0」および「CELLPADDING=1」は、表の枠線の太さが1ピクセルであり、セル間の間隔が0ピクセルであり、セル内に表示する文字列の周囲のマージンが1ピクセルであることをそれぞれ指定するものである。また、「<TR VALIGN=BOTTOM ALIGN=CENTER BGCOLOR=SKYBLUE>」は、表の第1行目の指定であり、「VALIGN=BOTTOM」、「ALIGN=CENTER」および「BGCOLOR=SKYBLUE」は、垂直方向は下揃えであり、水平方向は中央揃えであり、空色がその行内での背景色のデフォルト値であることを指定するものである。
【0057】
なお、この実施の形態1においては、見出しセルの垂直方向は常に中央揃えに指定され、水平方向は、「TAB1」の引数による表組方向によって決まり、表組方向が横方向である(引数が「H」である)場合は下揃えに指定され、表組方向が縦方向である(引数が「V」である)場合は右揃えに指定される。
【0058】
また、「TAB1」の第1および第2引数「H,3」に基づいて、タグ名「ORDER」以下3つのタグ名「ORDER」、「PROJECT」および「COUNTRY」に対応する見出し「注文番号」、「工事名」および「国名」に対応して、「<TH>注文番号<TH>工事名<TH>国名”)」を出力する命令文「printf(”<TH>注文番号<TH>工事名<TH>国名”);」が作成され、「TAB1」の第7引数「WHITE」に基づいて、「<TR VALIGN=TOP ALIGN=CENTER BGCOLOR=WHITE>」を出力する命令文「printf(”<TR VALIGN=TOP ALIGN=CENTER BGCOLOR=WHITE>”);」が作成される。
【0059】
ここで、「<TH>注文番号」は、表のセルに「注文番号」を表示する指定であり、「<TH>」が出現する毎に表示するセルが左から右へ1つずつ移動する。
【0060】
そして、変数「$content」に代入される当該論理構造要素の内容を表示するための命令文「printf(”<TD>%s”,$content);」が追加される。例えば、図3の構造化文書21が処理された場合には、変数「$content」に、タグ名「ORDER」の論理構造要素の内容「XYZ12345」が代入される。
【0061】
同様に、タグ名「PROJECT」に対しては、変換ルールとして命令文「printf(”<TD>%s”,$content);」127が割り当てられている。例えば、図3の構造化文書21が処理された場合には、変数「$content」に、タグ名「PROJECT」の論理構造要素の内容「横浜摩天楼ビル」が代入され、後述のスタイルシートにより、論理構造要素「PROJECT」の処理直前に「<TD>横浜摩天楼ビル」を出力することが指定される。
【0062】
以下同様に、各タグ名に対して変換ルールが割り当てられ、最後に、タグ名「SPEED」に対して、論理構造要素「SPEED」の処理直前に実行する変換ルールとして、命令文「printf(”<TD>%s”,$content);」が割り当てられ、論理構造要素「SPEED」の処理直後に実行する変換ルールとして、「</TABLE>」を出力するための命令文「printf(”</TABLE>”);」が割り当てられる。なお、「</TABLE>」は、HTMLにおける表組終了の指定である。
【0063】
次にステップST4において、表示用スタイルシート作成手段14は、表組構造変換手段13により生成された論理構造に基づいてSGMLなどで命令文を記述して表示用スタイルシート23を作成し、データ保存部2に保存する。
【0064】
例えば、図7の構造木から図8に示す表示用スタイルシート23が表示用スタイルシート作成手段14により作成される。このように表示用スタイルシート23には、各変換ルールがそのまま埋め込まれ、図8におけるタグ「target−element」で指定される論理構造要素の内容と同一のタグ名が構造化文書21に出現すると、タグ「action」で指定される変換ルール(タグ「action.pre」,「action.post」で指定される変換ルール)の各命令文が実行され、構造化文書21の論理構造要素に表組レイアウトのための記述が追加されて構造化文書21が表示用データに変換される。
【0065】
そしてステップST5において、構造化文書表示手段15は、データ保存部2から構造化文書21および表示用スタイルシート23を読み出し、構造化文書21を、表示用スタイルシート23に記述された命令文に従って表組レイアウトでの表示用データに変換し、その表示用データに対応する画像を表示部3に表示する。
【0066】
例えば、構造化文書表示手段15により、図3の構造化文書21に対して図8の表示用スタイルシート23が適用されると、図3の構造化文書21が、図9に示すHTMLによる表示用データに変換され、その表示用データに対応する画像が構造化文書表示手段15に内蔵されたHTMLビューアにより図10に示すように表示部3に表示される。なお、この場合は、HTMLによる表示用データに変換されるためHTMLビューアを使用するが、他のマークアップ言語を使用した場合には、それに対応するビューアを使用するようにする。
【0067】
以上のように、この実施の形態1によれば、構造化文書21における終端の論理構造要素に対応して表組レイアウトのための命令文を付加して、スタイル表22から表示用スタイルシート23を作成し、その表示用スタイルシート23に基づいて、構造化文書21を表組レイアウトで表示するようにしたので、構造化文書21の論理構造を表組可能なように記述することなく、スタイル表22に基づいて簡単に構造化文書21を表組レイアウトで表示することができるという効果が得られる。すなわち、表組可能な物理構造ではない構造化文書21に対して、スタイル表22に基づいて各種組版を簡単に指定することができるという効果が得られる。
【0068】
実施の形態2.
この発明による実施の形態2は、縦方向の表組レイアウトで構造化文書21を表示するものである。
【0069】
ここでは、実施の形態2におけるスタイル表22について説明し、その他の構成要素については実施の形態1によるものと同様であるので、その説明を省略する。図11は、実施の形態2におけるスタイル表22の一例を示す図である。
縦方向の表組にするためには、図11に示すように、表組指定の「TAB1」の第1引数131の値を「V」にする。これにより、上述したように表組方向が縦方向になり、見出しセルの水平方向が右揃えに指定される。
【0070】
次に動作について説明する。
図12は、実施の形態2により図3の構造化文書21を変換した表示用データの一例を示す図であり、図13は、図12の表示用データに対応する画像の一例を示す図である。
【0071】
このスタイル表22および構造化文書21から、構造化文書解析手段11、スタイル表解析手段12、表組構造変換手段13および表示用スタイルシート作成手段14により、実施の形態1と同様にして表示用スタイルシート23が作成され、構造化文書表示手段15により、その表示用スタイルシート23が構造化文書21に適用されて表示用データが作成され、その表示用データに対応する画像が表示部3に表示される。
【0072】
例えば、図11のスタイル表22および図3の構造化文書21が使用された場合には、図12に示すHTMLによる表示用データが作成され、その表示用データに対応する画像が図13に示すように表示部3に表示される。
【0073】
以上のように、この実施の形態2によれば、実施の形態1による効果の他、スタイル表22を変更するだけで、表組の方向といった表組レイアウトの形態を簡単に変更することができるという効果が得られる。
【0074】
実施の形態3.
この発明による実施の形態3は、構造化文書を表組レイアウトで表示する際に、改行または改列の位置を指定可能にしたものである。
【0075】
ここでは、実施の形態3におけるスタイル表22について説明し、その他の構成要素については実施の形態1によるものと同様であるので、その説明を省略する。図14は、実施の形態3におけるスタイル表22の一例を示す図である。
横方向の表組レイアウトの場合、改行位置を指定するために、図14に示すように、直前に改行したいタグに対応して表組指定「LF」141を記述する。なお、縦方向の表組レイアウトの場合、改列位置を指定するために、直前に改列したいタグに対応して表組指定「LF」を記述する。そして、後述するように、表組構造変換手段13および表示用スタイルシート作成手段14により、この表組指定に基づいた表示用スタイルシート23が作成される。
【0076】
次に動作について説明する。
図15は、実施の形態3より図3の構造化文書21を変換した表示用データの一例を示す図であり、図16は、図15の表示用データに対応する画像の一例を示す図である。
【0077】
構造化文書解析手段11およびスタイル表解析手段12は実施の形態1によるものと同様に動作する。そして、表組構造変換手段13は、表組指定「TAB1」が出現したときに表組指定を検索し、表組指定「LF」を検出した場合には、その表組指定「LF」に対応するタグの直前で改行(または改列)するように変換ルールを作成する。このようにして作成された変換ルールを含む論理構造に基づいて表示用スタイルシート23が表示用スタイルシート作成手段14により作成される。
【0078】
そして、構造化文書表示手段15により、その表示用スタイルシート23が構造化文書21に適用されて表示用データが作成され、その表示用データに対応する画像が表示部3に表示される。
【0079】
例えば、図14のスタイル表22および図3の構造化文書21が使用された場合には、図15に示すHTMLによる表示用データが作成され、その表示用データに対応する画像が図16に示すように表示部3に表示される。すなわち、論理構造要素「COUNTRY」に対するセルの前で改行して表を表示するためには、図14のスタイル表22のように、論理構造要素「COUNTRY」に対応して表組指定「LF」を記述する。そして、このスタイル表22に基づいて、図16のように、通常は横方向に3列ずつの表組みが指定され、「国名」のセルが次の行に表示されるため、第1行目が「注文番号」のセルと「工事名」のセルの2列となり、「国名」のセルは第2行目の先頭列のセルとなる。
【0080】
この場合、HTMLによる記述「COLSPAN=2」を命令文によって表示用データに出力させることにより、「工事名」のセルを2列結合させて第1行目の列数を3に調整する。なお、最後の論理構造要素(今の場合は「SPEED」)が第3列目に配置されない場合には同様にHTMLによる記述「COLSPAN=2」または「COLSPAN=3」(今の場合は「COLSPAN=3」(図15))を命令文によって出力することにより、最終行の列数を3に調整する。
【0081】
以上のように、この実施の形態3によれば、実施の形態1による効果の他、スタイル表に所定の表組指定をすることにより改行または改列位置を指定することができるようにしたので、そのスタイル表に基づいて各行において任意のセル数の表組レイアウトで構造化文書を表示することができるという効果が得られる。
【0082】
実施の形態4.
この発明による実施の形態4は、構造化文書を表組レイアウトで表示する際に、各行に行番号を表示するようにしたものである。
【0083】
ここでは、実施の形態4におけるスタイル表22について説明し、その他の構成要素については実施の形態1によるものと同様であるので、その説明を省略する。図17は、実施の形態4におけるスタイル表22の一例を示す図である。
各行に行番号を表示するためには、図17に示すように、表組指定「TAB1」の第8引数151の値を所定の値「LNUM」にする。その他については、実施の形態3におけるスタイル表22(図14)と同様である。そして、後述するように、表組構造変換手段13および表示用スタイルシート作成手段14により、この表組指定に基づいた表示用スタイルシート23が作成される。
【0084】
次に動作について説明する。
図18は、実施の形態4により図3の構造化文書21を変換した表示用データの一例を示す図であり、図19は、図18の表示用データに対応する画像の一例を示す図である。
【0085】
構造化文書解析手段11およびスタイル表解析手段12は実施の形態1によるものと同様に動作する。そして、表組構造変換手段13は、表組指定「TAB1」が出現したときに、その第8引数151の値が所定の値「LNUM」である場合には、各行の先頭に行番号を表示するための変換ルールを作成する。このようにして作成された変換ルールを含む論理構造に基づいて表示用スタイルシート23が表示用スタイルシート作成手段14により作成される。
【0086】
そして、構造化文書表示手段15により、その表示用スタイルシート23が構造化文書21に適用されて表示用データが作成され、その表示用データに対応する画像が表示部3に表示される。
【0087】
例えば、図17のスタイル表22および図3の構造化文書21が使用された場合には、図18に示すHTMLによる表示用データが作成され、その表示用データに対応する画像が図19に示すように表示部3に表示される。すなわち、論理構造要素「ORDER」から論理構造要素「SPEED」で構成する表の各行に行番号を付加するためには、図17のスタイル表22のように、表組の開始位置を示す表組指定「TAB1」の第8引数151に所定の値「LNUM」を記述する。そして、このスタイル表22に基づいて、図18に示すHTMLによる行番号を表示する記述「<TD VALIGN=CENTER ALIGN=CENTER ROWSPAN=2 BGCOLOR=WHITE><FONT SIZE=−1>3</FONT>」(行番号が3である場合)を命令文によって出力することにより、図19に示すように、各行の先頭に行番号が表示される。
【0088】
なお、行番号は、構造化文書21全体で連続する番号とされ、今の場合は、構造化文書21において先に図示せぬ第1行、第2行が出現しているため、図18および図19においては、行番号が「3」から開始し、行番号「3」、「4」および「5」がそれぞれ表示されている。ただし、行番号は構造化文書21全体で連続する番号でなければならないわけではなく、表ごとに行番号を1から開始するように処理を変更するようにしてもよい。
【0089】
以上のように、この実施の形態4によれば、実施の形態1による効果の他、スタイル表22に所定の表組指定をすることにより行番号を表示するようにしたので、構造化文書21を表組レイアウトで表示する際に、簡単に行番号を付加することができるという効果が得られる。
【0090】
なお、実施の形態4においては、横方向の表組レイアウトの表の各行に行番号を表示させるようにしたが、同様にして、縦方向の表組レイアウトの表の各列に列番号を表示させるようにすることもできる。
【0091】
実施の形態5.
この発明による実施の形態5は、構造化文書を表組レイアウトで表示する際に、表についての見出しを表示するとともに、複数の論理構造要素に対する統合的な見出しを表示することができるようにしたものである。
【0092】
ここでは、実施の形態5におけるスタイル表22について説明し、その他の構成要素については実施の形態1によるものと同様であるので、その説明を省略する。図20は、実施の形態5におけるスタイル表22の一例を示す図である。
表についての見出しを表示するためには、図20に示すように、表組レイアウトの開始される論理構造要素に対応する表組指定として、見出しの内容を引数とする表組指定「CAPTION」161を記述し、複数の論理構造要素に対する統合的な見出しを表示するためには、表組レイアウトの開始される論理構造要素に対応する表組指定として、見出しの内容を引数とする表組指定「PARENT」162を記述する。その他については、実施の形態4におけるスタイル表22(図17)と同様である。そして、後述するように、表組構造変換手段13および表示用スタイルシート作成手段14により、これらの表組指定に基づいた表示用スタイルシート23が作成される。
【0093】
次に動作について説明する。
図21は、実施の形態5により図3の構造化文書21を変換した表示用データの一例を示す図であり、図22は、図21の表示用データに対応する画像の一例を示す図である。
【0094】
構造化文書解析手段11およびスタイル表解析手段12は実施の形態1によるものと同様に動作する。そして、表組構造変換手段13は、表組指定「CAPTION」161が出現したときには、その引数の内容を表の見出しとして表示するための変換ルールを作成し、複数の連続したまたは1つの論理構造要素に対応して表組指定「PARENT」162が出現したときには、その論理構造要素の見出しの上位の統合的な見出しとして、その引数の内容を表示するための変換ルールを作成する。
【0095】
例えば、図20のスタイル表22の表組指定「CAPTION(基本項目,LEFT,+1)」により、第1引数に応じて「基本項目」という見出しを、第2引数に応じて左揃えで出力するための変換ルールが作成される。なお、第3引数はこの見出しの文字の大きさを指定するものである。また、図20のスタイル表22の表組指定「PARENT(1,オーダー)」により、第1引数に応じて論理構造要素「ORDER」,「PROJECT」の「1」階層上に、第2引数に応じて「オーダー」という統合的な見出しを出力するための変換ルールが作成される。
【0096】
このようにして作成された変換ルールを含む論理構造に基づいて表示用スタイルシート23が表示用スタイルシート作成手段14により作成される。
【0097】
そして、構造化文書表示手段15により、その表示用スタイルシート23が構造化文書21に適用されて表示用データが作成され、その表示用データに対応する画像が表示部3に表示される。
【0098】
例えば、図20のスタイル表22および図3の構造化文書21が使用された場合には、図21に示すHTMLによる表示用データが作成され、その表示用データに対応する画像が図22に示すように表示部3に表示される。すなわち、表全体の見出しを付加するためには、図20のスタイル表22のように、表組の開始位置の論理構造要素に対応して表組指定「CAPTION」を記述し、上位の見出しを付加するためには、上位の見出しを付加する論理構造要素に対応して表組指定「PARENT」を記述する。そして、このスタイル表22に基づいて、図21に示すように例えば「<CAPTION><DIV ALIGN=LEFT><FONT SIZE=+1>基本項目</FONT></DIV></CAPTION>」なるHTMLによる表の見出しを表示するための記述および例えば「<TH COLSPAN=2>オーダー」なる上位の統合的な見出しを表示するための記述を命令文によって表示用データに出力することにより、図22のように、表の見出しおよび上位の見出しが表示される。
【0099】
ただし、上位の統合的な見出しに対する記述を行う場合、「<TH COLSPAN=2>オーダー」なる上位の統合的な見出しを表示する記述の他、後続の見出しの表示の調整のための記述(図21では「オーダー」の直後の記述「<TH ROWSPAN=2>」やその次の行の記述「<TR VALIGN=BOTTOM ALIGN=CENTER BGCOLOR=SKYBLUE>」など)も命令文によって表示用データに出力される。
【0100】
以上のように、この実施の形態5によれば、実施の形態1による効果の他、スタイル表22に所定の表組指定をすることにより表全体の見出しおよび論理構造要素に上位の統合的な見出しを表示するようにしたので、構造化文書21を表組レイアウトで表示する際に、簡単に表全体の見出しや統合的な見出しを付加することができるという効果が得られる。
【0101】
なお、実施の形態5においては、横方向の表組レイアウトにおいて統合的な見出しを表示するようにしたが、同様にして、縦方向の表組レイアウトにおいても統合的な見出しを表示するようにすることもできる。
【0102】
実施の形態6.
この発明による実施の形態6は、同一の論理構造が繰り返し出現する構造化文書21を表組レイアウトで表示するものである。
【0103】
ここでは、実施の形態6における構造化文書21とそれに対応するスタイル表22について説明し、その他の構成要素については実施の形態1によるものと同様であるので、その説明を省略する。図23は、同一の論理構造が繰り返し出現する構造化文書21の一例の一部を示す図である。図23においては、下位階層である一連の論理構造要素「MATERIAL」,「FINISH」,「COLOR」が、上位階層である論理構造要素「DOOR」、論理構造要素「WALL」および論理構造要素「FLOOR」の各下位の論理構造要素として繰り返し出現している。
【0104】
図24は、同一の論理構造が繰り返し出現する構造化文書21を、上位階層の論理構造要素の配列を縦方向に、下位階層の論理構造要素の配列を横方向にした表組レイアウトで表示するためのスタイル表22の一例を示す図である。なお、論理構造要素の配列が横方向である場合、各論理構造要素の内容は縦方向に配列される。この表組レイアウトの構造は、実施の形態1〜実施の形態5におけるものと異なるため、図24においては、「TAB1」とは異なる表組指定として「TAB2」が使用される。なお、表組指定「TAB2」には9つの引数があり、第1〜第8引数については「TAB1」の引数と同様であり、第9引数171は、縦方向の見出しと横方向の見出しが交わる左上端のセルに表示する角見出しの内容を指定するものである。図24においては、その角見出しの内容が「ユニット」に指定されている。
【0105】
次に動作について説明する。
図25は、実施の形態6により図23の構造化文書21を変換した表示用データの一例を示す図であり、図26は、図25の表示用データに対応する画像の一例を示す図である。
【0106】
構造化文書解析手段11およびスタイル表解析手段12は実施の形態1によるものと同様に動作する。そして、表組構造変換手段13は、表組指定「TAB2」が出現したときには、上位階層の一連の論理構造要素を、表組指定「TAB2」の第1引数で指定される方向に配列し、下位階層の一連の論理構造要素を、その方向の垂直方向に配列するための変換ルールを作成する。
【0107】
例えば、図23の構造化文書21および図24のスタイル表22に基づいて、表組構造変換手段13により、上位階層の一連の「DOOR」,「WALL」,「FLOOR」を縦方向に配列し、下位階層の一連の論理構造要素「MATERIAL」,「FINISH」,「COLOR」を横方向に配列して表示するための変換ルールが作成される。このようにして作成された変換ルールを含む論理構造に基づいて表示用スタイルシート23が表示用スタイルシート作成手段14により作成される。
【0108】
そして、構造化文書表示手段15により、その表示用スタイルシート23が構造化文書21に適用されて表示用データが作成され、その表示用データに対応する画像が表示部3に表示される。
【0109】
例えば、図24のスタイル表22および図23の構造化文書21が使用された場合には、図25に示すHTMLによる表示用データが作成され、その表示用データに対応する画像が図26に示すように表示部3に表示される。
【0110】
すなわち、同一の論理構造が繰り返し出現する構造化文書21を表組レイアウトで表示する場合には、図24のスタイル表22のように、表組の開始位置の論理構造要素に対応して表組指定「TAB2」を記述する。そして、このスタイル表22に基づいて、上位階層の論理構造要素と下位階層の論理構造要素とで2次元方向に見出しを有する構造に表組レイアウトをするためのHTMLによる記述を命令文によって表示用データに出力することにより、図26のように、2次元方向に見出しを有する表組レイアウトで、同一の論理構造が繰り返し出現する構造化文書21が表示される。
【0111】
以上のように、この実施の形態6によれば、スタイル表22に所定の表組指定をすることにより同一の論理構造が繰り返し出現する構造化文書21を2次元方向に見出しを有する構造の表組レイアウトで表示するようにしたので、論理構造要素間の階層関係を反映した表組みレイアウトで構造化文書21を表示することができるという効果が得られる。
【0112】
実施の形態7.
この発明による実施の形態7は、同一の論理構造が繰り返し出現する構造化文書21を表組レイアウトで表示するものであって、繰り返し出現する論理構造のうちの1つの論理構造要素の内容を表の一方向の見出しとして表示するものである。
【0113】
ここでは、実施の形態7における構造化文書21およびスタイル表22について説明し、その他の構成要素については実施の形態1によるものと同様であるので、その説明を省略する。図27は、同一の論理構造が繰り返し出現する構造化文書21の一例の一部を示す図である。図27においては、一連の論理構造要素「SET.NO」,「USAGE」,「CAPACITY」,「DOOR.HAND」が、論理構造要素「SET」の下位の論理構造要素として繰り返し出現している。
【0114】
図28は、同一の論理構造が繰り返し出現する構造化文書21を、繰り返し出現する論理構造のうちの1つの論理構造要素の内容を横方向に、他の論理構造要素の配列を縦方向にした表組レイアウトで表示するためのスタイル表22の一例を示す図である。なお、繰返し出現する論理構造要素のうちの1つの論理構造要素の内容を縦方向に配列する場合、他の論理構造要素の内容は横方向に配列される。
【0115】
この表組レイアウトの構造は、実施の形態1〜実施の形態6におけるものと異なるため、図27においては、「TAB1」および「TAB2」とは異なる表組指定として「TAB3」が使用される。なお、表組指定「TAB3」には9つの引数があり、表組指定「TAB1」の引数と同様である。そして、内容を見出しとする論理構造要素が、所定の表組指定「THEADER」181で指定される。
【0116】
次に動作について説明する。
図29は、実施の形態7により図27の構造化文書21を変換した表示用データの一例を示す図であり、図30は、図29の表示用データに対応する画像の一例を示す図である。
【0117】
構造化文書解析手段11およびスタイル表解析手段12は実施の形態1によるものと同様に動作する。そして、表組構造変換手段13は、表組指定「TAB3」が出現したときには、表組指定「THEADER」を検索し、表組指定「THEADER」に対応する論理構造要素の一連の内容を、表組指定「TAB3」の第1引数で指定される方向に見出しとして表示し、他の一連の論理構造要素を、その方向の垂直方向に配列して表示するための変換ルールを作成する。
【0118】
例えば、図27の構造化文書21および図28のスタイル表22に基づいて、表組構造変換手段13により、表組指定「THEADER」で指定された論理構造要素「SET.NO」の内容「7」,「8」,「9」を横方向に見出しとして配列し、他の一連の論理構造要素「USAGE」,「CAPACITY」,「DOOR.HAND」を縦方向に配列して表示するための変換ルールが作成される。このようにして作成された変換ルールを含む論理構造に基づいて表示用スタイルシート23が表示用スタイルシート作成手段14により作成される。
【0119】
そして、構造化文書表示手段15により、その表示用スタイルシート23が構造化文書21に適用されて表示用データが作成され、その表示用データに対応する画像が表示部3に表示される。
【0120】
例えば、図28のスタイル表22および図27の構造化文書21が使用された場合には、図29に示すHTMLによる表示用データが作成され、その表示用データに対応する画像が図30に示すように表示部3に表示される。すなわち、同一の論理構造が繰り返し出現する構造化文書21を表組レイアウトで表示する場合に、図28のスタイル表22のように、表組の開始位置の論理構造要素に対応して表組指定「TAB3」をし、表組指定「THEADER」によりその論理構造要素の1つの内容を表の1つの方向の見出しに設定する。したがって表組指定「THEADER」により指定された論理構造要素「SET.NO」の内容が各列の見出しとみなされ、今の場合、見出し「号機番号」の行はすべて見出しとなる。
【0121】
そして、このスタイル表22に基づいて、繰り返し出現する一連の論理構造要素のうちの1つの論理構造要素の内容を1方向の見出しとして2次元方向に見出しを有する構造に表組レイアウトをするためのHTMLによる記述を命令文によって表示用データに出力することにより、図30のように、2次元方向に見出しを有する表組レイアウトで、同一の論理構造が繰り返し出現する構造化文書21が表示される。
【0122】
以上のように、この実施の形態7によれば、スタイル表22に所定の表組指定をすることにより同一の論理構造が繰り返し出現する構造化文書21を2次元方向に見出しを有する構造の表組レイアウトで表示するようにしたので、論理構造要素間の階層関係を反映した表組みレイアウトで構造化文書21を表示することができるという効果が得られる。
【0123】
実施の形態8.
この発明による実施の形態8は、同一の論理構造が繰り返し出現する論理構造がさらに繰り返し出現する構造化文書21を表組レイアウトで表示するものである。
【0124】
ここでは、実施の形態8における構造化文書21およびスタイル表22について説明し、その他の構成要素については実施の形態1によるものと同様であるので、その説明を省略する。図31は、同一の論理構造が繰り返し出現する論理構造がさらに繰り返し出現する構造化文書21の一部の一例を示す図である。
【0125】
図31においては、同一の論理構造要素「SET」が下位において繰り返し出現する論理構造要素「FLOOR」が、4回繰り返して出現している。すなわち、図31の構造化文書21は、3階層の論理構造を有しており、論理構造要素「SET.NO」,「SERVICE」は下位の階層に属し、論理構造要素「FLOOR.NAME」,「FLOOR.HEIGHT」,「SET」は中位の階層に属し、論理構造要素「FLOOR」は上位の階層に属している。
【0126】
図32は、同一の論理構造が繰り返し出現する論理構造がさらに繰り返し出現する構造化文書21を、見出し列および見出し行により表組レイアウトで表示するためのスタイル表22の一例を示す図である。
【0127】
この表組レイアウトの構造は、実施の形態1〜実施の形態6におけるものと異なるため、図32においては、「TAB1」〜「TAB3」とは異なる表組指定として「TAB4」が使用される。なお、表組指定「TAB4」には9つの引数があり、表組指定「TAB1」の引数と同様である。そして、内容が見出し列または見出し行として配列される2つの論理構造要素が、所定の表組指定「THEADER」で指定される。例えば図32においては、2つの論理構造要素「FLOOR.NAME」,「SET.NO」が見出し列および見出し行にそれぞれ指定される。
【0128】
次に動作について説明する。
図33は、実施の形態8により図31の構造化文書21を変換した表示用データの一例を示す図であり、図34は、図33の表示用データに対応する画像の一例を示す図である。
【0129】
構造化文書解析手段11およびスタイル表解析手段12は実施の形態1によるものと同様に動作する。そして、表組構造変換手段13は、表組指定「TAB4」が出現したときには、表組指定「THEADER」を検索し、表組指定「THEADER」に対応する一方の論理構造要素(中位階層の論理構造要素)の一連の内容を、表組指定「TAB4」の第1引数で指定される方向に見出しとして表示し、他の中位階層の論理構造要素を「TAB4」の第1引数で指定される方向の垂直方向に配列し、他方の論理構造要素(下位階層の論理構造要素)の一連の内容を、表組指定「TAB4」の第1引数で指定される方向と垂直方向に見出しとして表示し、他の下位階層の論理構造要素を「TAB4」の第1引数で指定される方向に配列して表示するための変換ルールを作成する。
【0130】
例えば、図31の構造化文書21および図32のスタイル表22に基づいて、表組構造変換手段13により、表組指定「THEADER」で指定された論理構造要素「FLOOR.NAME」の内容を縦方向に見出し列としてそれぞれ配列し、論理構造要素「FLOOR.HEIGHT」を、その横に表示する。また、その横に、表組指定「THEADER」で指定された下位階層の論理構造要素「SET.NO」の内容を横方向に見出し行として表示し、論理構造要素「SERVICE」を縦方向に配置するための変換ルールが作成される。
【0131】
このようにして作成された変換ルールを含む論理構造に基づいて表示用スタイルシート23が表示用スタイルシート作成手段14により作成される。そして、構造化文書表示手段15により、その表示用スタイルシート23が構造化文書21に適用されて表示用データが作成され、その表示用データに対応する画像が表示部3に表示される。
【0132】
例えば、図32のスタイル表22および図31の構造化文書21が使用された場合には、図33に示すHTMLによる表示用データが作成され、その表示用データに対応する画像が図34に示すように表示部3に表示される。
【0133】
すなわち、同一の論理構造が繰り返し出現する論理構造がさらに繰り返し出現する構造化文書21を表組レイアウトで表示する場合には、図32のスタイル表22のように、表組の開始位置の論理構造要素に対応して表組指定「TAB4」を記述し、2つの論理構造要素の内容を表組指定「THEADER」により表における見出し列または見出し行に設定する。これにより表組指定「THEADER」により指定された論理構造要素「FLOOR.NAME」の内容が各行の見出しとみなされるとともに、論理構造要素「SET.NO」の内容が列の見出しとみなされ、今の場合、見出し「階床名」の列、および見出し「号機番号」の行(「号機番号」から右方向の部分のみ)はすべて見出しとなる。
【0134】
そして、このスタイル表22に基づいて、繰り返し出現する一連の論理構造要素のうちの2つの論理構造要素の内容を見出し列または見出し行として2次元方向に見出しを有する構造に表組レイアウトをするためのHTMLによる記述を命令文によって出力することにより、図34のように、2次元方向に見出しを有する表組レイアウトで、同一の論理構造が二重に繰り返し出現する構造化文書21が表示される。
【0135】
以上のように、この実施の形態8によれば、スタイル表22に所定の表組指定をすることにより同一の論理構造が繰り返し出現する論理構造がさらに繰り返し出現する3階層の構造化文書21を2次元方向に見出しを有する構造の表組レイアウトで表示するようにしたので、論理構造要素間の階層関係を反映した表組みレイアウトで構造化文書21を表示することができるという効果が得られる。
【0136】
以上、実施の形態1〜実施の形態8に示すように、スタイル表22の記述を変更するだけで、簡単に、様々な論理構造を有する構造化文書21を、各種形態の表組レイアウトで表示することができる。
【0137】
実施の形態9.
図35は、この発明の実施の形態9による構造化文書処理装置1Aの構成を示すブロック図である。図において、1Aは実施の形態9による構造化文書処理装置である。4は、マウスなどのポインティングデバイスやキーボードなどの入力部である。16は、表組構造変換手段13により生成された論理構造に基づいてSGMLなどで命令文を記述するとともに、論理構造要素の内容を入力するための入力欄を表示する記述を出力する命令文を記述した入力用スタイルシート24を作成する入力用スタイルシート作成手段(スタイルシート作成手段)である。17は、入力部4に対する入力操作による入力データを構造化文書表示手段15に供給し、その入力操作を表示部3の表示画像に反映させるとともに、データ保存部2に保存された構造化文書21の内容に反映させる構造化文書保存手段(入力データ書込手段)である。24は、入力欄を表示する記述を出力する命令文を表示用スタイルシートに追加したものである入力用スタイルシート(スタイルシート)である。
【0138】
なお、表示部3、入力部4、構造化文書表示手段15および構造化文書保存手段17によりGUIが構成される。また、図35におけるその他の構成要素については、実施の形態1によるもの(図1)と同様であるので、その説明を省略する。
【0139】
次に動作について説明する。
図36は、実施の形態9による構造化文書処理装置1Aの動作について説明するフローチャートである。図37は、図27の構造化文書21を表組レイアウトで表示するためのスタイル表22の一例を示す図である。図38は、実施の形態9により図27の構造化文書21を変換した表示用データの一例を示す図であり、図39は、図38の表示用データに対応する画像の一例を示す図である。
【0140】
図36において、ステップST11〜ステップST13の処理については、実施の形態1におけるステップST1〜ステップST3の処理(図2)と同様であるので、その説明を省略する。ここで図37に示すように、この実施の形態9において使用されるスタイル表22には、入力欄指定の列が追加されている。入力欄指定には、入力欄に対するデータ入力の入力形式が指定される。例えば図37のスタイル表においては、論理構造要素「USAGE」の内容に対する入力形式として、入力欄指定「TEXT(6)」により、任意の文字列を6文字以内で入力する入力形式が指定され、論理構造要素「DOOR.HAND」の内容に対する入力形式として、入力欄指定「SEL(左,右,両)」により、「左」、「右」および「両」の3つから1つの値を選択して入力する入力形式が指定されている。
【0141】
次に、ステップST14において、入力用スタイルシート作成手段16は、表組構造変換手段13により生成された論理構造に基づいてSGMLなどで命令文を記述するとともに、上述の入力欄指定に応じて論理構造要素の内容を入力するための入力欄を表示する記述を出力する命令文を記述した入力用スタイルシート24を作成し、データ保存部2に保存する。
【0142】
そしてステップST15において、構造化文書表示手段15は、データ保存部2から構造化文書21および入力用スタイルシート24を読み出し、構造化文書21を、入力用スタイルシート24に記述された命令文に従って、所定の入力形式の入力欄を有する表組レイアウトでの表示用データに変換し、その表示用データに対応する画像を表示部3に表示する。
【0143】
例えば、構造化文書表示手段15により、図27の構造化文書21に対して、図37のスタイル表より作成した入力用スタイルシート24が適用されると、図27の構造化文書21が、図38に示すHTMLによる表示用データに変換され、その表示用データに対応する画像が構造化文書表示手段15に内蔵されたHTMLビューアにより図39に示すように表示部3に表示される。
【0144】
図38に示す表示用データにおいては、入力欄指定「TEXT(6)」に対応するセルには、記述「<INPUT TYPE=TEXT SIZE=6 NAME=USAGE_1 VALUE=”乗用”>」が割り当てられている。ここで「INPUT TYPE=」は任意の文字列の入力形式を示し、「SIZE=」は入力文字列のサイズを指定し、「NAME=」は入力欄のIDを示し、「VALUE=」は入力文字列の初期値を示している。なお、入力欄のIDは論理構造要素に対応づけられ、構造化文書21に保存する場合に、そのIDに対応する論理構造要素の内容を入力文字列で書き換える。また、入力欄指定「SEL(左,右,両)」に対応するセルには、例えば記述「
<SELECT NAME=DOOR_HAND_1>
<OPTION VALUE=””>
<OPTION VALUE=”左” SELECTED>左
<OPTION VALUE=”右”>右
<OPTION VALUE=”両”>両</SELECT>」が割り当てられている。この記述は、文字の選択により入力する入力形式を示している。項目「左」,「右」,「両」のうち、項目「左」が選択された場合には、記述「OPTION VALUE=”左”」に基づいて、このセルの内容が「左」とされる。なお、「SELECTED」によりこの項目を初期値が項目「左」に設定されている。
【0145】
そして図39に示すように、各論理構造要素についての入力欄が表示部3に表示されるとともに、その入力欄に、構造化文書21に記載されている各論理構造要素の内容が初期値として表示されている。なお、表示の初期状態では図39に示すプルダウンメニュー186は表示されない。このプルダウンメニュー186はユーザによる選択入力操作時に表示される。
【0146】
この表示状態でGUIを利用して、ユーザが入力部4を操作して論理構造要素の内容を変更すると、ステップST16において、入力部4に対する入力操作による入力データが、構造化文書保存手段17により構造化文書表示手段15に供給され、変更後の論理構造要素の内容として入力欄に表示される。さらに、構造化文書保存手段17は、論理構造要素の内容の変更に対応して、データ保存部2に保存された構造化文書21において、その入力操作のなされた論理構造要素の内容を、その入力データで書き換える。
【0147】
なお、スタイル表22のその他の部分に対応する処理については、実施の形態1によるものと同様であるので、その説明を省略する。
【0148】
以上のように、この実施の形態9によれば、構造化文書21における終端の論理構造要素に対応して表組レイアウトのための命令文、および論理構造要素の内容のデータ入力の入力形式の指定のための命令文を付加して、スタイル表22から入力用スタイルシート24を作成し、その入力用スタイルシート24に基づいて、構造化文書21を表組レイアウトで表示するとともに所定の入力形式の入力欄を表示するようにしたので、構造化文書21の論理構造を表組可能なように記述することなく、スタイル表22に基づいて簡単に構造化文書21を表組レイアウトで表示することができるとともに、GUIを利用して構造化文書21の論理構造要素の内容を簡単に編集することができるという効果が得られる。
【0149】
実施の形態10.
この発明の実施の形態10は、実施の形態9と同様に構造化文書21を表組レイアウトにし、スタイル表22において指定された所定の入力形式の入力欄を表示するものであって、さらに、繰り返し出現する所定の論理構造要素のうちの1つに入力された値をその所定の論理構造要素のうちの他の論理構造要素に複写するようにしたものである。
【0150】
ここでは、実施の形態10におけるスタイル表22について説明し、その他の構成要素については実施の形態9によるものと同様であるので、その説明を省略する。図40は、図27の構造化文書21を表組レイアウトで表示するとともに、論理構造要素の内容の入力の入力形式を指定し、さらに、繰り返し出現する所定の論理構造要素のうちの1つに入力された値をその所定の論理構造要素のうちの他の論理構造要素に複写する場合のスタイル表22の一例を示す図である。
【0151】
図40に示すスタイル表22では、繰り返し出現する論理構造要素「USAGE」の1つに入力された値を他の論理構造要素「USAGE」に複写するための入力欄指定「COPY(NEXT)」191が記述されている。なお、引数「NEXT」により、論理構造要素「USAGE」の1つに入力された値が、構造化文書21においてそれ以降に出現する論理構造要素「USAGE」に複写されることが指定されている。
【0152】
次に動作について説明する。
図41は、実施の形態10により図27の構造化文書21を変換した表示用データの一例を示す図であり、図42〜図47は、繰り返し出現する所定の論理構造要素のうちの1つに値が入力された場合に、その値をその所定の論理構造要素のうちの他の論理構造要素に複写するときの動作について説明する図である。
【0153】
構造化文書解析手段11、スタイル表解析手段12および表組構造変換手段13は実施の形態9によるものと同様に動作する。そして、入力用スタイルシート作成手段16は、スタイル表22の入力欄指定「COPY」に対応して、繰り返し出現する所定の論理構造要素のうちの1つに入力された値をその所定の論理構造要素のうちの他の論理構造要素に複写するための記述を出力する命令文を、実施の形態9の場合に作成する変換ルールに追加して入力用スタイルシート24を作成する。
【0154】
次に、構造化文書表示手段15は、データ保存部2から構造化文書21および入力用スタイルシート24を読み出し、構造化文書21を、入力用スタイルシート24に記述された命令文に従って、所定の入力形式の入力欄を有する表組レイアウトでの表示用データに変換し、その表示用データに対応する画像を表示部3に表示する。
【0155】
例えば、構造化文書表示手段15により、図27の構造化文書21に対して、図40のスタイル表22から作成した入力用スタイルシート24が適用されると、図27の構造化文書21が、図41に示すHTMLによる表示用データに変換され、その表示用データに対応する画像が構造化文書表示手段15に内蔵されたHTMLビューアにより表示部3に表示される。このとき最初に表示される画像は、実施の形態9のものと同様に表示される。
【0156】
なお、図41に示す表示用データにおいて、HMTLによる記述「onChange=”CopyNext(this,this.form)”」は、この入力欄に対する値が変更された時に「CopyNext(this,this.form)」なる命令を実行させる指定であり、記述「CopyNext(this,this.form)」はこの入力欄に入力された値をそれ以降に繰り返し出現する同一のタグ名を有する論理構造要素に対応する入力欄の値に複写するHTMLによる命令である。なお、それ以降に繰り返し出現する同一のタグ名を有する論理構造要素に対応する入力欄は、入力欄IDの最後の下線「_」の後の数値に基づいて特定する。すなわち、その数値より大きい数値を有する入力欄IDに対応する論理構造要素を、それ以降に繰り返し出現する同一のタグ名を有する論理構造要素と特定する。
【0157】
そして、GUIを利用して、ユーザが入力部4を操作して論理構造要素の内容を変更すると、入力部4に対する入力操作による入力データが、構造化文書保存手段17により構造化文書表示手段15に供給され、変更後の論理構造要素の内容として入力欄に表示されるとともに、同一名の他の論理構造要素の内容に複写され、その論理構造要素に対応する入力欄に表示される。さらに、構造化文書保存手段17は、論理構造要素の内容の変更に対応して、データ保存部2に保存された構造化文書21において、その入力操作のなされた論理構造要素の内容を、その入力データに書き換える。
【0158】
例えば、図40のスタイル表22により作成された入力用スタイルシート24に従って図27の構造化文書21を表示させた場合において、図42に示す表示状態であるときに、内容が「7」である論理構造要素「SET.NO」に対応する論理構造要素「USAGE」(見出し「用途」)に対応する入力欄に図43に示すように「乗用」が入力されると、その「乗用」という入力データが、その入力欄に表示されるとともに、図44に示すようにそれ以降の出現する論理構造要素「USAGE」(内容が「8」,「9」である論理構造要素「SET.NO」に対応する論理構造要素「USAGE」)の内容に複写され、それらの論理構造要素に対応する入力欄にも表示される。
【0159】
その後、内容が「9」である論理構造要素「SET.NO」(見出し「号機番号」)に対応する論理構造要素「USAGE」,「DOOR.HAND」の内容、および論理構造要素「CAPACITY」(見出し「容量(kg)」)の各内容がユーザにより入力されると、例えば図45に示すようになる。なお、論理構造要素「CAPACITY」には入力欄指定「COPY」がなされていないので、入力データの複写は実行されない。
【0160】
そして、図45の表示状態であるときに、内容が「7」である論理構造要素「SET.NO」に対応する論理構造要素「DOOR.HAND」(見出し「戸開方向」)に対応する入力欄に図46に示すように「左」が選択入力されると、その「左」という入力データが、その入力欄に表示されるとともに、図47に示すようにそれ以降の出現する論理構造要素「DOOR.HAND」(内容が「8」,「9」である論理構造要素「SET.NO」に対応するもの)のうち、内容が空である論理構造要素「DOOR.HAND」(内容が「8」である論理構造要素「SET.NO」に対応するもの)の内容にだけ複写され、その論理構造要素に対応する入力欄にも表示される。すなわち、値「両」を有する、内容が「9」である論理構造要素「SET.NO」に対応する論理構造要素「DOOR.HAND」の内容には、入力データ「左」は複写されない。
【0161】
以上のように、この実施の形態10によれば、実施の形態9による効果の他、表組レイアウトで表示した構造化文書21において、繰り返し出現する複数の同一名の論理構造要素の1つに入力された値を他の論理構造要素に複写するようにしたので、繰り返し出現する論理構造要素に対する入力作業を省力化することができるという効果が得られる。
【0162】
実施の形態11.
この発明の実施の形態11は、実施の形態9と同様に構造化文書21を表組レイアウトにし、スタイル表22において指定された所定の入力形式の入力欄を表示するものであって、さらに、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行するものである。
【0163】
ここでは、実施の形態11におけるスタイル表22について説明し、その他の構成要素については実施の形態9によるものと同様であるので、その説明を省略する。図48は、図27の構造化文書21を表組レイアウトで表示するとともに、論理構造要素の内容の入力の入力形式を指定し、さらに、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行する場合のスタイル表22の一例を示す図である。
【0164】
図48に示すように、この実施の形態11において使用されるスタイル表22には、さらにチェックルール指定の列が追加されている。チェックルール指定は、チェックのタイプ、チェックされる条件、および、その条件が成立したときに実行される処理を示す実行文で構成される。
【0165】
チェックルール指定のタイプには、「DEFLT」、「SET」および「CHK」がある。タイプ「DEFLT」は、実行文に指定された記述を、その論理構造要素の内容の初期値に設定するチェックルールであることを示す。
【0166】
タイプ「SET」は、条件が成立したときに、実行文として代入文を実行するチェックルールであることを示し、オプション「DLG」により、実行文の実行により論理構造要素の内容が変更される前にユーザに確認する処理を実行することが指定される。代入文は「SET(タグ名,代入する値)」なる形式で指定される。すなわち、タグ名で指定された論理構造要素に値を代入する処理が指定される。
【0167】
タイプ「CHK」は、条件(制約条件)が成立したときに、実行文として記述されたメッセージ出力文に従ってメッセージを表示するチェックルールであることを示し、オプション「BTN」により、構造化文書21の表示時にチェックボタンが表示され、そのチェックボタンが押された場合のみこのルールが実行されるように指定される。このオプションが指定されていない場合には、このチェックルールは論理構造要素の内容が変更されたときに実行される。メッセージ出力文は「LINK(タグ名,メッセージ)」なる形式で指定される。すなわち、メッセージを画面に表示するとともに、メッセージから、タグ名で指定する論理構造要素に対応する画面上の入力欄へのハイパーリンクを作成する処理が指定される。
【0168】
例えば図48のスタイル表22においては、論理構造要素「USAGE」に対して、タイプが「DEFLT」であり、実行文が「乗用」であるルールが指定されている。また、論理構造要素「CAPACITY」に対して、タイプが「SET(DLG)」であり、条件が「this>800」であり、実行文が「SET(USAGE,貨物)」である第1のルールと、タイプが「SET(DLG)」であり、条件が「this<=800」であり、実行文が「SET(USAGE,乗用)」である第2のルールとが指定されている。ここで、第1のルールの条件「this>800」は、この論理構造要素「CAPACITY」の値が800より大きいかという条件であり、第2のルールの条件「this<=800」は、この論理構造要素「CAPACITY」の値が800以下であるかという条件である。
【0169】
さらに、論理構造要素「DOOR.HAND」に対して、タイプが「CHK(BTN)」であり、条件(制約条件)が「(USAGE)=貨物 and this=両」であり、実行文が「LINK(USAGE,貨物用は両開き不可。)」であるルールが指定されている。ここで、条件「(USAGE)=貨物 and this=両」は、論理構造要素「USAGE」の内容が「貨物」であり、且つこの論理構造要素「DOOR.HAND」の内容が「両」であるかという条件であり、実行文「LINK(USAGE,貨物用は両開き不可。)」は、メッセージ「貨物用は両開き不可。」を表示し、その表示から論理構造要素「USAGE」に対応する入力欄へのハイパーリンクを生成することを指定する実行文である。
【0170】
次に動作について説明する。
図49は、実施の形態11により図27の構造化文書21を変換した表示用データの一例を示す図であり、図50〜図53は、論理構造要素に値が入力された場合に、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行するときの動作について説明する図である。
【0171】
構造化文書解析手段11、スタイル表解析手段12および表組構造変換手段13は実施の形態9によるものと同様に動作する。そして、入力用スタイルシート作成手段16は、スタイル表22のチェックルール指定に対応して、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行するための記述を出力する命令文を、実施の形態9の場合に作成する変換ルールに追加して入力用スタイルシート24を作成する。
【0172】
次に、構造化文書表示手段15は、データ保存部2から構造化文書21および入力用スタイルシート24を読み出し、構造化文書21を、入力用スタイルシート24に記述された命令文に従って、所定の入力形式の入力欄を有する表組レイアウトでの表示用データに変換し、その表示用データに対応する画像を表示部3に表示する。また、構造化文書保存手段17は、論理構造要素の内容の変更に対応して、構造化文書21における、その入力操作のなされた論理構造要素の内容を、その入力データで書き換える。
【0173】
例えば、構造化文書表示手段15により、図27の構造化文書21に対して、図48のスタイル表22より作成した入力用スタイルシート24が適用されると、図27の構造化文書21が、図49に示すHTMLによる表示用データに変換され、その表示用データに対応する画像が構造化文書表示手段15に内蔵されたHTMLビューアにより図50に示すように表示部3に表示される。このとき、タイプ「DEFLT」のチェックルール指定がなされた論理構造要素「USAGE」に対応する入力欄には、指定された初期値「乗用」が表示されるとともに、タイプ「CHK」のチェックルール指定においてオプション「BTN」が指定されているので、チェックボタン196が表示される。
【0174】
ここで図49に示す表示用データにおいては、タイプ「DEFLT」のチェックルール指定に対応して、HMTLによる「onLoad=”SetVal(ID,初期値)”」なる形式の記述がされている。ここで「onLoad=」は画面表示時に実行する指定であり、「SetVal」はIDで指定した入力欄に初期値を設定する画面データ中で定義された命令である。また、タイプ「SET」のチェックルール指定に対応して、HTMLによる「onChange=”RuleSetValue(条件,ID,値)”」なる記述がされている。ここで「onChange=」はその入力欄の値が変更された場合に実行する指定であり、「RuleSetValue」は条件が成立した場合にIDで指定した入力欄に値を設定する命令である。さらに、タイプ「CHK」のチェックルール指定に対応して、JAVAスクリプトによる「ChkAllItems」なる関数の内部において「if(条件){ハイパーリンク付きメッセージの画面出力}」なる形式のif文の記述がされている。なお今の場合、オプション「BTN」が指定されているので、チェックボタン196が押された時に関数「ChkAllItems」は実行される。
【0175】
そして、GUIを利用して、ユーザが入力部4を操作して論理構造要素の内容を変更すると、入力部4に対する入力操作による入力データが、構造化文書保存手段17により構造化文書表示手段15に供給され、変更後の論理構造要素の内容として入力欄に表示されるとともに、その内容が変更された論理構造要素に対してタイプ「SET」のチェックルール指定がされている場合には、例えばHTMLによる記述「onChange=”RuleSetValue(条件,ID,値)”」に従ってそのチェックルール指定における条件の成否が調べられ、条件が成立したときにはIDで指定された論理構造要素への値の代入が実行される。また、その内容が変更された論理構造要素に対してオプション「BTN」を伴わないタイプ「CHK」のチェックルール指定がなされている場合には、例えば上述の関数「ChkAllItems」に従ってそのチェックルール指定における条件の成否が調べられ、条件が成立したときには、指定された論理構造要素の入力欄へのハイパーリンク付きのメッセージが表示される。なお、オプション「BTN」を伴う場合には、チェックボタン196が押されたときだけチェックルールの実行をするので、内容が変更されたときには、このチェックルールは実行されない。
【0176】
例えば図50の表示状態において、論理構造要素「SET.NO」(見出し「号機番号」)の内容が「9」である列の、論理構造要素「CAPACITY」(見出し「容量(kg)」)に対応する入力欄に対して値「1000」を入力すると、論理構造要素「CAPACITY」に対する2つのチェックルールが実行される。ここで、入力データが「1000」であるので、第1のチェックルールの条件「this>=800」が成立し、その列の論理構造要素「USAGE」に値「貨物」が代入される。ただし、スタイル表22(図48)において、オプション「DLG」が指定されているので、元の値「乗用」と異なる値「貨物」が代入される前にユーザに確認を促すダイアログボックス201が図51に示すように表示される。ここでユーザが内容の変更を許可した場合にのみ値「貨物」の代入が実行される。
【0177】
さらに論理構造要素「DOOR.HAND」(見出し「戸開方向」)の内容が入力され、図52の表示状態である場合に、GUIに基づきユーザによりチェックボタン196が押されると、論理構造要素「DOOR.HAND」のすべての内容に対して、オプション「BTN」付きのタイプ「CHK」のチェックルール指定における条件「(USAGE)=貨物 and this=両」の成否が調べられる。ここで、内容が「9」である論理構造要素「SET.NO」(見出し「号機番号」)に対応する論理構造要素「USAGE」,「DOOR.HAND」についてこの条件が成立するので、論理構造要素「USAGE」の入力欄197へのハイパーリンク付きの接頭語「JMP:」の追加されたメッセージ「貨物用は両開き不可。」が図53に示すように表示される。この表示状態で、ハイパーリンク付きの接頭語「JMP:」がユーザにより押されると、入力位置が論理構造要素「USAGE」の入力欄197へ移動する。
【0178】
以上のように、この実施の形態11によれば、実施の形態9による効果の他、GUIに基づいて、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行し、チェックや操作の結果を表示されている構造化文書にも反映するようにしたので、条件に違反している論理構造要素の内容の組合せを画面上で簡単に確認することができるという効果が得られる。また、論理構造要素の内容を入力した後瞬時に制約条件のチェックの結果を確認することができるという効果が得られる。
【0179】
実施の形態12.
この発明の実施の形態12は、チェックルール指定を有するスタイル表22において、チェックルールの条件−実行関係に循環が発生していないことを検証するものである。その他の機能については、実施の形態11によるものと同様である。なお、条件−実行関係の循環とは、実行文により論理構造要素の内容が変更された場合に、その変更によりチェックルールが実行され、さらに論理構造要素の内容が変更されていき、無限に処理が停止しないことをいう。
【0180】
図54は、実施の形態12においてスタイル表解析手段12により作成されるスタイル表22における条件−実行関係の一覧の一例を示す図である。
【0181】
この発明の実施の形態12においては、スタイル表解析手段12は、データ保存部2よりスタイル表22を読み出し、タイプ「SET」のチェックルール指定を検索し、タイプ「SET」のチェックルール指定がなされている論理構造要素を変更元とし、そのタイプ「SET」のチェックルール指定の実行文「SET」で指定されている値の代入先である論理構造要素を変更先としてそれらの対応関係のリストを例えば図54に示すように作成する。
【0182】
そして、スタイル表解析手段12は、まず、各対応関係の変更元と変更先が一致しているか否かを調べ、対応関係の変更元と変更先が一致している場合、循環が生じているので、その旨を例えば表示部3に表示して、スタイル表22の設計従事者に通知する。
【0183】
次に、スタイル表解析手段12は、各対応関係における変更先の論理構造要素が別の対応関係における変更元になっているか否かを調べ、ある対応関係における変更先の論理構造要素が別の対応関係における変更元になっている場合には、当該別の対応関係の変更先の論理構造要素が、当該別の対応関係とは異なる対応関係(上記ある対応関係も含む)の変更元になっているか否かを調べる。そして、この処理を、すべての変更先の論理構造要素が変更元の論理構造要素に該当しなくなるまで繰り返し続ける。なお、当該別の対応関係が複数存在する場合には、そのすべての変更先について調べる。
【0184】
そしてこの処理が完了した場合には循環が生じていないので、スタイル表解析手段12は、その旨を通知する。一方、処理の途中で、既に変更元として出現した論理構造要素が、変更先として出現した場合には循環が生じているので、スタイル表解析手段12は、その旨を通知する。
【0185】
例えば、図54に示すように、対応関係のリストが作成された場合において、ルール1の対応関係を起点としたときには、ルール1の対応関係、ルール2の対応関係、ルール3の対応関係、ルール4の対応関係と上述の処理が進んでいき、ルール4の対応関係の変更先である論理構造要素「CAPACITY」がルール1の対応関係の変更元として既に出現しているため、循環が生じている旨の通知がされる。
【0186】
以上のように、この実施の形態12によれば、チェックルールの循環を予め検証するようにしたので、実施の形態11で述べたような実際のチェックルールの実行時に処理の無限循環に陥ることを抑制することができるという効果が得られる。すなわち、スタイル表22設計時に、その命令文の循環実行を検知することができるという効果が得られる。
【0187】
実施の形態13.
図55は、この発明の実施の形態13による構造化文書処理装置1Bの構成を示すブロック図である。図において、1Bは実施の形態13による構造化文書処理装置である。18は、構造化文書21の文書型定義部分において出現するすべてのタグ名を抽出し、それらのタグ名を、タグ名の列として配列するとともに、見出しの列として配列し、さらに、終端の論理構造要素に対応して所定の入力欄指定を配列し、他の指定を空欄にして、スタイル表22と同形式のスタイル表雛形(スタイル表の雛形)25を作成するスタイル表雛形作成手段(スタイル表雛形生成手段)である。
【0188】
なお、図55のその他の構成要素については、実施の形態9によるもの(図35)と同様であるので、その説明を省略する。
【0189】
次に動作について説明する。
図56は、実施の形態13による構造化文書処理装置1Bの動作について説明するフローチャートである。図57は、実施の形態13により作成されるスタイル表雛形25の一例を示す図である。
【0190】
図56において、ステップST21〜ステップST26の処理は、実施の形態9におけるステップST11〜ステップST16の処理(図36)と同様であるので、その説明を省略する。
【0191】
次にステップST27において、スタイル表雛形作成手段18は、ステップST21〜ステップST26の処理により適宜編集された構造化文書21をデータ保存部2から読み出し、その構造化文書21の文書型定義部分において出現するすべてのタグ名を抽出し、それらのタグ名を、タグ名の列として配列するとともに、見出しの列として配列し、さらに、終端の論理構造要素に対応して所定の入力欄指定を配列し、他の指定を空欄にして、スタイル表22と同形式のスタイル表雛形25を例えば図57に示すように作成し、データ保存部2に保存する。なお、図57に示すスタイル表雛形25においては、所定の入力欄指定として「TEXT(8)」が記載される。なお、ステップST27の処理は、ステップST21〜ステップST26の処理と関係なく適宜実行することができる。
【0192】
このように作成されたスタイル表雛形25は、ユーザがスタイル表22を作成するときに使用される。
【0193】
以上のように、この実施の形態13によれば、所定の構造化文書21の文書型定義部分からスタイル表雛形25を作成するので、スタイル表22を作成する作業を省力化することができるという効果が得られる。
【0194】
実施の形態14.
図58は、この発明の実施の形態14による構造化文書処理装置1Cの構成を示すブロック図である。図において、1Cは実施の形態14による構造化文書処理装置である。19は、他の構造化文書で利用する他のスタイル表22Aから、スタイル表雛形作成手段18により作成されたスタイル表雛形25におけるタグ名と一致するタグ名に対する見出し、表組指定、入力欄指定およびチェックルール指定を抽出し、それらの見出し、表組指定、入力欄指定およびチェックルール指定で、スタイル表雛形25において対応する箇所を書き換えるスタイル表流用手段(スタイル表雛形変更手段)である。
【0195】
なお、図58のその他の構成要素については、実施の形態13によるもの(図55)と同様であるので、その説明を省略する。
【0196】
次に動作について説明する。
図59は、実施の形態14による構造化文書処理装置1Cの動作について説明するフローチャートである。図60は、実施の形態14においてスタイル表雛形25へ流用される他のスタイル表22Aの一例を示す図である。図61は、実施の形態14により作成されるスタイル表雛形25の一例を示す図である。
【0197】
図59において、ステップST31〜ステップST37の処理は、実施の形態13におけるステップST21〜ステップST27の処理(図56)と同様であるので、その説明を省略する。ただし、スタイル表雛形作成手段18により作成されたスタイル表雛形25はスタイル表流用手段19に供給される。
【0198】
次にステップST38において、スタイル表流用手段19は、他の構造化文書で利用する他のスタイル表22Aをデータ保存部2から読み出し、当該他のスタイル表22Aから、スタイル表雛形作成手段18により作成されたスタイル表雛形25におけるタグ名と一致するタグ名に対する見出し、表組指定、入力欄指定およびチェックルール指定を抽出し、それらの見出し、表組指定、入力欄指定およびチェックルール指定で、スタイル表雛形25において対応する箇所を書き換え、そのスタイル表雛形25をデータ保存部2に保存する。なお、ステップST37およびステップST38の処理は、ステップST31〜ステップST36の処理と関係なく適宜実行することができる。
【0199】
例えば図57に示すスタイル表雛形25が供給され、他のスタイル表22Aが図60に示すものである場合、スタイル表流用手段19により、スタイル表雛形25におけるタグ名と一致するタグ名「ORDER」,・・・,「SPEED」に対する見出し、表組指定、入力欄指定およびチェックルール指定で、スタイル表雛形25における対応する箇所が書き換えられ、図61に示すスタイル表雛形25が作成され、データ保存部2に保存される。
【0200】
このように作成されたスタイル表雛形25は、ユーザがスタイル表22を作成するときに使用される。
【0201】
以上のように、この実施の形態14によれば、所定の構造化文書21の文書型定義部分からスタイル表雛形25を作成する際にスタイル表22Aを流用するようにしたので、スタイル表22Aに対応する構造化文書とは文書型定義が異なるが多くのタグ名が一致する構造化文書21に対するスタイル表22を作成する作業を省力化できるという効果が得られる。
【0202】
実施の形態15.
図62は、この発明の実施の形態15による構造化文書処理装置1Dの構成を示すブロック図である。図において、1Dは実施の形態15による構造化文書処理装置である。20は、スタイル表雛形作成手段18が読み出した構造化文書21と同一の構造化文書21を読み出し、その文書型定義から、その構造化文書21の論理構造を特定し、その論理構造に対して指定可能な所定の表組指定でスタイル表雛形25における表組指定を書き換える表組構造検出手段(スタイル表雛形生成手段)である。
【0203】
なお、図62のその他の構成要素については、実施の形態14によるもの(図58)と同様であるので、その説明を省略する。
【0204】
次に動作について説明する。
図63は、実施の形態15による構造化文書処理装置1Dの動作について説明するフローチャートである。図64は、図23の構造化文書21の論理構造木を示す図である。図65は、図27の構造化文書21の論理構造木を示す図である。図66は、図31の構造化文書21の論理構造木を示す図である。
【0205】
図63において、ステップST41〜ステップST48の処理は、実施の形態14におけるステップST31〜ステップST38の処理(図59)と同様であるので、その説明を省略する。ただし、スタイル表流用手段19からのスタイル表雛形25は表組構造検出手段20に供給される。
【0206】
次にステップST49において、表組構造検出手段20は、スタイル表雛形作成手段18が読み出した構造化文書21と同一の構造化文書21を読み出し、その文書型定義から、その構造化文書21の論理構造を特定し、その論理構造に対して指定可能な所定の表組指定でスタイル表雛形25における表組指定を書き換え、そのスタイル表雛形25をデータ保存部2に保存する。なお、ステップST47〜ステップST49の処理は、ステップST41〜ステップST46の処理と関係なく適宜実行することができる。
【0207】
例えば、図23に示す構造化文書21が読み出された場合、表組構造検出手段20により、その文書型定義から、その構造化文書21の論理構造が図64に示すように検出される。
【0208】
すなわち表組構造検出手段20は、所定の構造238を構成する論理構造要素「DOOR」239の下位構造240が、論理構造要素「MATERIAL」241、論理構造要素「FINISH」242、論理構造要素「COLOR」243で構成され、論理構造要素「DOOR」239と同様に所定の構造238を構成する論理構造要素「WALL」244および論理構造要素「FLOOR」246の下位構造245,247が、論理構造要素「DOOR」239の下位構造240と同一であることを検出して、所定の構造238の部分を表組レイアウトの範囲とし、スタイル表雛形25における論理構造要素「DOOR」の表組指定として上述の表組指定「TAB2」を書き込み、同様に論理構造要素「FLOOR」の表組指定として上述の表組指定「/TAB2」を書き込む。
【0209】
また、例えば、図27に示す構造化文書21が読み出された場合、表組構造検出手段20により、その文書型定義から、その構造化文書21の論理構造が図65に示すように検出される。なお、記号248はその下位において論理構造要素「SET」249が繰り返し出現することを意味する。
【0210】
この場合、表組構造検出手段20は、繰り返し出現する論理構造要素「SET」249が同一の一連の論理構造要素「SET.NO」,「USAGE」,「CAPACITY」,「DOOR.HAND」250,251,252,253でそれぞれ構成されていることを検出して、繰り返し出現する論理構造要素「SET」249の部分を表組レイアウトの範囲とし、スタイル表雛形25における論理構造要素「SET」の表組指定として上述の表組指定「TAB3」を書き込み、同様に論理構造要素「DOOR.HAND」の表組指定として上述の表組指定「/TAB3」を書き込む。
【0211】
さらに、例えば、図31に示す構造化文書21が読み出された場合、表組構造検出手段20により、その文書型定義から、その構造化文書21の論理構造が図66に示すように検出される。なお、記号257は、付加された論理構造要素「SET.NO」258が0回または1回出現することを意味する。
【0212】
この場合、表組構造検出手段20は、繰り返し出現する論理構造要素「FLOOR」254の下位に繰り返し出現する論理構造要素「SET」255があることを検出して、繰り返し出現する論理構造要素「FLOOR」254の部分を表組レイアウトの範囲とし、スタイル表雛形25における論理構造要素「FLOOR」の表組指定として上述の表組指定「TAB4」を書き込み、同様に論理構造要素「SERVICE」の表組指定として上述の表組指定「/TAB4」を書き込む。
【0213】
以上のように、この実施の形態15によれば、構造化文書21の文書型定義から、その構造化文書21の論理構造を特定し、その論理構造に対して指定可能な所定の表組指定でスタイル表雛形25における表組指定を書き換えるようにしたので、スタイル表22を作成する作業をより省力化することができるという効果が得られる。
【0214】
実施の形態16.
この発明の実施の形態16は、表示部3および入力部4を制御して、スタイル表22をそのまま表組レイアウトで表示し、GUIに基づいて入力された入力データをスタイル表22の各種指定に書き込みスタイル表22を作成するスタイル表作成手段(図示せず)を実施の形態1〜実施の形態15のいずれかに追加したものである。
【0215】
スタイル表作成手段は、スタイル表22作成のためのHTMLによる表示用データを予め保持しており、それらの表示用データに対応する画像をユーザによる入力部4に対する操作に基づいて適宜表示部3に表示するとともに、各種指定に対して入力された値をその表示に反映させ、入力された値をデータ保存部2のスタイル表22に書き込む。
【0216】
次に動作について説明する。
図67は、スタイル表22の各種指定を設定するための画像の一例を示す図である。図68は、表組指定の各種パラメータ(表組みプロパティ)を設定するための画像の一例を示す図である。図69は、入力欄指定およびその各種パラメータ(入力プロパティ)を設定するための画像の一例を示す図である。図70は、チェックルール指定を設定するための画像の一例を示す図である。
【0217】
まず、最初にスタイル表作成手段は、例えば図67に示すように、スタイル表22全体の画像を表示部3に表示する。このとき、各指定の詳細を設定するための「設定」ボタンがそれぞれ表示される。そして、GUIに基づいてユーザによりその「設定」ボタンが押されると、その指定に対応するプロパティを入力するための画像が表示される。
【0218】
すなわち、表組指定の列における「設定」ボタンが押されると、例えば図68に示すように、表組指定の各種パラメータ(表組みプロパティ)を設定するための画像が表示され、入力欄指定の列における「設定」ボタンが押されると、例えば図69に示すように、入力欄指定およびその各種パラメータ(入力プロパティ)を設定するための画像が表示され、チェックルール指定の列における「設定」ボタンが押されると、例えば図70に示すように、チェックルール指定の詳細(チェックプロパティ)を設定するための画像が表示される。
【0219】
そして、これらの画像における入力欄に所望の値が適宜GUIに基づいて入力され、入力された値は、表示部3に表示されるとともにスタイル表22に書き込まれる。
【0220】
次に、各種詳細な指定を実際に行う場合の手順の一例について説明する。
【0221】
例えば図67に示す表示状態においては、表組指定の列における表組の開始位置と終了位置を指定し、その後「設定」ボタンを押すと図68に示す表示状態になり、そこで詳細な表組みプロパティを設定する。また、図67に示す表示状態において、入力欄指定の列における「設定」ボタンを押すと図69に示す表示状態になり、そこで詳細な入力プロパティを設定する。さらに、図67に示す表示状態において、チェックルール指定の列における「設定」ボタンを押すと図70に示す表示状態になり、そこで詳細なチェックプロパティを設定する。そして、図70に示す表示状態においては、「タイプ」の列、「条件」の列および「実行」の列にそれぞれ内容を入力する。また、「挿入」ボタンを押すと、そのルールの上に新規ルールが追加される。一方、「削除」ボタンを押すと、そのルールが削除される。また、「上」ボタンを押すと、そのルールが1つ上に移動する。一方、「下」ボタンを押すと、そのルールが1つ下に移動する。なお、図67に示す表示状態においては、チェックルール指定の列に、その論理構造要素に設定されているチェックルールの数が表示される。
【0222】
以上のように、この実施の形態16によれば、表示部3および入力部4を制御して、スタイル表22をそのまま表組レイアウトで表示し、GUIに基づいて入力された入力データに基づいてスタイル表22を作成するようにしたので、簡単にスタイル表22を作成することができるという効果が得られる。
【0223】
なお、本発明は上記実施の形態1〜実施の形態16に示したものに限定されるものではなく、同様に機能するものであってもよい。例えば、スタイル表22における各指定(「TAB1」など)やその引数の種類などは、上述のものに限定されず、同様に機能する他のものを使用しても勿論同様の効果が得られる。
【0224】
また、上記実施の形態1〜実施の形態16をいわゆるコンピュータなどで構成するようにしてもよい。その場合、上記構造化文書処理装置1,1A,1B,1C,1Dの各構成要素はコンピュータのCPUに対応し、上述の処理により発生する情報(論理構造など)はRAMなどのメモリに一時的に記憶され、CPUを各構成要素として機能させるためのプログラムが例えばデータ保存部2などの記録媒体に記録される。そして、その場合、HTMLビューアとして、一般に使用されているWWW(World Wide Web)ブラウザなどを使用することができる。
【0225】
なお、上記実施の形態13〜実施の形態15においては、スタイル表雛形作成手段18、スタイル表流用手段19、表組構造検出手段20などが実施の形態9に追加されているが、実施の形態1に追加してもよい。その場合には上記実施の形態13〜実施の形態15と同様の効果が得られる。また、上述のHTMLによる各表示用データは、一例であり、本質的に表組レイアウトに関係ない記述(背景の色など)については他のものであっても良い。
【0226】
また、上述のデータ保存部2、表示部3および入力部4は構造化文書処理装置1,1A,1B,1C,1D内に設けるようにしてもよい。
【0227】
【発明の効果】
以上のように、この発明によれば、構造化文書を解析してその構造化文書の論理構造を特定し、特定した構造化文書の論理構造の一部または全部を表組レイアウトに変換する変換ルールを記述したスタイルシートを、表組レイアウトの範囲および形態を指定する所定のスタイル表に基づいて作成し、スタイルシートに基づいて構造化文書を変換して表示するように構成したので、構造化文書の論理構造を表組可能なように記述することなく、スタイル表に基づいて簡単に構造化文書を表組レイアウトで表示することができるという効果がある。すなわち、表組可能な物理構造ではない構造化文書に対して、スタイル表に基づいて各種組版を簡単に指定することができるという効果がある。
【0228】
また、スタイル表を変更するだけで、表組の方向といった表組レイアウトの形態を簡単に変更することができるという効果がある。
【0229】
さらに、スタイル表に基づいて各行において任意のセル数の表組レイアウトで構造化文書を表示することができるという効果がある。
【0230】
さらに、構造化文書を表組レイアウトで表示する際に、簡単に行番号を付加することができるという効果がある。
【0231】
さらに、構造化文書を表組レイアウトで表示する際に、簡単に表全体の見出しや統合的な見出しを付加することができるという効果がある。
【0232】
さらに、論理構造要素間の階層関係を反映した表組みレイアウトで構造化文書を表示することができるという効果がある。
【0233】
この発明によれば、構造化文書を解析し、その構造化文書の論理構造を特定する論理構造特定手段と、表組レイアウトの範囲および形態、並びにGUIに基づく構造化文書へのデータ入力の入力形式を指定するスタイル表に基づいて、論理構造特定手段により特定された構造化文書の論理構造の一部または全部を表組レイアウトに変換する変換ルール、および入力形式に応じた入力欄の記述を出力するための命令文を記述したスタイルシートを作成するスタイルシート作成手段と、スタイルシートに基づいて構造化文書を変換し、入力欄とともに表示し、GUIに基づいて入力欄に対して設定されたデータをその入力欄に表示する構造化文書表示手段と、入力欄に表示されたデータを構造化文書に書き込む入力データ書込手段とを備えるようにしたので、構造化文書の論理構造を表組可能なように記述することなく、スタイル表に基づいて簡単に構造化文書を表組レイアウトで表示することができるとともに、GUIを利用して構造化文書の論理構造要素の内容を簡単に編集することができるという効果がある。
【0234】
この発明によれば、論理構造が複数個の同一の論理構造要素を有し、かつ、それらの論理構造要素に対応する入力欄のうちのいずれか1つに対してデータが入力された場合、複数個の同一の論理構造要素のうちの他の論理構造要素に対応する入力欄に、そのデータを表示するように構成したので、繰り返し出現する論理構造要素に対する入力作業を省力化することができるという効果がある。
【0235】
この発明によれば、GUIに基づいて入力欄に対してデータが入力された場合、そのデータについて、その入力欄に対応する論理構造要素に対する所定の条件が成立するか否かを検証するように構成したので、条件に違反している論理構造要素の内容の組合せを画面上で簡単に確認することができるという効果がある。また、論理構造要素の内容を入力した後瞬時に制約条件のチェックの結果を確認することができるという効果がある。
【0236】
この発明によれば、各論理構造要素に対する所定の条件とその所定の条件に対応する実行文との条件−実行関係を調べ、条件−実行関係の循環が発生しているか否かを検証するように構成したので、実際のチェックルールの実行時に処理の無限循環に陥ることを抑制することができるという効果がある。すなわち、スタイル表設計時に、その命令文の循環実行を検知することができるという効果がある。
【0237】
この発明によれば、構造化文書の論理構造に基づいてスタイル表の雛形を生成するように構成したので、スタイル表の雛形に基づくことにより、スタイル表を作成する作業を省力化することができるという効果がある。
【0238】
この発明によれば、他のスタイル表に基づいてスタイル表の雛形を変更し、新たなスタイル表の雛形を生成するスタイル表雛形変更手段を備えるようにしたので、当該他のスタイル表に対応する構造化文書とは文書型定義が異なるが多くのタグ名が一致する構造化文書に対するスタイル表を作成する作業を省力化できるという効果がある。
【0239】
この発明によれば、構造化文書のうちの表組レイアウトの可能な部分については表組レイアウトとしてスタイル表の雛形を生成するように構成したので、スタイル表を作成する作業をより省力化することができるという効果がある。
【0240】
この発明によれば、所定の表示部および入力部を制御してGUIに基づいてスタイル表を作成するように構成したので、視覚的に確認しながら簡単にスタイル表を作成することができるという効果がある。
【図面の簡単な説明】
【図1】 この発明の実施の形態1による構造化文書処理装置の構成を示すブロック図である。
【図2】 実施の形態1による構造化文書処理装置の動作について説明するフローチャートである。
【図3】 SGMLに基づいて記述された構造化文書の一例を示す図である。
【図4】 図3の構造化文書の論理構造に対応する構造木を示す図である。
【図5】 図3の構造化文書を表組レイアウトで表示するためのスタイル表の一例を示す図である。
【図6】 図5のスタイル表に対応する構造木を示す図である。
【図7】 図4の構造化文書に対応する構造木および図6のスタイル表に対応する構造木より作成される、表示用スタイルシートに対応する構造木の一例を示す図である。
【図8】 図7の構造木に従って作成された表示用スタイルシートの一例を示す図である。
【図9】 図8の表示用スタイルシートに従って、図3の構造化文書を変換した表示用データの一例を示す図である。
【図10】 図9の表示用データに対応する画像の一例を示す図である。
【図11】 実施の形態2におけるスタイル表の一例を示す図である。
【図12】 実施の形態2により図3の構造化文書を変換した表示用データの一例を示す図である。
【図13】 図12の表示用データに対応する画像の一例を示す図である。
【図14】 実施の形態3におけるスタイル表の一例を示す図である。
【図15】 実施の形態3より図3の構造化文書を変換した表示用データの一例を示す図である。
【図16】 図15の表示用データに対応する画像の一例を示す図である。
【図17】 実施の形態4におけるスタイル表の一例を示す図である。
【図18】 実施の形態4により図3の構造化文書を変換した表示用データの一例を示す図である。
【図19】 図18の表示用データに対応する画像の一例を示す図である。
【図20】 実施の形態5におけるスタイル表の一例を示す図である。
【図21】 実施の形態5により図3の構造化文書を変換した表示用データの一例を示す図である。
【図22】 図21の表示用データに対応する画像の一例を示す図である。
【図23】 同一の論理構造が繰り返し出現する構造化文書の一例の一部を示す図である。
【図24】 同一の論理構造が繰り返し出現する構造化文書を、上位階層の論理構造要素の配列を縦方向に、下位階層の論理構造要素の配列を横方向にした表組レイアウトで表示するためのスタイル表の一例を示す図である。
【図25】 実施の形態6により図23の構造化文書を変換した表示用データの一例を示す図である。
【図26】 図25の表示用データに対応する画像の一例を示す図である。
【図27】 同一の論理構造が繰り返し出現する構造化文書の一例の一部を示す図である。
【図28】 同一の論理構造が繰り返し出現する構造化文書を、繰り返し出現する論理構造のうちの1つの論理構造要素の内容を横方向に、他の論理構造要素の配列を縦方向にした表組レイアウトで表示するためのスタイル表の一例を示す図である。
【図29】 実施の形態7により図27の構造化文書を変換した表示用データの一例を示す図である。
【図30】 図29の表示用データに対応する画像の一例を示す図である。
【図31】 同一の論理構造が繰り返し出現する論理構造がさらに繰り返し出現する構造化文書の一部の一例を示す図である。
【図32】 同一の論理構造が繰り返し出現する論理構造がさらに繰り返し出現する構造化文書を、見出し列および見出し行により表組レイアウトで表示するためのスタイル表の一例を示す図である。
【図33】 実施の形態8により図31の構造化文書を変換した表示用データの一例を示す図である。
【図34】 図33の表示用データに対応する画像の一例を示す図である。
【図35】 この発明の実施の形態9による構造化文書処理装置の構成を示すブロック図である。
【図36】 実施の形態9による構造化文書処理装置の動作について説明するフローチャートである。
【図37】 図27の構造化文書を表組レイアウトで表示するためのスタイル表の一例を示す図である。
【図38】 実施の形態9により図27の構造化文書を変換した表示用データの一例を示す図である。
【図39】 図38の表示用データに対応する画像の一例を示す図である。
【図40】 図27の構造化文書を表組レイアウトで表示するとともに、論理構造要素の内容の入力の入力形式を指定し、さらに、繰り返し出現する所定の論理構造要素のうちの1つに入力された値をその所定の論理構造要素のうちの他の論理構造要素に複写する場合のスタイル表の一例を示す図である。
【図41】 実施の形態10により図27の構造化文書を変換した表示用データの一例を示す図である。
【図42】 繰り返し出現する所定の論理構造要素のうちの1つに値が入力された場合に、その値をその所定の論理構造要素のうちの他の論理構造要素に複写するときの動作について説明する図である。
【図43】 繰り返し出現する所定の論理構造要素のうちの1つに値が入力された場合に、その値をその所定の論理構造要素のうちの他の論理構造要素に複写するときの動作について説明する図である。
【図44】 繰り返し出現する所定の論理構造要素のうちの1つに値が入力された場合に、その値をその所定の論理構造要素のうちの他の論理構造要素に複写するときの動作について説明する図である。
【図45】 繰り返し出現する所定の論理構造要素のうちの1つに値が入力された場合に、その値をその所定の論理構造要素のうちの他の論理構造要素に複写するときの動作について説明する図である。
【図46】 繰り返し出現する所定の論理構造要素のうちの1つに値が入力された場合に、その値をその所定の論理構造要素のうちの他の論理構造要素に複写するときの動作について説明する図である。
【図47】 繰り返し出現する所定の論理構造要素のうちの1つに値が入力された場合に、その値をその所定の論理構造要素のうちの他の論理構造要素に複写するときの動作について説明する図である。
【図48】 図27の構造化文書を表組レイアウトで表示するとともに、論理構造要素の内容の入力の入力形式を指定し、さらに、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行する場合のスタイル表の一例を示す図である。
【図49】 実施の形態11により図27の構造化文書を変換した表示用データの一例を示す図である。
【図50】 論理構造要素に値が入力された場合に、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行するときの動作について説明する図である。
【図51】 論理構造要素に値が入力された場合に、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行するときの動作について説明する図である。
【図52】 論理構造要素に値が入力された場合に、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行するときの動作について説明する図である。
【図53】 論理構造要素に値が入力された場合に、論理構造要素に入力された内容に対する制約条件のチェック、論理構造要素に入力された内容に対する条件の成否に応じた他の論理構造要素の内容の操作などを実行するときの動作について説明する図である。
【図54】 実施の形態12においてスタイル表解析手段により作成されるスタイル表における条件−実行関係の一覧の一例を示す図である。
【図55】 この発明の実施の形態13による構造化文書処理装置の構成を示すブロック図である。
【図56】 実施の形態13による構造化文書処理装置の動作について説明するフローチャートである。
【図57】 実施の形態13により作成されるスタイル表雛形の一例を示す図である。
【図58】 この発明の実施の形態14による構造化文書処理装置の構成を示すブロック図である。
【図59】 実施の形態14による構造化文書処理装置の動作について説明するフローチャートである。
【図60】 実施の形態14においてスタイル表雛形へ流用される他のスタイル表の一例を示す図である。
【図61】 実施の形態14により作成されるスタイル表雛形の一例を示す図である。
【図62】 この発明の実施の形態15による構造化文書処理装置の構成を示すブロック図である。
【図63】 実施の形態15による構造化文書処理装置の動作について説明するフローチャートである。
【図64】 図23の構造化文書の論理構造木を示す図である。
【図65】 図27の構造化文書の論理構造木を示す図である。
【図66】 図31の構造化文書の論理構造木を示す図である。
【図67】 スタイル表の各種指定を設定するための画像の一例を示す図である。
【図68】 表組指定の各種パラメータ(表組みプロパティ)を設定するための画像の一例を示す図である。
【図69】 入力欄指定およびその各種パラメータ(入力プロパティ)を設定するための画像の一例を示す図である。
【図70】 チェックルール指定を設定するための画像の一例を示す図である。
【図71】 従来の構造化文書処理方法(第1の従来の技術)について説明する図である。
【図72】 従来の構造化文書処理方法(第1の従来の技術)について説明する図である。
【図73】 従来の構造化文書処理方法(第1の従来の技術)について説明する図である。
【図74】 従来の構造化文書処理装置(第2の従来の技術)を示すブロック図である。
【符号の説明】
1,1A,1B,1C,1D 構造化文書処理装置、11 構造化文書解析手段(論理構造特定手段)、12 スタイル表解析手段(スタイルシート作成手段、循環検証手段)、13 表組構造変換手段(スタイルシート作成手段)、14表示用スタイルシート作成手段(スタイルシート作成手段)、15 構造化文書表示手段、16 入力用スタイルシート作成手段(スタイルシート作成手段)、17 構造化文書保存手段(入力データ書込手段)、18 スタイル表雛形作成手段(スタイル表雛形生成手段)、19 スタイル表流用手段(スタイル表雛形変更手段)、20 表組構造検出手段(スタイル表雛形生成手段)、21 構造化文書、22 スタイル表、22A 他のスタイル表、23 表示用スタイルシート(スタイルシート)、24 入力用スタイルシート(スタイルシート)、25 スタイル表雛形(スタイル表の雛形)。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a structured document processing apparatus and a structured document processing method for displaying a part or all of a structured document by SGML (Standard Generalized Markup Language), XML (extensible Markup Language), etc. in a table layout. .
[0002]
[Prior art]
71, 72, and 73 are diagrams for explaining a conventional structured document processing method (first conventional technique) described in, for example, Japanese Patent Laid-Open No. 10-187726. In this conventional structured document processing method, a structured document is displayed in a table layout by software for editing the structured document.
[0003]
In this conventional structured document processing method, each logical structural element of a structured document with tags (in this case, “paragraph”, “TBLHEAD”, “TBLROWS”, etc.) as shown in FIG. The tag name is displayed together with the structure frame and the structure name in accordance with the correspondence between the tag name and the structure frame and the display designation of the structure name. For example, a logical structure element whose tag name is “TBLCELL” is displayed together with the structure frame, and the structure name is not displayed. For the logical structural element whose tag name is “paragraph”, display / non-display is determined according to the structure frame display designation.
[0004]
In this way, a structured document having a physical structure that can be assembled as shown in FIG. 71 is displayed in a table layout as shown in FIG. 73, for example. A structured document having a physical structure that can be arranged is actually described in a two-layer repeated structure in which each structural element of a series of structural elements is composed of the same series of structural elements. It is a structured document. That is, for example, when a logical structure element composed of six lower logical structure elements is displayed in a 3 × 2 table layout, the six lower logical structure elements are divided into three pieces, so three Two physical structure elements corresponding to the lines composed of the logical structure elements below are described in the structured document.
[0005]
Next, FIG. 74 is a block diagram showing a conventional structured document processing apparatus (second prior art) described in, for example, Japanese Patent Laid-Open No. 10-214265. In the figure, reference numeral 512 denotes an input document document type definition document in which the document type of the input document 511 is defined. Note that the definition of the document type prescribes the appearance order of the constituent elements in the document identified by the structural element identifier in the structured document.
[0006]
An input document 513 having a tree structure that represents the logical structure of the input document 511 after analyzing the logical structure of the input document 511 while referring to the document type definition of the input document 511 described in the input document document type definition document 512. This is a document structure analysis means for creating a structure tree. Reference numeral 514 denotes an input document structure tree buffer for storing the input document structure tree created by the document structure analysis unit 513.
[0007]
Reference numeral 515 denotes a document structure operation instruction document in which an operation instruction for the document structure tree is described. In the document structure operation instruction, procedures for the document structure necessary for processing the structured document intended by the user, such as document conversion and document correctness verification, are described as document structure operation instructions. Reference numeral 516 denotes a document structure operation instruction interpretation execution unit that interprets and executes an operation instruction described in the document structure operation instruction document 515 and generates an output document structure tree expressing the logical structure of the output document from the input document structure tree.
[0008]
517 is a structure element extraction for extracting the contents of the document specified by the structure element identifier from the input document structure tree stored in the input document structure tree buffer 514 in accordance with a predetermined operation instruction described in the document structure operation instruction 515. Means. Reference numeral 518 denotes a condition determination unit that controls the processing contents of a document based on a restriction condition on the contents of the document designated by the structure element identifier in accordance with a predetermined operation instruction described in the document structure operation instruction document 515.
[0009]
When a document structure element repeatedly appears in accordance with a predetermined operation command described in the document structure operation command document 515, a repeat structure 519 interprets and executes an operation command for the contents of each document specified by the structure element identifier. It is a processing means. Reference numeral 520 denotes structural element substitution means for inserting the contents of the document designated by the structural element identifier into the output document structural tree in accordance with a predetermined operational instruction described in the document structural operational instruction 515.
[0010]
Reference numeral 521 denotes an output document structure tree buffer that stores an output document structure tree created by interpreting and executing an operation command by the document structure operation command interpretation execution unit 516. Reference numeral 522 denotes an output document document type definition document in which the document type of the output document 524 output from the apparatus is defined. Reference numeral 523 denotes document structure generation means for generating an output document from the output document structure tree with reference to the document type definition described in the output document document type definition document 522.
[0011]
Next, the operation will be described.
The document structure analysis unit 513 converts the input document 511 that has been input into an input document structure tree according to the input document document type definition document 512, and stores the input document structure tree in the input document structure tree buffer 514.
[0012]
Next, the sentence structure operation instruction interpretation execution means 516 executes the operation described in the document structure operation instruction document 515 on the input document structure tree, and outputs an output document structure tree as an operation execution result. It is stored in the document structure tree buffer 521.
[0013]
Then, the document structure generation unit 523 converts the output document structure tree into an output document 524 that is a structured document according to the output document document type definition document 522, and outputs the output document 524.
[0014]
In this way, in this conventional structured document processing apparatus, operations such as checking of constraints between logical structural elements and conversion, composition, and division of a plurality of documents are executed.
[0015]
In addition to the above, conventional techniques include those described in JP-A-6-131339, those described in JP-A-7-6162, those described in JP-A-10-116270, There are those described in Kaihei 10-116275, those described in JP-A-10-116281, and those described in JP-A-10-171809.
[0016]
[Problems to be solved by the invention]
Since the conventional structured document processing method (first conventional technique) and the structured document processing apparatus (second conventional technique) are configured as described above, in the first conventional technique, a table set is used. It is difficult to display a structured document that does not have a possible physical structure as it is in a table layout, and the structured document must be designed in advance with a physical structure that can be set in a table layout. There is a problem that it is difficult to simplify the design of structured documents.
[0017]
Also, in a structured document, it is necessary to describe complicated tags to specify formatting such as setting the direction of a table, describing table headings, and combining multiple cells in the row or column direction of the table. There is a problem that it is difficult for a person who is not an expert to specify the typesetting easily and accurately.
[0018]
On the other hand, in the second conventional technique, when the tag name and content of the logical structure element satisfy the condition according to the condition described in the document structure operation instruction and the instruction sentence corresponding to the condition, the instruction sentence is interpreted and executed. When a constraint check is executed, the result of the check is written in the output document. Therefore, the document designer must check the result in the output document. However, there is a problem that it is difficult to confirm the result of the constraint check.
[0019]
In addition, when changing the contents of a logical structure element in accordance with the statement in the document structure operation instruction, the contents of the logical structure element are changed again in accordance with another instruction sentence due to the change in the contents of the logical structure element. However, there is a problem that it is difficult to detect the cyclic execution of the imperative sentence when designing the document structure operation instruction.
[0020]
The present invention has been made to solve the above-described problems. A style sheet describing a conversion rule for analyzing a structured document, specifying a logical structure, and converting the specified logical structure into a table layout is provided. A structured document that is not based on a physical structure that can be composed by creating a table based on a specified style table that specifies the range of the table layout, converting the structured document based on the style sheet, and displaying it. On the other hand, an object of the present invention is to obtain a structured document processing apparatus and a structured document processing method that can easily specify various typesettings based on a style table.
[0021]
Further, the present invention displays data set in an input field based on a graphical user interface (GUI), and when data is input to the input field, the logical structure element corresponding to the input field is displayed. It is verified whether or not the data satisfies a predetermined constraint condition, and when the constraint condition is satisfied, a predetermined value is set in the logical structure element based on a command statement corresponding to the constraint condition. Thus, an object of the present invention is to provide a structured document processing apparatus and a structured document processing method capable of confirming the result of a constraint check instantly after inputting the contents of a logical structure element.
[0022]
Further, the present invention sequentially searches for a condition-execution relationship between a predetermined constraint condition for each logical structure element and a command statement corresponding to the predetermined constraint condition to determine whether a cycle of the condition-execution relationship has occurred. It is an object of the present invention to obtain a structured document processing apparatus and a structured document processing method capable of detecting circular execution of a command statement when designing a style table.
[0024]
[Means for Solving the Problems]
  The structured document processing apparatus according to the present invention analyzes a structured document, specifies a logical structure of the structured document, specifies a logical structure of the structured document, a range and form of a table layout, and a structured document based on a GUI. Based on the style table that specifies the input format of the data input, the conversion rule for converting part or all of the logical structure of the structured document specified by the logical structure specifying means into a table layout, and the input format Style sheet creation means for creating a style sheet describing a statement for outputting the description of the input field, and a structured document is converted based on the style sheet, displayed together with the input field, and displayed in the input field based on the GUI. Structured document display means for displaying data set for the input field in the input field, and input data writing for writing the data displayed in the input field to the structured document It is intended and a stage.
[0025]
In the structured document processing apparatus according to the present invention, a logical structure has a plurality of identical logical structure elements, and data is stored in any one of input fields corresponding to the logical structure elements. When input, the data is displayed in an input field corresponding to another logical structure element among a plurality of identical logical structure elements.
[0026]
In the structured document processing apparatus according to the present invention, when data is input to the input field based on the GUI, whether or not a predetermined condition for the logical structure element corresponding to the input field is satisfied for the data. Is to verify.
[0027]
In the structured document processing apparatus according to the present invention, when a predetermined condition for the logical structure element corresponding to the input field is satisfied for the input data, a predetermined value is set based on the executable statement corresponding to the condition. It is set in the logical structure element.
[0028]
The structured document processing apparatus according to the present invention examines a condition-execution relationship between a predetermined condition for each logical structure element and an executable statement corresponding to the predetermined condition, and whether or not a circulation of the condition-execution relationship has occurred. A circulation verification means for verifying the above is provided.
[0029]
The structured document processing apparatus according to the present invention generates a command statement for a table layout corresponding to a logical structure element at the end of a logical structure by a conversion rule described in a style sheet.
[0030]
The structured document processing apparatus according to the present invention comprises a style table template generating means for generating a style table template based on the logical structure of the structured document.
[0031]
The structured document processing apparatus according to the present invention comprises style table template changing means for changing a style table template based on another style table and generating a new style table template.
[0032]
In the structured document processing apparatus according to the present invention, the style table template generation means generates a style table template as a table layout for a portion of the structured document in which a table layout is possible.
[0033]
The structured document processing apparatus according to the present invention includes a style table creating unit that creates a style table based on a GUI by controlling a predetermined display unit and an input unit.
[0034]
  A structured document processing method according to the present invention includes:Analyzing the structured document by the logical structure specifying means and specifying the logical structure of the structured document; and by using the style sheet creating means, the range and form of the table layout and the structured document based on the GUI A conversion rule for converting a part or all of the logical structure of the structured document specified by the logical structure specifying means into a table layout based on a style table that specifies an input format of data input of the data, and the input format A step of creating a style sheet describing a statement for outputting a description of an input field according to the step, a step of converting and displaying the structured document based on the style sheet, and a structured document display means The structured document is converted based on the style sheet, displayed together with the input field, and based on the GUI Comprising a step of displaying the data set for the force field in the input field, the input data writing means, and writing the data displayed on the input field to the structured documentIs.
[0035]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing the structure of a structured document processing apparatus 1 according to Embodiment 1 of the present invention. In the figure, 1 is a structured document processing apparatus, 2 is a structured document 21 described based on SGML, XML, etc., and the range to be displayed in a table layout of the structured document 21 and the display form are designated. A data storage unit such as a hard disk drive device for storing a style table 22 and a display style sheet (style sheet) 23 corresponding to the above-described document structure operation instruction created by the structured document processing apparatus 1; Is a display unit such as a display for displaying a part or all of the structured document 21 in a table layout.
[0036]
In the structured document processing apparatus 1, reference numeral 11 denotes structured document analysis means (logical structure specifying means) for analyzing the structured document 21 and specifying its logical structure. Reference numeral 12 denotes style table analysis means (style sheet creation means, circulation verification means) for specifying the range and display form of the structured document 21 to be displayed in the table layout from the style table 22.
[0037]
13 generates a conversion rule for converting the structured document 21 into a table layout corresponding to the logical structure based on the range of the structured document 21 to be displayed in the table layout and information on the display form. This is a table structure conversion means (style sheet creation means) for generating a logical structure for the display style sheet 23 by adding a conversion rule to the terminal logical structure element in the logical structure of the document 21. Reference numeral 14 denotes a display style sheet creating means (style sheet creating means) that creates a display style sheet 23 by writing a command statement in SGML or the like based on the logical structure of the display style sheet 23 and stores it in the data storage unit 2. ).
[0038]
15 converts the structured document 21 into display data in a table layout according to a command statement described in the display style sheet 23, and displays an image corresponding to the display data on the display unit 3. Document display means.
[0039]
Next, the operation will be described.
FIG. 2 is a flowchart for explaining the operation of the structured document processing apparatus 1 according to the first embodiment. FIG. 3 is a diagram illustrating an example of the structured document 21 described based on SGML, and FIG. 4 is a diagram illustrating a structure tree corresponding to the logical structure of the structured document 21 in FIG. FIG. 5 is a diagram showing an example of a style table for displaying the structured document 21 of FIG. 3 in a table layout. FIG. 6 is a diagram showing a structural tree corresponding to the style table 22 of FIG. . 7 is a diagram showing an example of a structure tree corresponding to the display style sheet 23 created from the structure tree corresponding to the structured document 21 in FIG. 4 and the structure tree corresponding to the style table 22 in FIG. FIG. 8 is a diagram showing an example of the display style sheet 23 created according to the structural tree of FIG. 9 is a diagram showing an example of display data obtained by converting the structured document 21 shown in FIG. 3 in accordance with the display style sheet 23 shown in FIG. 8. FIG. 10 shows an image corresponding to the display data shown in FIG. It is a figure which shows an example.
[0040]
First, in step ST1, the structured document analysis means 11 of the structured document processing apparatus 1 reads the structured document 21 from the data storage unit 2, identifies the logical structure of the structured document 21, and obtains information on the logical structure. This is supplied to the table structure conversion means 13.
[0041]
For example, in the structured document 21 shown in FIG. 3, the description 105 from “<! DOCTYPE” to the description 108 from “]>” is a document type definition part (DTD). Defined. For example, the description 106 defines that a logical structure element “ORDER.SPEC” is composed of three lower-level logical structure elements “HEADER”, “BASIC.ITEM”, and “DESIGN.ITEM”. Further, the description 107 defines that the logical structure element “SPEED” is a terminal element having no lower logical structure element. The part after the description 108 is a part called a document instance, and the actual contents of the document are described according to the structure defined in the document type definition. In the document instance, the document content is described by separating each logical structure element with a tag.
[0042]
The description 109 is a start tag, which indicates that the content 110 (in this case, “XYZ12345”) of the logical structure element whose tag name is “ORDER” starts from here. The description 111 is an end tag, which indicates that the content 110 of the logical structure element whose tag name is “ORDER” ends here.
[0043]
Then, the logical structure of the structured document 21 is specified by the structured document analyzing means 11 and expressed by a structure tree as shown in FIG. In this structural tree, logical structural elements such as the logical structural element “ORDER. SPEC” 112 are expressed as nodes, and the correspondence relationship with lower logical structural elements such as the logical structural element “HEADER” 113 connects the nodes. It is expressed as a line. The leaf 114 represents that the logical structure element “ORDER” is the terminal element, and has the contents of the logical structure element at the terminal (“XYZ12345” in the case of the logical structure element “ORDER”).
[0044]
Next, in step ST2, the style table analysis unit 12 reads the style table 22 from the data storage unit 2, identifies the range and display form to be displayed in the table layout in the structured document 21, and displays the information. This is supplied to the set structure conversion means 13.
[0045]
For example, in the style table 22 shown in FIG. 5, the column 115 is a tag name column, and the column 116 is a heading column. The heading is a name to be displayed for identifying the logical structure element. When the heading is not specified, the tag name is used as the heading. Special characters in the heading character string are described with “&” and “;” sandwiching the special character name. For example, “&br;” represents a line feed character.
[0046]
A column 117 is a column for designating a table set. In FIG. 5, the range in which the tag name “ORDER” is designated as the start position by the table designation “TAB1” and the tag name “SPEED” is designated as the end position by the table designation “/ TAB1” is represented as one table. The range to be displayed in the layout. Then, the value of the table property specifying the form of the table layout is specified by the argument “TAB1”.
[0047]
First, the table composition direction and the number of cells in that direction are designated by the first and second arguments of “TAB1”. The table composition direction is specified by a value “H” indicating the horizontal direction or a value “V” indicating the vertical direction. A cell is the smallest unit constituting a table, and is specified by a row number and a column number in the table. Therefore, for example, when the first and second arguments of “TAB1” are “H, 3”, the table is arranged in three columns in the horizontal direction.
[0048]
Next, the third, fourth, and fifth arguments of “TAB1” specify the thickness of the table border, the space between cells, and the margin around the character string displayed in the cell, in pixel units. The Further, the background color of the heading cell and the background color of other cells are respectively designated by the sixth and seventh arguments of “TAB1”. Note that the eighth argument of “TAB1” is an option and will be described in the fourth embodiment. When the option is not used, the eighth argument is set to “−”.
[0049]
And the structure of this style table 22 is specified by the style table analysis means 12, and is represented by a structure tree as shown in FIG. Each node “RULE” 118 corresponds to each row of the style table 22, and each node “TARGET-ELEMENT” 119 linked to the node “RULE” 118 corresponds to the tag name column 115 of the style table 22. is there. The leaf 120 linked to the node “TARGET-ELEMENT” 119 has the contents of each tag name. That is, each leaf 120 holds the contents of the tag name “ORDER. SPEC”, “HEADER”, “BASIC. ITEM”, “ORDER”, “PROJECT”,..., “SPEED”.
[0050]
Further, each node “LABEL” 121 linked to the node “RULE” 118 corresponds to the column 116 of the heading of the style table 22, and each node “TABLE” 122 linked to the node “RULE” 118 corresponds to the style table 22. Corresponds to the column 117 of the table set designation. The leaf 120 linked to the node “LABEL” 121 and the node “TABLE” 122 has the contents of the heading and the contents of the table designation. Note that the tag name in the style table 22 and the contents of the heading and table set designation corresponding to the tag name are the node “TARGET-ELEMENT” and the node “LABEL” 121 linked to the same node “RULE” 118. And the leaves 120 respectively linked to the node “TABLE” 122.
[0051]
Next, in step ST3, the table structure conversion means 13 creates a table layout corresponding to the logical structure of the structured document 21 based on the range of the structured document 21 displayed in the table layout and information on the display form. A conversion rule to be converted is generated, and the conversion rule is added corresponding to each terminal logical structure element in the logical structure of the structured document 21 to generate the logical structure of the display style sheet 23.
[0052]
For example, the table tree structure conversion means 13 converts the structure tree of the style table 22 of FIG. 6 into the structure tree shown in FIG. 7 in consideration of the structure tree of the structured document 21 of FIG. That is, the node “ACTION” 123 is changed to the node “RULE” 118 instead of the node “LABEL” 121 and the node “TABLE” 122 corresponding to the tag name that is the terminal element in the structure tree of the style table 22 in FIG. Further, the node “ACTION.” 123 is linked to a node “ACTION.PRE” 124 indicating a conversion rule to be executed immediately before the appearance of the tag name, and a node “ACTION.PRE.” Indicating a conversion rule to be executed immediately after the appearance of the tag name. “POST” 125 is appropriately linked. The contents of the conversion rule are held in the leaf 120 linked to the node “ACTION.PRE” 124 and the node “ACTION.POST” 125.
[0053]
In order to describe the display data of the structured document 21 in HTML (HyperText Markup Language), which is a subset of SGML, the conversion rules in FIG. 7 are described according to HTML. The reason why HTML is used in this way is that it is possible to omit the creation of a style definition for each tag for a table by SGML by using the style definition for each tag by HTML. Therefore, a markup language having another style definition may be used without using HTML, or a new style definition may be made with SGML.
[0054]
For example, for the tag name “ORDER”, the conversion rule “executed immediately before processing the logical structure element of the tag name“ ORDER ”“
printf ("<TABLE BORDER = 1 CELLSPACING = 0 CELLLPADDING = 1>");
printf ("<TR VALIGN = BOTTOM ALIGN = CENTER BGCOLOR = SKYBLUE>");
printf ("<TD> order number <TD> construction name <TD> country name");
printf ("<TR VALIGN = TOP ALIGN = CENTER BGCOLOR = WHITE>");
printf ("<TD>% s", $ content);
126 is assigned.
[0055]
This conversion rule is created corresponding to the table set designation “TAB1 (H, 3, 1, 0, 1, SKYBLUE, WHITE, −)” corresponding to the tag name “ORDER” shown in FIGS. 5 and 6. Yes. That is, based on the third, fourth, and fifth arguments “1, 0, 1” of “TAB1,” the statement “printf (” <TABLEF = 1 ”CELLSPADDING = 1> is output. BORDER = 1 CELLSPACING = 0 CELLLPADDING = 1> ”);” is generated, and “<TR VALIGN = BOTTOM ALIGN = CENTER BGCOLOR = SKYBLUE>” is output based on the sixth argument “SKYBLUE” of “TAB1”. "Printf (" <TR VALIGN = BOTTOM ALIGN = CENTER BGCOLOR = SKYBLUE> ");" is created.
[0056]
Here, “<TABLE BORDER = 1 CELLSPACING = 0 CELLLPADDING = 1>” is the designation of the start of the table composition in HTML. The frame line thickness is 1 pixel, the interval between cells is 0 pixel, and the margin around the character string displayed in the cell is 1 pixel. Further, “<TR VALIGN = BOTTOM ALIGN = CENTER BGCOLOR = SKYBLUE>” is the designation of the first row of the table, and “VALIGN = BOTTOM”, “ALIGN = CENTER” and “BGCOLOR = SKYBLUE” are vertical directions. Is bottom-aligned, horizontal is center-aligned, and specifies that sky blue is the default value for the background color in the row.
[0057]
In the first embodiment, the vertical direction of the header cell is always designated as center alignment, the horizontal direction is determined by the table composition direction by the argument “TAB1”, and the table composition direction is the horizontal direction (the argument is "H") is designated as bottom alignment, and when the table composition direction is vertical (argument is "V"), it is designated as right alignment.
[0058]
Also, based on the first and second arguments “H, 3” of “TAB1,” the heading “order number” corresponding to the tag name “ORDER” and the three tag names “ORDER”, “PROJECT”, and “COUNTRY” , "Printf (" <TH> order number <TH> construction "which outputs" <TH> order number <TH> construction name <TH> country name ")" corresponding to "construction name" and "country name" Name <TH> country name ");" is generated, and "<TR VALIGN = TOP ALIGN = CENTER BGCOLOR = WHITE>" is output from the statement "printf (" <TR VALIGN = TOP ALIGN = CENTER BGCOLOR = WHITE> ");" is created.
[0059]
Here, “<TH> order number” is a designation for displaying “order number” in a table cell, and each time “<TH>” appears, the displayed cell moves one by one from left to right. .
[0060]
Then, a command statement “printf (“ <TD>% s ”, $ content);” for displaying the contents of the logical structure element to be assigned to the variable “$ content” is added. For example, when the structured document 21 of FIG. 3 is processed, the content “XYZ12345” of the logical structure element with the tag name “ORDER” is substituted into the variable “$ content”.
[0061]
Similarly, a command sentence “printf (“ <TD>% s ”, $ content);” 127 is assigned as a conversion rule to the tag name “PROJECT”. For example, when the structured document 21 in FIG. 3 is processed, the content “Yokohama skyscraper building” of the logical structure element of the tag name “PROJECT” is assigned to the variable “$ content”, It is designated to output “<TD> Yokohama Skyscraper Building” immediately before the processing of the logical structure element “PROJECT”.
[0062]
Similarly, a conversion rule is assigned to each tag name. Finally, as a conversion rule to be executed immediately before the processing of the logical structure element “SPEED” for the tag name “SPEED”, the statement “printf (” <TD>% s ”, $ content);” is assigned, and the statement “printf (” <) is used to output “</ TABLE>” as a conversion rule to be executed immediately after processing of the logical structure element “SPEED”. / TABLE> ");" is assigned. “</ TABLE>” is the designation of the end of the table group in HTML.
[0063]
Next, in step ST4, the display style sheet creation means 14 creates a display style sheet 23 by writing a command statement in SGML or the like based on the logical structure generated by the table structure conversion means 13, and saves the data. Save to part 2.
[0064]
For example, the display style sheet 23 shown in FIG. 8 is created by the display style sheet creation means 14 from the structural tree of FIG. As described above, when each conversion rule is embedded in the display style sheet 23 as it is and the same tag name as the content of the logical structure element specified by the tag “target-element” in FIG. 8 appears in the structured document 21. , Each command statement of the conversion rule specified by the tag “action” (conversion rules specified by the tags “action.pre” and “action.post”) is executed, and a table structure is displayed in the logical structure element of the structured document 21. A description for layout is added, and the structured document 21 is converted into display data.
[0065]
In step ST5, the structured document display means 15 reads the structured document 21 and the display style sheet 23 from the data storage unit 2, and displays the structured document 21 in accordance with the command statement described in the display style sheet 23. The data is converted into display data in the group layout, and an image corresponding to the display data is displayed on the display unit 3.
[0066]
For example, when the display style sheet 23 of FIG. 8 is applied to the structured document 21 of FIG. 3 by the structured document display means 15, the structured document 21 of FIG. 3 is displayed by the HTML shown in FIG. The data corresponding to the display data is displayed on the display unit 3 as shown in FIG. 10 by the HTML viewer built in the structured document display means 15. In this case, an HTML viewer is used because it is converted to display data in HTML. However, when another markup language is used, a viewer corresponding to the HTML viewer is used.
[0067]
As described above, according to the first embodiment, a statement for table layout is added corresponding to the terminal logical structure element in the structured document 21, and the display style sheet 23 is displayed from the style table 22. Since the structured document 21 is displayed in a table layout based on the display style sheet 23, the logical structure of the structured document 21 is not described so that it can be arranged in a style. Based on the table 22, the structured document 21 can be easily displayed in a table layout. That is, there is an effect that various typesettings can be easily specified based on the style table 22 for the structured document 21 that is not a physical structure capable of table setting.
[0068]
Embodiment 2. FIG.
The second embodiment according to the present invention displays the structured document 21 in a vertical table layout.
[0069]
Here, the style table 22 according to the second embodiment will be described, and the other components are the same as those according to the first embodiment, and thus the description thereof will be omitted. FIG. 11 is a diagram showing an example of the style table 22 in the second embodiment.
In order to make the table set in the vertical direction, as shown in FIG. 11, the value of the first argument 131 of the table set designation “TAB1” is set to “V”. Thereby, as described above, the table composition direction becomes the vertical direction, and the horizontal direction of the header cell is designated to be right aligned.
[0070]
Next, the operation will be described.
12 is a diagram illustrating an example of display data obtained by converting the structured document 21 of FIG. 3 according to the second embodiment. FIG. 13 is a diagram illustrating an example of an image corresponding to the display data of FIG. is there.
[0071]
From the style table 22 and the structured document 21, the structured document analyzing means 11, the style table analyzing means 12, the table structure converting means 13 and the display style sheet creating means 14 are used for display as in the first embodiment. A style sheet 23 is created and the structured document display means 15 applies the display style sheet 23 to the structured document 21 to create display data. An image corresponding to the display data is displayed on the display unit 3. Is displayed.
[0072]
For example, when the style table 22 of FIG. 11 and the structured document 21 of FIG. 3 are used, display data by HTML shown in FIG. 12 is created, and an image corresponding to the display data is shown in FIG. As shown in FIG.
[0073]
As described above, according to the second embodiment, in addition to the effects of the first embodiment, it is possible to easily change the table layout form such as the direction of the table by simply changing the style table 22. The effect is obtained.
[0074]
Embodiment 3 FIG.
In the third embodiment according to the present invention, when a structured document is displayed in a table layout, the position of a line break or line break can be specified.
[0075]
Here, the style table 22 according to the third embodiment will be described, and the other components are the same as those according to the first embodiment, and the description thereof will be omitted. FIG. 14 is a diagram showing an example of the style table 22 in the third embodiment.
In the case of a horizontal table layout, in order to specify a line break position, as shown in FIG. 14, a table group designation “LF” 141 is described corresponding to the tag to be inserted immediately before. In the case of a vertical table layout, in order to specify a column break position, a table column designation “LF” is described corresponding to the tag to be rearranged immediately before. Then, as will be described later, the table style structure conversion means 13 and the display style sheet creation means 14 create a display style sheet 23 based on this table designation.
[0076]
Next, the operation will be described.
FIG. 15 is a diagram illustrating an example of display data obtained by converting the structured document 21 of FIG. 3 from Embodiment 3. FIG. 16 is a diagram illustrating an example of an image corresponding to the display data of FIG. is there.
[0077]
Structured document analysis means 11 and style table analysis means 12 operate in the same manner as in the first embodiment. Then, the table structure structure conversion means 13 retrieves the table group designation when the table group designation “TAB1” appears, and if the table group designation “LF” is detected, it corresponds to the table group designation “LF”. Create a conversion rule so that a line break (or line break) occurs immediately before the tag to be executed. The display style sheet 23 is created by the display style sheet creating means 14 based on the logical structure including the conversion rule created in this way.
[0078]
Then, the structured document display means 15 applies the display style sheet 23 to the structured document 21 to create display data, and an image corresponding to the display data is displayed on the display unit 3.
[0079]
For example, when the style table 22 of FIG. 14 and the structured document 21 of FIG. 3 are used, display data by HTML shown in FIG. 15 is created, and an image corresponding to the display data is shown in FIG. As shown in FIG. That is, in order to display a table with a line break in front of the cell for the logical structure element “COUNTRY”, a table designation “LF” corresponding to the logical structure element “COUNTRY” as shown in the style table 22 of FIG. Is described. Then, based on this style table 22, as shown in FIG. 16, a table set of three columns is normally specified in the horizontal direction, and the cell of “country name” is displayed in the next row. Are two columns, a cell of “order number” and a cell of “construction name”, and a cell of “country name” is a cell in the first column of the second row.
[0080]
In this case, the description “COLSPAN = 2” in HTML is output to the display data by a command statement, so that two columns of “construction name” cells are combined and the number of columns in the first row is adjusted to 3. If the last logical structure element (in this case, “SPEED”) is not placed in the third column, the description “COLSPAN = 2” or “COLSPAN = 3” (in this case “COLSPAN”) is similarly applied. = 3 "(FIG. 15)) is output by a command statement, thereby adjusting the number of columns in the last row to 3.
[0081]
As described above, according to the third embodiment, in addition to the effects of the first embodiment, it is possible to specify a line break or line break position by specifying a predetermined table set in the style table. The structured document can be displayed in a table layout with an arbitrary number of cells in each row based on the style table.
[0082]
Embodiment 4 FIG.
In the fourth embodiment according to the present invention, when a structured document is displayed in a table layout, a line number is displayed in each line.
[0083]
Here, the style table 22 according to the fourth embodiment will be described, and the other components are the same as those according to the first embodiment, and the description thereof will be omitted. FIG. 17 is a diagram illustrating an example of the style table 22 according to the fourth embodiment.
In order to display the row number in each row, as shown in FIG. 17, the value of the eighth argument 151 of the table group designation “TAB1” is set to a predetermined value “LNUM”. Others are the same as the style table 22 (FIG. 14) in the third embodiment. Then, as will be described later, the table style structure conversion means 13 and the display style sheet creation means 14 create a display style sheet 23 based on this table designation.
[0084]
Next, the operation will be described.
18 is a diagram showing an example of display data obtained by converting the structured document 21 of FIG. 3 according to the fourth embodiment. FIG. 19 is a diagram showing an example of an image corresponding to the display data of FIG. is there.
[0085]
Structured document analysis means 11 and style table analysis means 12 operate in the same manner as in the first embodiment. Then, the table group structure conversion means 13 displays the row number at the head of each row when the table group designation “TAB1” appears and the value of the eighth argument 151 is a predetermined value “LNUM”. Create a conversion rule to The display style sheet 23 is created by the display style sheet creating means 14 based on the logical structure including the conversion rule created in this way.
[0086]
Then, the structured document display means 15 applies the display style sheet 23 to the structured document 21 to create display data, and an image corresponding to the display data is displayed on the display unit 3.
[0087]
For example, when the style table 22 of FIG. 17 and the structured document 21 of FIG. 3 are used, display data by HTML shown in FIG. 18 is created, and an image corresponding to the display data is shown in FIG. As shown in FIG. That is, in order to add a row number to each row of the table composed of the logical structure element “ORDER” to the logical structure element “SPEED”, a table group indicating the start position of the table group as in the style table 22 of FIG. A predetermined value “LNUM” is described in the eighth argument 151 of the designation “TAB1”. Then, based on this style table 22, a description “<TD VALIGN = CENTER ALIGN = CENTER ROWSPAN = 2 BGCOLOR = WHITE> <FONT SIZE = −1> 3 </ FONT> ”(When the line number is 3) is output as a command statement, the line number is displayed at the beginning of each line as shown in FIG.
[0088]
Note that the line numbers are consecutive numbers in the entire structured document 21, and in this case, the first and second lines (not shown) appear in the structured document 21, so that FIG. In FIG. 19, the line number starts from “3”, and the line numbers “3”, “4”, and “5” are respectively displayed. However, the line number does not have to be a continuous number in the entire structured document 21, and the process may be changed so that the line number starts from 1 for each table.
[0089]
As described above, according to the fourth embodiment, in addition to the effects of the first embodiment, the line numbers are displayed by designating a predetermined table set in the style table 22, so the structured document 21 is displayed. When displaying in a table layout, it is possible to easily add line numbers.
[0090]
In the fourth embodiment, the row number is displayed in each row of the table in the horizontal table layout. Similarly, the column number is displayed in each column of the table in the vertical table layout. It can also be made to do.
[0091]
Embodiment 5. FIG.
In the fifth embodiment according to the present invention, when a structured document is displayed in a table layout, a heading about a table can be displayed and an integrated heading for a plurality of logical structural elements can be displayed. Is.
[0092]
Here, the style table 22 according to the fifth embodiment will be described, and the other components are the same as those according to the first embodiment, and the description thereof will be omitted. FIG. 20 is a diagram showing an example of the style table 22 in the fifth embodiment.
In order to display a heading for a table, as shown in FIG. 20, a table group designation “CAPTION” 161 using the contents of the heading as an argument as a table group designation corresponding to the logical structure element in which the table group layout is started. In order to display an integrated heading for a plurality of logical structure elements, a table group specification that uses the contents of the heading as an argument as a table group specification corresponding to the logical structure element that starts the table layout "PARENT" 162 is described. Others are the same as the style table 22 (FIG. 17) in the fourth embodiment. Then, as will be described later, the table style structure conversion unit 13 and the display style sheet creation unit 14 create a display style sheet 23 based on these table group designations.
[0093]
Next, the operation will be described.
FIG. 21 is a diagram illustrating an example of display data obtained by converting the structured document 21 of FIG. 3 according to the fifth embodiment. FIG. 22 is a diagram illustrating an example of an image corresponding to the display data of FIG. is there.
[0094]
Structured document analysis means 11 and style table analysis means 12 operate in the same manner as in the first embodiment. Then, when the table group designation “CAPTION” 161 appears, the table group structure conversion means 13 creates a conversion rule for displaying the contents of the argument as a table header, and a plurality of continuous or one logical structure When the table designation “PARENT” 162 appears corresponding to the element, a conversion rule for displaying the contents of the argument is created as an integrated heading higher than the heading of the logical structure element.
[0095]
For example, in accordance with the table set designation “CAPTION (basic item, LEFT, +1)” of the style table 22 in FIG. 20, the heading “basic item” is output in a left-aligned manner in accordance with the second argument. A conversion rule is created. The third argument specifies the size of the heading character. In addition, according to the table set designation “PARENT (1, order)” of the style table 22 of FIG. 20, according to the first argument, the logical structure elements “ORDER” and “PROJECT” on the “1” hierarchy, the second argument In response, a conversion rule for outputting an integrated heading “order” is created.
[0096]
The display style sheet 23 is created by the display style sheet creating means 14 based on the logical structure including the conversion rule created in this way.
[0097]
Then, the structured document display means 15 applies the display style sheet 23 to the structured document 21 to create display data, and an image corresponding to the display data is displayed on the display unit 3.
[0098]
For example, when the style table 22 in FIG. 20 and the structured document 21 in FIG. 3 are used, display data in HTML shown in FIG. 21 is created, and an image corresponding to the display data is shown in FIG. Is displayed on the display unit 3 as described above. That is, in order to add a heading for the entire table, a table set designation “CAPTION” is described corresponding to the logical structure element at the start position of the table set as in the style table 22 of FIG. In order to add, a table designation “PARENT” is described corresponding to the logical structure element to which the heading is added. Then, based on this style table 22, as shown in FIG. 21, for example, “<CAPTION> <DIV ALIGN = LEFT> <FONT SIZE = + 1> basic item </ FONT> </ DIV> </ CAPTION>” FIG. 22 shows a description for displaying the heading of the table according to the above and a description for displaying a heading integrated heading such as “<TH COLSPAN = 2> order” in the display data by the command sentence. As shown, the table heading and the upper heading are displayed.
[0099]
However, in the case of describing the upper integrated heading, in addition to the description displaying the upper integrated heading “<TH COLSPAN = 2> order”, the description for adjusting the display of the subsequent heading (see FIG. 21, the description “<TH ROWSPAN = 2>” immediately after “Order” and the description “<TR VALIGN = BOTTOM ALIGN = CENTER BGCOLOR = SKYBLUE>” on the next line are also output to the display data by the command statement. The
[0100]
As described above, according to the fifth embodiment, in addition to the effects of the first embodiment, by specifying a predetermined table set in the style table 22, the heading and logical structure elements of the entire table can be integrated at a higher level. Since the headings are displayed, when the structured document 21 is displayed in a table layout, the heading of the entire table or an integrated heading can be easily added.
[0101]
In the fifth embodiment, the integrated heading is displayed in the horizontal table layout. Similarly, the integrated heading is displayed in the vertical table layout. You can also
[0102]
Embodiment 6 FIG.
In the sixth embodiment of the present invention, the structured document 21 in which the same logical structure repeatedly appears is displayed in a table layout.
[0103]
Here, the structured document 21 and the style table 22 corresponding to the structured document 21 according to the sixth embodiment will be described, and the other components are the same as those according to the first embodiment, and the description thereof will be omitted. FIG. 23 is a diagram illustrating a part of an example of the structured document 21 in which the same logical structure repeatedly appears. In FIG. 23, a series of logical structure elements “MATERIAL”, “FINISH”, and “COLOR” which are lower layers are logical structure elements “DOOR”, logical structure elements “WALL” and logical structure elements “FLOOR” which are upper layers. It appears repeatedly as a logical structural element below each of “”.
[0104]
FIG. 24 shows the structured document 21 in which the same logical structure repeatedly appears in a table layout in which the arrangement of logical structure elements in the upper hierarchy is arranged in the vertical direction and the arrangement of logical structure elements in the lower hierarchy is arranged in the horizontal direction. It is a figure which shows an example of the style table 22 for this. When the logical structure elements are arranged in the horizontal direction, the contents of the logical structure elements are arranged in the vertical direction. Since the structure of this table layout is different from that in the first to fifth embodiments, “TAB2” is used as a table group designation different from “TAB1” in FIG. The table designation “TAB2” has nine arguments, the first to eighth arguments are the same as the arguments of “TAB1”, and the ninth argument 171 has a vertical heading and a horizontal heading. This specifies the contents of the corner heading to be displayed in the upper left cell that intersects. In FIG. 24, the content of the corner heading is designated as “unit”.
[0105]
Next, the operation will be described.
FIG. 25 is a diagram showing an example of display data obtained by converting the structured document 21 of FIG. 23 according to the sixth embodiment. FIG. 26 is a diagram showing an example of an image corresponding to the display data of FIG. is there.
[0106]
Structured document analysis means 11 and style table analysis means 12 operate in the same manner as in the first embodiment. Then, when the table group designation “TAB2” appears, the table group structure conversion unit 13 arranges a series of logical structure elements in the upper hierarchy in the direction designated by the first argument of the table group designation “TAB2”. A conversion rule for arranging a series of logical structure elements in the lower hierarchy in the vertical direction of the direction is created.
[0107]
For example, based on the structured document 21 in FIG. 23 and the style table 22 in FIG. 24, a series of “DOOR”, “WALL”, and “FLOOR” in the upper hierarchy are arranged in the vertical direction by the table structure conversion means 13. A conversion rule for arranging and displaying a series of logical structure elements “MATERIAL”, “FINISH”, and “COLOR” in the lower hierarchy is created. The display style sheet 23 is created by the display style sheet creating means 14 based on the logical structure including the conversion rule created in this way.
[0108]
Then, the structured document display means 15 applies the display style sheet 23 to the structured document 21 to create display data, and an image corresponding to the display data is displayed on the display unit 3.
[0109]
For example, when the style table 22 of FIG. 24 and the structured document 21 of FIG. 23 are used, display data by HTML shown in FIG. 25 is created, and an image corresponding to the display data is shown in FIG. Is displayed on the display unit 3 as described above.
[0110]
That is, when the structured document 21 in which the same logical structure appears repeatedly is displayed in a table layout, a table set corresponding to the logical structure element at the start position of the table set is displayed as in the style table 22 of FIG. The designation “TAB2” is described. Then, based on the style table 22, a description by HTML for displaying a table layout in a structure having a heading in a two-dimensional direction with a logical structure element of a higher hierarchy and a logical structure element of a lower hierarchy is displayed by a command statement. By outputting the data, as shown in FIG. 26, the structured document 21 in which the same logical structure repeatedly appears in a table layout having headings in the two-dimensional direction is displayed.
[0111]
As described above, according to the sixth embodiment, the structured document 21 in which the same logical structure repeatedly appears by designating a predetermined table set in the style table 22 is a table having a structure having headings in the two-dimensional direction. Since the display is performed in the group layout, the structured document 21 can be displayed in the table layout reflecting the hierarchical relationship between the logical structural elements.
[0112]
Embodiment 7 FIG.
In the seventh embodiment of the present invention, the structured document 21 in which the same logical structure repeatedly appears is displayed in a table layout, and the contents of one logical structure element of the repeatedly appearing logical structures are displayed. Is displayed as a one-way headline.
[0113]
Here, the structured document 21 and the style table 22 according to the seventh embodiment will be described, and the other components are the same as those according to the first embodiment, and the description thereof will be omitted. FIG. 27 is a diagram illustrating a part of an example of the structured document 21 in which the same logical structure repeatedly appears. In FIG. 27, a series of logical structure elements “SET.NO”, “USAGE”, “CAPACITY”, and “DOOR.HAND” repeatedly appear as logical structure elements below the logical structure element “SET”.
[0114]
FIG. 28 shows a structured document 21 in which the same logical structure repeatedly appears, with the contents of one logical structure element of the logical structures repeatedly appearing in the horizontal direction and the arrangement of the other logical structure elements in the vertical direction. It is a figure which shows an example of the style table | surface 22 for displaying with a table layout. When the contents of one of the logical structure elements that repeatedly appear are arranged in the vertical direction, the contents of the other logical structure elements are arranged in the horizontal direction.
[0115]
Since the structure of this table layout is different from that in the first to sixth embodiments, “TAB3” is used as a table group designation different from “TAB1” and “TAB2” in FIG. The table group designation “TAB3” has nine arguments, which are the same as the arguments of the table group designation “TAB1”. Then, a logical structure element whose content is a headline is designated by a predetermined table set designation “THEEADER” 181.
[0116]
Next, the operation will be described.
FIG. 29 is a diagram illustrating an example of display data obtained by converting the structured document 21 of FIG. 27 according to the seventh embodiment, and FIG. 30 is a diagram illustrating an example of an image corresponding to the display data of FIG. is there.
[0117]
Structured document analysis means 11 and style table analysis means 12 operate in the same manner as in the first embodiment. Then, when the table group designation “TAB3” appears, the table group structure conversion means 13 searches for the table group designation “THEEADER” and displays a series of contents of the logical structure elements corresponding to the table group designation “THEEADER”. A conversion rule is generated for displaying as a heading in the direction designated by the first argument of the pair designation “TAB3”, and arranging and displaying another series of logical structure elements in the vertical direction of the direction.
[0118]
For example, based on the structured document 21 shown in FIG. 27 and the style table 22 shown in FIG. 28, the contents “7.” of the logical structure element “SET.NO” specified by the table set specification “THEEADER” by the table set structure conversion means 13. ”,“ 8 ”,“ 9 ”are arranged as headings in the horizontal direction, and a series of other logical structure elements“ USAGE ”,“ CAPACITY ”,“ DOOR.HAND ”are arranged in the vertical direction for display. A rule is created. The display style sheet 23 is created by the display style sheet creating means 14 based on the logical structure including the conversion rule created in this way.
[0119]
Then, the structured document display means 15 applies the display style sheet 23 to the structured document 21 to create display data, and an image corresponding to the display data is displayed on the display unit 3.
[0120]
For example, when the style table 22 of FIG. 28 and the structured document 21 of FIG. 27 are used, display data by HTML shown in FIG. 29 is created, and an image corresponding to the display data is shown in FIG. As shown in FIG. That is, when the structured document 21 in which the same logical structure repeatedly appears is displayed in a table layout, a table set is specified corresponding to the logical structure element at the start position of the table set, as in the style table 22 of FIG. “TAB3” is selected, and one content of the logical structure element is set as a heading in one direction of the table by the table set designation “THEEADER”. Therefore, the contents of the logical structure element “SET.NO” designated by the table designation “THEEADER” are regarded as the headings of the respective columns, and in this case, all the rows of the heading “No. machine number” are the headings.
[0121]
Based on this style table 22, the contents of one logical structure element of a series of repeated logical structure elements is used as a heading in one direction, and a table layout is arranged in a structure having headings in a two-dimensional direction. By outputting the description in HTML to the display data using a command statement, a structured document 21 in which the same logical structure appears repeatedly is displayed in a table layout having headings in a two-dimensional direction as shown in FIG. .
[0122]
As described above, according to the seventh embodiment, the structured document 21 in which the same logical structure appears repeatedly by designating a predetermined table set in the style table 22 is a table having a structure having headings in the two-dimensional direction. Since it is displayed in the group layout, the effect that the structured document 21 can be displayed in the table layout reflecting the hierarchical relationship between the logical structural elements can be obtained.
[0123]
Embodiment 8 FIG.
In the eighth embodiment of the present invention, a structured document 21 in which a logical structure in which the same logical structure repeatedly appears repeatedly appears in a table layout.
[0124]
Here, the structured document 21 and the style table 22 according to the eighth embodiment will be described, and the other components are the same as those according to the first embodiment, and thus description thereof will be omitted. FIG. 31 is a diagram illustrating an example of a part of the structured document 21 in which a logical structure in which the same logical structure repeatedly appears further appears.
[0125]
In FIG. 31, the logical structure element “FLOOR” in which the same logical structure element “SET” repeatedly appears in the lower order appears four times. That is, the structured document 21 in FIG. 31 has a three-level logical structure, and the logical structure elements “SET.NO” and “SERVICE” belong to a lower hierarchy, and the logical structure elements “FLOOR.NAME”, “FLOOR.HEIGHT” and “SET” belong to the middle hierarchy, and the logical structure element “FLOOR” belongs to the upper hierarchy.
[0126]
FIG. 32 is a diagram showing an example of a style table 22 for displaying a structured document 21 in which a logical structure in which the same logical structure repeatedly appears repeatedly in a table layout with a header column and a header row.
[0127]
Since the structure of this table layout is different from that in the first to sixth embodiments, “TAB4” is used as a table group designation different from “TAB1” to “TAB3” in FIG. The table group designation “TAB4” has nine arguments, which are the same as the arguments of the table group designation “TAB1”. Then, two logical structural elements whose contents are arranged as a heading column or a heading row are designated by a predetermined table group designation “THEEADER”. For example, in FIG. 32, two logical structure elements “FLOOR.NAME” and “SET.NO” are designated in the header column and the header row, respectively.
[0128]
Next, the operation will be described.
FIG. 33 is a diagram illustrating an example of display data obtained by converting the structured document 21 of FIG. 31 according to the eighth embodiment. FIG. 34 is a diagram illustrating an example of an image corresponding to the display data of FIG. is there.
[0129]
Structured document analysis means 11 and style table analysis means 12 operate in the same manner as in the first embodiment. Then, when the table group designation “TAB4” appears, the table group structure conversion means 13 searches for the table group designation “THEEADER” and one logical structure element (in the middle hierarchy) corresponding to the table group designation “THEEADER”. The logical structure element) is displayed as a heading in the direction specified by the first argument of the table designation “TAB4”, and the other middle-level logical structure elements are specified by the first argument of “TAB4”. The other logical structure element (lower-level logical structure element) is arranged as a heading in the direction perpendicular to the direction specified by the first argument of the table specification “TAB4”. A conversion rule for displaying and arranging other lower-level logical structure elements in the direction specified by the first argument of “TAB4” is created.
[0130]
For example, based on the structured document 21 in FIG. 31 and the style table 22 in FIG. 32, the contents of the logical structure element “FLOOR.NAME” designated by the table composition designation “THEEADER” are Each is arranged as a heading column in the direction, and the logical structure element “FLOOR.HEIGHT” is displayed beside it. In addition, the contents of the logical structure element “SET.NO” of the lower hierarchy designated by the table designation “THEEADER” are displayed as a heading row in the horizontal direction, and the logical structure element “SERVICE” is arranged in the vertical direction. A conversion rule is created for this purpose.
[0131]
The display style sheet 23 is created by the display style sheet creating means 14 based on the logical structure including the conversion rule created in this way. Then, the structured document display means 15 applies the display style sheet 23 to the structured document 21 to create display data, and an image corresponding to the display data is displayed on the display unit 3.
[0132]
For example, when the style table 22 in FIG. 32 and the structured document 21 in FIG. 31 are used, display data in HTML shown in FIG. 33 is created, and an image corresponding to the display data is shown in FIG. As shown in FIG.
[0133]
That is, when the structured document 21 in which a logical structure in which the same logical structure appears repeatedly appears further in a table layout, the logical structure at the start position of the table set as in the style table 22 of FIG. A table group designation “TAB4” is described corresponding to the element, and the contents of the two logical structure elements are set in a header column or a header row in the table by the table group designation “THEEADER”. As a result, the contents of the logical structure element “FLOOR.NAME” designated by the table designation “THEEADER” are regarded as headings of each row, and the contents of the logical structure element “SET.NO” are regarded as column headings. In this case, the column of the heading “floor name” and the row of the heading “unit number” (only the portion in the right direction from “unit number”) are all headings.
[0134]
Based on this style table 22, the contents of two logical structural elements of a series of logical structural elements that repeatedly appear are arranged as a heading column or heading row in a structure having headings in a two-dimensional direction. By outputting the description in HTML in the form of a command statement, as shown in FIG. 34, a structured document 21 in which the same logical structure appears repeatedly in a table layout having headings in the two-dimensional direction is displayed. .
[0135]
As described above, according to the eighth embodiment, the three-layer structured document 21 in which a logical structure in which the same logical structure repeatedly appears by repeatedly designating a predetermined table set in the style table 22 further appears. Since the data is displayed in a table layout having a structure having headings in the two-dimensional direction, the structured document 21 can be displayed in a table layout reflecting the hierarchical relationship between logical structure elements.
[0136]
As described above, as shown in the first to eighth embodiments, the structured document 21 having various logical structures can be easily displayed in various table layouts simply by changing the description of the style table 22. can do.
[0137]
Embodiment 9 FIG.
FIG. 35 is a block diagram showing a structure of a structured document processing apparatus 1A according to the ninth embodiment of the present invention. In the figure, reference numeral 1A denotes a structured document processing apparatus according to the ninth embodiment. Reference numeral 4 denotes an input unit such as a pointing device such as a mouse or a keyboard. 16 describes an instruction statement in SGML or the like based on the logical structure generated by the table structure conversion means 13 and outputs a description that displays an input field for inputting the contents of the logical structure element. This is an input style sheet creating means (style sheet creating means) for creating the described input style sheet 24. 17 supplies the structured document display means 15 with the input data by the input operation on the input unit 4, reflects the input operation on the display image of the display unit 3, and the structured document 21 stored in the data storage unit 2. Structured document storage means (input data writing means) to be reflected in the contents of Reference numeral 24 denotes an input style sheet (style sheet) in which a command statement for outputting a description for displaying an input field is added to the display style sheet.
[0138]
The display unit 3, the input unit 4, the structured document display unit 15 and the structured document storage unit 17 constitute a GUI. 35 are the same as those according to the first embodiment (FIG. 1), and thus the description thereof is omitted.
[0139]
Next, the operation will be described.
FIG. 36 is a flowchart for explaining the operation of the structured document processing apparatus 1A according to the ninth embodiment. FIG. 37 is a diagram showing an example of a style table 22 for displaying the structured document 21 of FIG. 27 in a table layout. FIG. 38 is a diagram illustrating an example of display data obtained by converting the structured document 21 of FIG. 27 according to the ninth embodiment. FIG. 39 is a diagram illustrating an example of an image corresponding to the display data of FIG. is there.
[0140]
In FIG. 36, the processing of step ST11 to step ST13 is the same as the processing of step ST1 to step ST3 (FIG. 2) in the first embodiment, and therefore the description thereof is omitted. Here, as shown in FIG. 37, an input column designation column is added to the style table 22 used in the ninth embodiment. In the input field specification, an input format of data input to the input field is specified. For example, in the style table of FIG. 37, an input format for inputting an arbitrary character string within 6 characters is designated by the input field designation “TEXT (6)” as an input format for the contents of the logical structure element “USAGE”. As input format for the contents of logical structure element “DOOR.HAND”, select one value from “Left”, “Right” and “Both” by input field specification “SEL (Left, Right, Both)” The input format is specified.
[0141]
Next, in step ST14, the input style sheet creation means 16 describes a command statement in SGML or the like based on the logical structure generated by the table structure conversion means 13, and performs logic according to the input field designation described above. An input style sheet 24 describing a command statement for outputting a description for displaying an input field for inputting the contents of the structural element is created and stored in the data storage unit 2.
[0142]
In step ST15, the structured document display means 15 reads the structured document 21 and the input style sheet 24 from the data storage unit 2, and the structured document 21 is read according to the command statement described in the input style sheet 24. The data is converted into display data in a table layout having an input field of a predetermined input format, and an image corresponding to the display data is displayed on the display unit 3.
[0143]
For example, when the input style sheet 24 created from the style table of FIG. 37 is applied to the structured document 21 of FIG. 27 by the structured document display means 15, the structured document 21 of FIG. 38, and an image corresponding to the display data is displayed on the display unit 3 as shown in FIG. 39 by the HTML viewer built in the structured document display means 15.
[0144]
In the display data shown in FIG. 38, the description “<INPUT TYPE = TEXT SIZE = 6 NAME = USAGE_1 VALUE =“ passenger ”>” is assigned to the cell corresponding to the input field designation “TEXT (6)”. Yes. Here, “INPUT TYPE =” indicates the input format of an arbitrary character string, “SIZE =” specifies the size of the input character string, “NAME =” indicates the ID of the input field, and “VALUE =” indicates the input. Indicates the initial value of the character string. The ID in the input field is associated with the logical structure element, and when it is stored in the structured document 21, the contents of the logical structure element corresponding to the ID are rewritten with the input character string. The cell corresponding to the input field designation “SEL (left, right, both)” includes, for example, the description “
<SELECT NAME = DOOR_HAND_1>
<OPTION VALUE = "" ">
<OPTION VALUE = “Left” SELECTED> Left
<OPTION VALUE = “Right”> Right
<OPTION VALUE = “both”> both </ SELECT> ”is assigned. This description indicates an input format to be input by selecting a character. When the item “left” is selected from the items “left”, “right”, and “both”, the content of this cell is set to “left” based on the description “OPTION VALUE =“ left ””. The The initial value of this item is set to the item “left” by “SELECTED”.
[0145]
As shown in FIG. 39, an input field for each logical structure element is displayed on the display unit 3, and the contents of each logical structure element described in the structured document 21 are displayed as initial values in the input field. It is displayed. In the initial display state, the pull-down menu 186 shown in FIG. 39 is not displayed. This pull-down menu 186 is displayed when the user performs a selection input operation.
[0146]
When the user operates the input unit 4 and changes the contents of the logical structure element using the GUI in this display state, the input data by the input operation on the input unit 4 is converted by the structured document storage unit 17 in step ST16. It is supplied to the structured document display means 15 and displayed in the input field as the contents of the logical structure element after the change. Further, the structured document storage unit 17 responds to the change of the contents of the logical structure element, and the contents of the logical structure element that has been input in the structured document 21 stored in the data storage unit 2 Rewrite with input data.
[0147]
Note that the processing corresponding to the other parts of the style table 22 is the same as that according to the first embodiment, and thus the description thereof is omitted.
[0148]
As described above, according to the ninth embodiment, the command format for the table layout corresponding to the terminal logical structure element in the structured document 21 and the input format of the data input of the contents of the logical structure element A designating statement is added to create an input style sheet 24 from the style table 22. Based on the input style sheet 24, the structured document 21 is displayed in a table layout and a predetermined input format. Since the input field is displayed, the structured document 21 can be easily displayed in a table layout based on the style table 22 without describing the logical structure of the structured document 21 so that the table can be set. In addition, the content of the logical structural element of the structured document 21 can be easily edited using the GUI.
[0149]
Embodiment 10 FIG.
In the tenth embodiment of the present invention, the structured document 21 is arranged in a table layout like the ninth embodiment, and an input field of a predetermined input format specified in the style table 22 is displayed. A value input to one of the predetermined logical structure elements that repeatedly appears is copied to the other logical structure element of the predetermined logical structure element.
[0150]
Here, the style table 22 according to the tenth embodiment will be described, and the other components are the same as those according to the ninth embodiment, and thus the description thereof will be omitted. FIG. 40 displays the structured document 21 of FIG. 27 in a table layout, specifies the input format of the input of the contents of the logical structure element, and further designates one of the predetermined logical structure elements repeatedly appearing. It is a figure which shows an example of the style table 22 in the case of copying the input value to the other logical structure element of the predetermined logical structure elements.
[0151]
In the style table 22 shown in FIG. 40, an input field designation “COPY (NEXT)” 191 for copying a value input to one of the logical structure elements “USAGE” that repeatedly appears to another logical structure element “USAGE”. Is described. Note that the argument “NEXT” specifies that the value input to one of the logical structure elements “USAGE” is copied to the logical structure element “USAGE” that appears later in the structured document 21. .
[0152]
Next, the operation will be described.
FIG. 41 is a diagram showing an example of display data obtained by converting the structured document 21 of FIG. 27 according to the tenth embodiment. FIGS. 42 to 47 show one of predetermined logical structural elements that repeatedly appear. When a value is input to, an operation for copying the value to another logical structure element among the predetermined logical structure elements is described.
[0153]
Structured document analysis means 11, style table analysis means 12 and table set structure conversion means 13 operate in the same manner as in the ninth embodiment. Then, the input style sheet creation means 16 corresponds to the input field designation “COPY” in the style table 22 and inputs the value input to one of the predetermined logical structure elements that repeatedly appears in the predetermined logical structure. An input style sheet 24 is created by adding a command statement that outputs a description for copying to another logical structure element of the elements to the conversion rule created in the ninth embodiment.
[0154]
Next, the structured document display unit 15 reads the structured document 21 and the input style sheet 24 from the data storage unit 2, and reads the structured document 21 according to a command statement described in the input style sheet 24. The data is converted into display data in a table layout having an input field of an input format, and an image corresponding to the display data is displayed on the display unit 3.
[0155]
For example, when the input style sheet 24 created from the style table 22 of FIG. 40 is applied to the structured document 21 of FIG. 27 by the structured document display means 15, the structured document 21 of FIG. It is converted into display data by HTML shown in FIG. 41, and an image corresponding to the display data is displayed on the display unit 3 by the HTML viewer built in the structured document display means 15. At this time, the first displayed image is displayed in the same manner as in the ninth embodiment.
[0156]
In the display data shown in FIG. 41, the description “onChange =“ CopyNext (this, this.form) ”” by HMTL is “CopyNext (this, this.form)” when the value for this input field is changed. The description “CopyNext (this, this. Form)” is an input field corresponding to a logical structure element having the same tag name that repeatedly appears after the value input in this input field. This is an HTML instruction for copying to the value of. The input field corresponding to the logical structure element having the same tag name that repeatedly appears thereafter is specified based on the numerical value after the last underscore “_” of the input field ID. That is, the logical structure element corresponding to the input field ID having a numerical value larger than the numerical value is specified as the logical structural element having the same tag name that appears repeatedly thereafter.
[0157]
Then, when the user operates the input unit 4 to change the contents of the logical structure element using the GUI, the input data by the input operation on the input unit 4 is converted into the structured document display unit 15 by the structured document storage unit 17. And is displayed in the input field as the contents of the logical structure element after the change, copied to the contents of other logical structure elements having the same name, and displayed in the input field corresponding to the logical structure element. Further, the structured document storage unit 17 responds to the change of the contents of the logical structure element, and the contents of the logical structure element that has been input in the structured document 21 stored in the data storage unit 2 Rewrite to input data.
[0158]
For example, when the structured document 21 of FIG. 27 is displayed according to the input style sheet 24 created by the style table 22 of FIG. 40, the content is “7” when the display state is as shown in FIG. When “ridden” is entered in the input field corresponding to the logical structure element “USAGE” (heading “use”) corresponding to the logical structure element “SET.NO”, as shown in FIG. The data is displayed in the input field, and as shown in FIG. 44, the logical structure element “USAGE” (contents “8” and “9” whose contents are “8” and “9”) appear thereafter. The content of the corresponding logical structure element “USAGE”) is copied and displayed in the input field corresponding to those logical structure elements.
[0159]
Thereafter, the contents of the logical structure elements “USAGE” and “DOOR.HAND” corresponding to the logical structure element “SET.NO” (heading “machine number”) whose content is “9”, and the logical structure element “CAPACTITY” ( When each content of the heading “capacity (kg)” is input by the user, for example, as shown in FIG. Since the input field designation “COPY” is not made in the logical structure element “CAPACITY”, the input data is not copied.
[0160]
45, the input corresponding to the logical structure element “DOOR.HAND” (heading “door open direction”) corresponding to the logical structure element “SET.NO” whose content is “7”. When “left” is selected and input in the column as shown in FIG. 46, the input data “left” is displayed in the input column, and the logical structure elements appearing thereafter appear as shown in FIG. Among the “DOOR.HAND” (corresponding to the logical structure element “SET.NO” whose contents are “8” and “9”), the logical structure element “DOOR.HAND” (the content is “ 8 ”corresponding to the logical structure element“ SET.NO ”), and is also displayed in the input field corresponding to the logical structure element. That is, the input data “left” is not copied to the content of the logical structure element “DOOR.HAND” corresponding to the logical structure element “SET.NO” having the value “both” and having the content “9”.
[0161]
As described above, according to the tenth embodiment, in addition to the effects of the ninth embodiment, in the structured document 21 displayed in the table layout, one of a plurality of logical structure elements having the same name appearing repeatedly. Since the input value is copied to another logical structure element, an effect that the input work for the logical structure element that repeatedly appears can be saved.
[0162]
Embodiment 11 FIG.
In the eleventh embodiment of the present invention, the structured document 21 is arranged in a table layout as in the ninth embodiment, and an input field of a predetermined input format specified in the style table 22 is displayed. A constraint condition check for the contents input to the logical structure element, an operation of the contents of other logical structure elements according to the success or failure of the condition for the contents input to the logical structure element, and the like are executed.
[0163]
Here, the style table 22 according to the eleventh embodiment will be described, and the other components are the same as those according to the ninth embodiment, and thus the description thereof will be omitted. 48 displays the structured document 21 of FIG. 27 in a table layout, specifies the input format of the input of the contents of the logical structure element, and further checks the constraints on the contents input to the logical structure element. It is a figure which shows an example of the style table 22 in the case of performing the operation etc. of the content of the other logical structure element according to the success or failure of the conditions with respect to the content input into the logical structure element.
[0164]
As shown in FIG. 48, a check rule designation column is further added to the style table 22 used in the eleventh embodiment. The check rule specification is composed of a check type, a condition to be checked, and an executable statement indicating a process executed when the condition is satisfied.
[0165]
Check rule designation types include “DEFLT”, “SET”, and “CHK”. The type “DEFLT” indicates a check rule that sets the description specified in the executable statement as the initial value of the content of the logical structure element.
[0166]
Type “SET” indicates a check rule that executes an assignment statement as an executable statement when a condition is satisfied, and before the content of the logical structure element is changed by execution of the executable statement by option “DLG” It is specified to execute processing to confirm with the user. The assignment statement is specified in the format “SET (tag name, value to be assigned)”. That is, a process for assigning a value to the logical structure element designated by the tag name is designated.
[0167]
The type “CHK” indicates a check rule for displaying a message in accordance with a message output statement described as an executable statement when a condition (constraint condition) is satisfied. The option “BTN” indicates that the structured document 21 A check button is displayed at the time of display, and it is specified that this rule is executed only when the check button is pressed. If this option is not specified, this check rule is executed when the content of the logical structure element is changed. The message output sentence is specified in the format “LINK (tag name, message)”. That is, a process for displaying a message on the screen and creating a hyperlink from the message to the input field on the screen corresponding to the logical structure element designated by the tag name is designated.
[0168]
For example, in the style table 22 of FIG. 48, a rule having a type of “DEFLT” and an executable statement of “ridden” is specified for the logical structure element “USAGE”. In addition, for the logical structure element “CAPACITY”, the first rule whose type is “SET (DLG)”, the condition is “this> 800”, and the executable statement is “SET (USAGE, freight)”. And the second rule whose type is “SET (DLG)”, the condition is “this <= 800”, and the executable statement is “SET (USAGE)”. Here, the condition “this> 800” of the first rule is a condition that the value of the logical structure element “CAPACITY” is greater than 800, and the condition “this <= 800” of the second rule is The condition is whether or not the value of the logical structure element “CAPACITY” is 800 or less.
[0169]
Further, for the logical structure element “DOOR.HAND”, the type is “CHK (BTN)”, the condition (constraint condition) is “(USAGE) = cargo and this = both”, and the execution statement is “LINK”. (USAGE, freight for cargo cannot be double-opened) "is specified. Here, the condition “(USAGE) = cargo and this = both” is that the content of the logical structure element “USAGE” is “cargo” and the content of this logical structure element “DOOR.HAND” is “both”. The execution statement “LINK (USAGE, cargo cannot be double-opened.)” Displays the message “Cargo cargo cannot be double-opened.” From the display, the input field corresponding to the logical structure element “USAGE” This is an executable statement that specifies the generation of a hyperlink to.
[0170]
Next, the operation will be described.
49 is a diagram showing an example of display data obtained by converting the structured document 21 of FIG. 27 according to the eleventh embodiment. FIGS. 50 to 53 show logical data when a value is input to a logical structural element. It is a figure explaining the operation | movement when performing the check of the constraint condition with respect to the content input into the structural element, the operation of the content of the other logical structural element according to the success or failure of the condition with respect to the content input into the logical structural element, etc. .
[0171]
Structured document analysis means 11, style table analysis means 12 and table set structure conversion means 13 operate in the same manner as in the ninth embodiment. Then, the input style sheet creation means 16 checks the constraint condition for the content input to the logical structure element and determines whether the condition for the content input to the logical structure element is successful in response to the check rule specification in the style table 22. The input style sheet 24 is created by adding a command statement that outputs a description for executing the operation of the contents of the corresponding other logical structure element to the conversion rule created in the ninth embodiment.
[0172]
Next, the structured document display unit 15 reads the structured document 21 and the input style sheet 24 from the data storage unit 2, and reads the structured document 21 according to a command statement described in the input style sheet 24. The data is converted into display data in a table layout having an input field of an input format, and an image corresponding to the display data is displayed on the display unit 3. Also, the structured document storage unit 17 rewrites the contents of the logical structure element that has been subjected to the input operation in the structured document 21 with the input data in response to the change of the contents of the logical structure element.
[0173]
For example, when the input style sheet 24 created from the style table 22 in FIG. 48 is applied to the structured document 21 in FIG. 27 by the structured document display means 15, the structured document 21 in FIG. The data is converted into HTML display data shown in FIG. 49, and an image corresponding to the display data is displayed on the display unit 3 as shown in FIG. 50 by the HTML viewer built in the structured document display means 15. At this time, the designated initial value “passenger” is displayed in the input field corresponding to the logical structure element “USAGE” for which the type “DEFLT” check rule is designated, and the type “CHK” is designated for the check rule. Since the option “BTN” is designated at, a check button 196 is displayed.
[0174]
Here, the display data shown in FIG. 49 has a description of “onLoad =“ SetVal (ID, initial value) ”” in HMTL corresponding to the check rule designation of the type “DEFLT”. Here, “onLoad =” is a designation executed when the screen is displayed, and “SetVal” is a command defined in the screen data for setting an initial value in the input field designated by the ID. In addition, a description “onChange =“ RuleSetValue (condition, ID, value) ”” in HTML is written in correspondence with the check rule designation of the type “SET”. Here, “onChange =” is a specification that is executed when the value of the input field is changed, and “RuleSetValue” is a command that sets a value in the input field specified by the ID when the condition is satisfied. Further, in response to the specification of the check rule of type “CHK”, an if statement of the form “if (condition) {screen output of message with hyperlink}” is described in the function “ChkAllItems” by JAVA script. ing. In this case, since the option “BTN” is designated, the function “ChkAllItems” is executed when the check button 196 is pressed.
[0175]
Then, when the user operates the input unit 4 to change the contents of the logical structure element using the GUI, the input data by the input operation on the input unit 4 is converted into the structured document display unit 15 by the structured document storage unit 17. Is displayed in the input field as the content of the logical structure element after the change, and when the check rule designation of the type “SET” is designated for the logical structure element whose content has been changed, for example, In accordance with the description “onChange =“ RuleSetValue (condition, ID, value) ”in HTML, the success / failure of the condition in the check rule specification is examined, and when the condition is satisfied, the value is assigned to the logical structure element specified by the ID. Is done. In addition, when the check rule designation of the type “CHK” not accompanied by the option “BTN” is made for the logical structure element whose contents are changed, the check rule designation according to the function “ChkAllItems” described above, for example, The success or failure of the condition is checked, and when the condition is satisfied, a message with a hyperlink to the input field of the designated logical structure element is displayed. When the option “BTN” is accompanied, the check rule is executed only when the check button 196 is pressed. Therefore, when the contents are changed, this check rule is not executed.
[0176]
For example, in the display state of FIG. 50, the logical structure element “CAPACITY” (heading “capacity (kg)”) of the column whose content of the logical structure element “SET.NO” (heading “unit number”) is “9” is displayed. When the value “1000” is input to the corresponding input field, two check rules for the logical structure element “CAPACITY” are executed. Here, since the input data is “1000”, the condition “this> = 800” of the first check rule is satisfied, and the value “cargo” is assigned to the logical structure element “USAGE” in the column. However, since the option “DLG” is specified in the style table 22 (FIG. 48), the dialog box 201 prompting the user to confirm before the value “cargo” different from the original value “passenger” is assigned is shown in FIG. It is displayed as shown in 51. Here, substitution of the value “cargo” is executed only when the user permits the change of the contents.
[0177]
Furthermore, when the content of the logical structure element “DOOR.HAND” (heading “door opening direction”) is input and the display state of FIG. 52 is displayed, when the user presses the check button 196 based on the GUI, the logical structure element “DOOR.HAND” is displayed. The success or failure of the condition “(USAGE) = cargo and this = both” in the check rule specification of the type “CHK” with the option “BTN” is checked for all contents of “DOOR.HAND”. Here, since this condition is established for the logical structure elements “USAGE” and “DOOR.HAND” corresponding to the logical structure element “SET.NO” (heading “machine number”) whose content is “9”, the logical structure As shown in FIG. 53, the message “Freight for cargo cannot be double-opened” with the prefix “JMP:” with a hyperlink to the input field 197 of the element “USAGE” is displayed. In this display state, when the prefix “JMP:” with a hyperlink is pressed by the user, the input position is moved to the input field 197 of the logical structure element “USAGE”.
[0178]
As described above, according to the eleventh embodiment, in addition to the effects of the ninth embodiment, based on the GUI, the constraint condition check for the content input to the logical structure element, the content input to the logical structure element Because the operation of the contents of other logical structure elements according to the success or failure of the condition for is executed, and the result of the check or operation is reflected in the displayed structured document, the logic that violates the condition There is an effect that the combination of the contents of the structural elements can be easily confirmed on the screen. Further, it is possible to confirm the result of the constraint check immediately after inputting the contents of the logical structure element.
[0179]
Embodiment 12 FIG.
In the twelfth embodiment of the present invention, in the style table 22 having the check rule specification, it is verified that there is no circulation in the condition-execution relationship of the check rule. Other functions are the same as those according to the eleventh embodiment. Note that the condition-execution relationship circulation means that when the contents of a logical structure element are changed by an executable statement, the check rule is executed by the change, and the contents of the logical structure element are further changed and processed infinitely. Does not stop.
[0180]
FIG. 54 is a diagram showing an example of a list of condition-execution relationships in the style table 22 created by the style table analysis unit 12 in the twelfth embodiment.
[0181]
In the twelfth embodiment of the present invention, the style table analysis means 12 reads the style table 22 from the data storage unit 2, searches for a check rule specification of type “SET”, and specifies a check rule of type “SET”. The logical structure element that is the change source, and the logical structure element that is the assignment destination of the value specified in the execution statement “SET” of the check rule specification of the type “SET” is used as the change destination, and a list of their correspondences For example, it is created as shown in FIG.
[0182]
The style table analysis unit 12 first checks whether the change source and the change destination of each correspondence match, and if the change source and the change destination of the correspondence match, a circulation occurs. Therefore, the fact is displayed on the display unit 3, for example, to notify the designer of the style table 22.
[0183]
Next, the style table analysis means 12 checks whether the change destination logical structure element in each correspondence relationship is a change source in another correspondence relationship, and the change destination logical structure element in a certain correspondence relationship is different. In the case of a change source in a correspondence relationship, the logical structure element to which the other correspondence relationship is changed becomes a change source of a correspondence relationship (including the above-described correspondence relationship) different from the other correspondence relationship. Find out if it is. This process is repeated until all the change destination logical structure elements do not correspond to the change source logical structure elements. When there are a plurality of different correspondence relationships, all of the change destinations are examined.
[0184]
When this processing is completed, no circulation occurs, so the style table analysis means 12 notifies that fact. On the other hand, when a logical structure element that has already appeared as a change source appears as a change destination in the middle of the process, a cycle has occurred, and the style table analysis means 12 notifies that fact.
[0185]
For example, as shown in FIG. 54, in the case where a correspondence list is created, when the correspondence relationship of rule 1 is used as a starting point, the correspondence relationship of rule 1, the correspondence relationship of rule 2, the correspondence relationship of rule 3, 4 and the above-described processing has progressed, and the logical structure element “CAPACITY” that is the change destination of the correspondence relationship of rule 4 has already appeared as the change source of the correspondence relationship of rule 1, and thus a cycle has occurred. You will be notified.
[0186]
As described above, according to the twelfth embodiment, since the circulation of the check rule is verified in advance, it falls into an infinite circulation of processing when the actual check rule as described in the eleventh embodiment is executed. The effect that it can suppress is acquired. That is, it is possible to detect the cyclic execution of the command statement when designing the style table 22.
[0187]
Embodiment 13 FIG.
FIG. 55 is a block diagram showing a structure of a structured document processing apparatus 1B according to the thirteenth embodiment of the present invention. In the figure, reference numeral 1B denotes a structured document processing apparatus according to the thirteenth embodiment. 18 extracts all the tag names that appear in the document type definition part of the structured document 21, arranges the tag names as a column of tag names, and arranges them as a column of headings, Style table template creation means (style table template) for creating a style table template (style table template) 25 having the same format as the style table 22 by arranging predetermined input field specifications corresponding to the structural elements and leaving other specifications blank. Table template generation means).
[0188]
The other components in FIG. 55 are the same as those according to the ninth embodiment (FIG. 35), and a description thereof will be omitted.
[0189]
Next, the operation will be described.
FIG. 56 is a flowchart for explaining the operation of structured document processing apparatus 1B according to the thirteenth embodiment. FIG. 57 is a diagram showing an example of the style table template 25 created according to the thirteenth embodiment.
[0190]
In FIG. 56, the processing of step ST21 to step ST26 is the same as the processing of step ST11 to step ST16 (FIG. 36) in the ninth embodiment, and a description thereof will be omitted.
[0191]
Next, in step ST27, the style table template creation means 18 reads the structured document 21 appropriately edited by the processing in steps ST21 to ST26 from the data storage unit 2, and appears in the document type definition portion of the structured document 21. The tag names are arranged as a column of tag names and arranged as a column of headings, and a predetermined input field designation is arranged corresponding to the terminal logical structure element. The other specification is left blank, and a style table template 25 having the same format as the style table 22 is created as shown in FIG. 57, for example, and stored in the data storage unit 2. In the style table template 25 shown in FIG. 57, “TEXT (8)” is described as the predetermined input field designation. In addition, the process of step ST27 can be suitably performed irrespective of the process of step ST21-step ST26.
[0192]
The style table template 25 created in this way is used when the user creates the style table 22.
[0193]
As described above, according to the thirteenth embodiment, since the style table template 25 is created from the document type definition portion of the predetermined structured document 21, the work of creating the style table 22 can be saved. An effect is obtained.
[0194]
Embodiment 14 FIG.
FIG. 58 is a block diagram showing a structure of a structured document processing apparatus 1C according to the fourteenth embodiment of the present invention. In the figure, 1C is a structured document processing apparatus according to the fourteenth embodiment. 19 is a heading, a table set specification, and an input field specification for a tag name that matches the tag name in the style table template 25 created by the style table template creation means 18 from another style table 22A used in another structured document. And a style table diversion means (style table template changing means) that extracts check rule specifications and rewrites the corresponding parts in the style table template 25 by their heading, table group designation, input field designation and check rule designation.
[0195]
The other components in FIG. 58 are the same as those according to the thirteenth embodiment (FIG. 55), and a description thereof will be omitted.
[0196]
Next, the operation will be described.
FIG. 59 is a flowchart for explaining the operation of the structured document processing apparatus 1C according to the fourteenth embodiment. FIG. 60 is a diagram showing an example of another style table 22A used for the style table template 25 in the fourteenth embodiment. FIG. 61 is a diagram showing an example of the style table template 25 created according to the fourteenth embodiment.
[0197]
In FIG. 59, the processing of step ST31 to step ST37 is the same as the processing of step ST21 to step ST27 (FIG. 56) in the thirteenth embodiment, and therefore the description thereof is omitted. However, the style table template 25 created by the style table template creating unit 18 is supplied to the style table diverting unit 19.
[0198]
Next, in step ST38, the style table diverting means 19 reads another style table 22A used in another structured document from the data storage unit 2, and creates it from the other style table 22A by the style table template creating means 18. The heading, table group designation, input field designation, and check rule designation for the tag name that matches the tag name in the style table template 25 that has been extracted are extracted, and the style is specified by the heading, table group designation, input field designation, and check rule designation. The corresponding part in the table template 25 is rewritten, and the style table template 25 is stored in the data storage unit 2. Note that the processing of step ST37 and step ST38 can be appropriately executed irrespective of the processing of step ST31 to step ST36.
[0199]
For example, when the style table template 25 shown in FIG. 57 is supplied and the other style table 22A is the one shown in FIG. 60, the tag name “ORDER” that matches the tag name in the style table template 25 is used by the style table diversion unit 19. ,..., The corresponding part in the style table template 25 is rewritten by the heading, table group specification, input field specification and check rule specification for “SPEED”, and the style table template 25 shown in FIG. Stored in part 2.
[0200]
The style table template 25 created in this way is used when the user creates the style table 22.
[0201]
As described above, according to the fourteenth embodiment, the style table 22A is used when the style table template 25 is created from the document type definition portion of the predetermined structured document 21, so that the style table 22A is used. Although the document type definition is different from the corresponding structured document, there is an effect that the work of creating the style table 22 for the structured document 21 in which many tag names match can be saved.
[0202]
Embodiment 15 FIG.
FIG. 62 is a block diagram showing a structure of a structured document processing apparatus 1D according to the fifteenth embodiment of the present invention. In the figure, 1D is a structured document processing apparatus according to the fifteenth embodiment. 20 reads the structured document 21 that is the same as the structured document 21 read by the style table template creation means 18, identifies the logical structure of the structured document 21 from the document type definition, and This is a table structure detection unit (style table template generation unit) that rewrites a table group specification in the style table template 25 with a predetermined table group specification that can be specified.
[0203]
62 are the same as those according to the fourteenth embodiment (FIG. 58), and thus the description thereof is omitted.
[0204]
Next, the operation will be described.
FIG. 63 is a flowchart for explaining the operation of the structured document processing apparatus 1D according to the fifteenth embodiment. FIG. 64 is a diagram showing a logical structure tree of the structured document 21 of FIG. FIG. 65 is a diagram showing a logical structure tree of the structured document 21 of FIG. FIG. 66 is a diagram showing a logical structure tree of the structured document 21 of FIG.
[0205]
In FIG. 63, the processing of step ST41 to step ST48 is the same as the processing of step ST31 to step ST38 (FIG. 59) in the fourteenth embodiment, and a description thereof will be omitted. However, the style table template 25 from the style table diverting means 19 is supplied to the table group structure detecting means 20.
[0206]
Next, in step ST49, the table structure detection means 20 reads the same structured document 21 as the structured document 21 read by the style table template creation means 18, and from the document type definition, the logic of the structured document 21 is read. The structure is specified, the table group specification in the style table template 25 is rewritten with a predetermined table group specification that can be specified for the logical structure, and the style table template 25 is stored in the data storage unit 2. In addition, the process of step ST47-step ST49 can be suitably performed irrespective of the process of step ST41-step ST46.
[0207]
For example, when the structured document 21 shown in FIG. 23 is read, the logical structure of the structured document 21 is detected from the document type definition by the table structure detection unit 20 as shown in FIG.
[0208]
In other words, the table structure detection unit 20 includes a logical structure element “MATERIAL” 241, a logical structure element “FINISH” 242, and a logical structure element “COLOR” as subordinate structures 240 of the logical structure element “DOOR” 239 constituting the predetermined structure 238. 243 and substructures 245 and 247 of the logical structure element “WALL” 244 and the logical structure element “FLOOR” 246 that form the predetermined structure 238 in the same manner as the logical structure element “DOOR” 239. It is detected that it is the same as the substructure 240 of “DOOR” 239, the predetermined structure 238 is set as the range of the table layout, and the above table is specified as the table specification of the logical structure element “DOOR” in the style table template 25. Write the group designation “TAB2”, and the same as the table group designation of the logical structure element “FLOOR” Writes the Table group definition of "/ TAB2".
[0209]
For example, when the structured document 21 shown in FIG. 27 is read, the logical structure of the structured document 21 is detected from the document type definition by the table structure detection unit 20 as shown in FIG. The Note that the symbol 248 means that the logical structure element “SET” 249 appears repeatedly below it.
[0210]
In this case, the table structure detection means 20 uses a series of logical structure elements “SET.NO”, “USAGE”, “CAPACITY”, “DOOR.HAND” 250 having the same logical structure element “SET” 249 that repeatedly appears. A table of the logical structure element “SET” in the style table template 25 with the portion of the logical structure element “SET” 249 that repeatedly appears as a range of the table layout is detected. The table group designation “TAB3” is written as the group designation, and the table group designation “/ TAB3” is similarly written as the table group designation of the logical structure element “DOOR.HAND”.
[0211]
Further, for example, when the structured document 21 shown in FIG. 31 is read, the logical structure of the structured document 21 is detected from the document type definition by the table structure detection means 20 as shown in FIG. The The symbol 257 means that the added logical structure element “SET.NO” 258 appears 0 times or 1 time.
[0212]
In this case, the table structure detection unit 20 detects that there is a logical structure element “SET” 255 that repeatedly appears below the logical structure element “FLOOR” 254 that repeatedly appears, and the logical structure element “FLOOR” that repeatedly appears. "254" is set as the range of the table layout, and the table group designation "TAB4" is written as the table group designation of the logical structure element "FLOOR" in the style table template 25. Similarly, the table group of the logical structure element "SERVICE" is written. As the designation, the above table designation “/ TAB4” is written.
[0213]
As described above, according to the fifteenth embodiment, the logical structure of the structured document 21 is specified from the document type definition of the structured document 21, and a predetermined table set designation that can be designated for the logical structure is performed. Thus, since the table set designation in the style table template 25 is rewritten, an effect that the work of creating the style table 22 can be further saved is obtained.
[0214]
Embodiment 16 FIG.
In the sixteenth embodiment of the present invention, the display unit 3 and the input unit 4 are controlled to display the style table 22 as it is in a table layout, and the input data input based on the GUI is used for various designations of the style table 22. A style table creating means (not shown) for creating the writing style table 22 is added to any one of the first to fifteenth embodiments.
[0215]
The style table creation means holds display data in HTML for creating the style table 22 in advance, and images corresponding to the display data are appropriately displayed on the display unit 3 based on an operation on the input unit 4 by the user. In addition to the display, the values input for various specifications are reflected in the display, and the input values are written in the style table 22 of the data storage unit 2.
[0216]
Next, the operation will be described.
FIG. 67 is a diagram showing an example of an image for setting various designations of the style table 22. FIG. 68 is a diagram illustrating an example of an image for setting various parameters (table property) for designating a table. FIG. 69 is a diagram showing an example of an image for setting input fields and setting various parameters (input properties) thereof. FIG. 70 is a diagram illustrating an example of an image for setting check rule designation.
[0217]
First, the style table creation means displays an image of the entire style table 22 on the display unit 3, for example, as shown in FIG. At this time, a “set” button for setting details of each designation is displayed. When the user presses the “set” button based on the GUI, an image for inputting a property corresponding to the designation is displayed.
[0218]
That is, when the “set” button in the table designation column is pressed, an image for setting various parameters (table composition properties) for table designation is displayed as shown in FIG. 68, for example. When the “Setting” button in the column is pressed, an image for setting the input field and its various parameters (input properties) is displayed as shown in FIG. 69, for example. When is pressed, for example, as shown in FIG. 70, an image for setting details (check properties) for specifying check rules is displayed.
[0219]
Then, desired values are appropriately input to the input fields in these images based on the GUI, and the input values are displayed on the display unit 3 and written in the style table 22.
[0220]
Next, an example of a procedure for actually performing various detailed designations will be described.
[0221]
For example, in the display state shown in FIG. 67, when the start position and end position of the table group in the table group designation column are designated and then the “set” button is pressed, the display state shown in FIG. Set properties. In the display state shown in FIG. 67, when the “set” button in the input column designation column is pressed, the display state shown in FIG. 69 is obtained, and detailed input properties are set there. Furthermore, in the display state shown in FIG. 67, when the “set” button in the check rule designation column is pressed, the display state shown in FIG. 70 is obtained, and detailed check properties are set there. Then, in the display state shown in FIG. 70, contents are input to the “type” column, the “condition” column, and the “execution” column, respectively. When the “Insert” button is pressed, a new rule is added above the rule. On the other hand, when the “Delete” button is pressed, the rule is deleted. When the “Up” button is pressed, the rule moves up one level. On the other hand, when the “down” button is pressed, the rule moves down by one. In the display state shown in FIG. 67, the number of check rules set for the logical structure element is displayed in the check rule designation column.
[0222]
As described above, according to the sixteenth embodiment, the display unit 3 and the input unit 4 are controlled to display the style table 22 as it is in the table layout, and based on the input data input based on the GUI. Since the style table 22 is created, the effect that the style table 22 can be created easily is obtained.
[0223]
In addition, this invention is not limited to what was shown in the said Embodiment 1-Embodiment 16, and may function similarly. For example, each designation (such as “TAB1”) in the style table 22 and the type of argument thereof are not limited to those described above, and the same effect can be obtained by using other functions that function similarly.
[0224]
Moreover, you may make it comprise the said Embodiment 1-Embodiment 16 with what is called a computer. In this case, each component of the structured document processing apparatus 1, 1A, 1B, 1C, 1D corresponds to a CPU of a computer, and information (logical structure, etc.) generated by the above processing is temporarily stored in a memory such as a RAM. And a program for causing the CPU to function as each component is recorded in a recording medium such as the data storage unit 2. In that case, a commonly used WWW (World Wide Web) browser or the like can be used as the HTML viewer.
[0225]
In the thirteenth to fifteenth embodiments, the style table template creation means 18, the style table diversion means 19, the table group structure detection means 20 and the like are added to the ninth embodiment. 1 may be added. In that case, the same effects as those of the thirteenth to fifteenth embodiments can be obtained. Further, the display data by the above-described HTML is an example, and the description (background color, etc.) that is essentially not related to the table layout may be other.
[0226]
Further, the data storage unit 2, the display unit 3, and the input unit 4 described above may be provided in the structured document processing devices 1, 1A, 1B, 1C, and 1D.
[0227]
【The invention's effect】
As described above, according to the present invention, the structured document is analyzed, the logical structure of the structured document is specified, and the conversion that converts a part or all of the specified logical structure of the structured document into a table layout. A style sheet that describes the rules is created based on a predetermined style table that specifies the range and form of the table layout, and is structured so that the structured document is converted and displayed based on the style sheet. There is an effect that the structured document can be easily displayed in the table layout based on the style table without describing the logical structure of the document so that the table can be set. That is, there is an effect that various typesettings can be easily specified based on the style table for a structured document that is not a physical structure capable of table setting.
[0228]
Moreover, there is an effect that the form of the table layout, such as the direction of the table, can be easily changed simply by changing the style table.
[0229]
Furthermore, there is an effect that a structured document can be displayed in a table layout of an arbitrary number of cells in each row based on the style table.
[0230]
Furthermore, there is an effect that line numbers can be easily added when a structured document is displayed in a table layout.
[0231]
Further, when displaying a structured document in a table layout, there is an effect that it is possible to easily add a heading for the entire table or an integrated heading.
[0232]
Further, there is an effect that the structured document can be displayed in a table layout reflecting the hierarchical relationship between the logical structural elements.
[0233]
According to the present invention, logical structure specifying means for analyzing a structured document and specifying the logical structure of the structured document, the range and form of a table layout, and input of data input to the structured document based on the GUI Based on the style table that specifies the format, a conversion rule that converts part or all of the logical structure of the structured document specified by the logical structure specifying means into a table layout, and description of the input field according to the input format Style sheet creation means for creating a style sheet describing a command statement for output, a structured document converted based on the style sheet, displayed together with the input field, and set for the input field based on the GUI Structured document display means for displaying data in the input field and input data writing means for writing the data displayed in the input field to the structured document Therefore, it is possible to easily display a structured document in a table layout based on a style table without describing the logical structure of the structured document so that it can be set in a table, and to structure using a GUI. There is an effect that the contents of the logical structure element of the document can be easily edited.
[0234]
According to the present invention, when a logical structure has a plurality of identical logical structure elements and data is input to any one of the input fields corresponding to those logical structure elements, Since the data is displayed in the input field corresponding to the other logical structure element among the plurality of the same logical structure elements, the input work for the logical structure elements that appear repeatedly can be saved. There is an effect.
[0235]
According to the present invention, when data is input to the input field based on the GUI, it is verified whether or not a predetermined condition for the logical structure element corresponding to the input field is satisfied for the data. Since it is configured, there is an effect that the combination of the contents of the logical structural elements that violate the conditions can be easily confirmed on the screen. In addition, there is an effect that the result of the constraint check can be confirmed instantly after inputting the contents of the logical structure element.
[0236]
According to the present invention, the condition-execution relationship between a predetermined condition for each logical structure element and an executable statement corresponding to the predetermined condition is examined, and it is verified whether or not a circulation of the condition-execution relationship has occurred. Thus, there is an effect that it is possible to suppress an infinite circulation of processing when an actual check rule is executed. That is, there is an effect that it is possible to detect the cyclic execution of the command statement when designing the style table.
[0237]
According to the present invention, since the style table template is generated based on the logical structure of the structured document, the work of creating the style table can be saved by using the style table template. There is an effect.
[0238]
According to the present invention, the style table template changing means for changing the style table template based on another style table and generating a new style table template is provided, so that it corresponds to the other style table. Although the document type definition is different from that of a structured document, there is an effect that it is possible to save labor for creating a style table for a structured document that matches many tag names.
[0239]
According to the present invention, since the configuration of the style table is generated as the table layout for the possible portion of the table layout in the structured document, the work of creating the style table can be further labor-saving. There is an effect that can be.
[0240]
According to the present invention, since the style table is created based on the GUI by controlling the predetermined display unit and the input unit, it is possible to easily create the style table while visually confirming it. There is.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a structured document processing apparatus according to Embodiment 1 of the present invention.
FIG. 2 is a flowchart for explaining the operation of the structured document processing apparatus according to the first embodiment;
FIG. 3 is a diagram illustrating an example of a structured document described based on SGML.
4 is a diagram showing a structural tree corresponding to the logical structure of the structured document of FIG. 3; FIG.
FIG. 5 is a diagram showing an example of a style table for displaying the structured document of FIG. 3 in a table layout.
6 is a diagram illustrating a structural tree corresponding to the style table of FIG. 5;
7 is a diagram illustrating an example of a structure tree corresponding to a display style sheet created from the structure tree corresponding to the structured document in FIG. 4 and the structure tree corresponding to the style table in FIG. 6;
8 is a diagram illustrating an example of a display style sheet created according to the structural tree of FIG. 7;
9 is a diagram showing an example of display data obtained by converting the structured document of FIG. 3 in accordance with the display style sheet of FIG.
10 is a diagram showing an example of an image corresponding to the display data in FIG. 9. FIG.
FIG. 11 is a diagram showing an example of a style table in the second embodiment.
12 is a diagram showing an example of display data obtained by converting the structured document of FIG. 3 according to Embodiment 2. FIG.
13 is a diagram illustrating an example of an image corresponding to the display data in FIG.
FIG. 14 is a diagram showing an example of a style table in the third embodiment.
15 is a diagram showing an example of display data obtained by converting the structured document of FIG. 3 according to Embodiment 3. FIG.
16 is a diagram illustrating an example of an image corresponding to the display data in FIG.
FIG. 17 is a diagram showing an example of a style table in the fourth embodiment.
18 is a diagram showing an example of display data obtained by converting the structured document of FIG. 3 according to the fourth embodiment.
19 is a diagram showing an example of an image corresponding to the display data in FIG.
FIG. 20 is a diagram showing an example of a style table in the fifth embodiment.
FIG. 21 is a diagram showing an example of display data obtained by converting the structured document of FIG. 3 according to the fifth embodiment.
22 is a diagram showing an example of an image corresponding to the display data in FIG. 21. FIG.
FIG. 23 is a diagram illustrating a part of an example of a structured document in which the same logical structure repeatedly appears.
FIG. 24 is a diagram for displaying a structured document in which the same logical structure repeatedly appears in a table layout in which a logical structure element in the upper hierarchy is arranged in the vertical direction and a logical structure element in the lower hierarchy is arranged in the horizontal direction. It is a figure which shows an example of this style table.
FIG. 25 is a diagram illustrating an example of display data obtained by converting the structured document of FIG. 23 according to the sixth embodiment.
26 is a diagram illustrating an example of an image corresponding to the display data in FIG. 25. FIG.
FIG. 27 is a diagram illustrating a part of an example of a structured document in which the same logical structure repeatedly appears.
FIG. 28 is a table in which structured documents in which the same logical structure repeatedly appears are displayed in a horizontal direction with the contents of one logical structure element of the logical structures repeatedly appearing in the horizontal direction and with an array of other logical structure elements in the vertical direction. It is a figure which shows an example of the style table for displaying with a group layout.
FIG. 29 is a diagram showing an example of display data obtained by converting the structured document of FIG. 27 according to the seventh embodiment.
30 is a diagram showing an example of an image corresponding to the display data in FIG. 29. FIG.
FIG. 31 is a diagram illustrating an example of a part of a structured document in which a logical structure in which the same logical structure repeatedly appears further appears;
FIG. 32 is a diagram illustrating an example of a style table for displaying a structured document in which a logical structure in which the same logical structure repeatedly appears repeatedly in a table layout with a header column and a header row.
FIG. 33 is a diagram showing an example of display data obtained by converting the structured document of FIG. 31 according to the eighth embodiment.
34 is a diagram showing an example of an image corresponding to the display data in FIG. 33. FIG.
FIG. 35 is a block diagram showing the structure of a structured document processing apparatus according to Embodiment 9 of the present invention.
FIG. 36 is a flowchart for explaining the operation of the structured document processing apparatus according to the ninth embodiment;
FIG. 37 is a diagram showing an example of a style table for displaying the structured document of FIG. 27 in a table layout.
38 is a diagram showing an example of display data obtained by converting the structured document of FIG. 27 according to the ninth embodiment.
FIG. 39 is a diagram illustrating an example of an image corresponding to the display data in FIG.
40 displays the structured document of FIG. 27 in a table layout, specifies the input format of the input of the contents of the logical structure element, and further inputs it to one of the predetermined logical structure elements that repeatedly appear It is a figure which shows an example of the style table in the case of copying the value made into the other logical structure element of the predetermined logical structure elements.
FIG. 41 is a diagram showing an example of display data obtained by converting the structured document of FIG. 27 according to the tenth embodiment.
FIG. 42 shows an operation when a value is input to one of predetermined logical structure elements that repeatedly appear and the value is copied to another logical structure element of the predetermined logical structure element. It is a figure explaining.
FIG. 43 shows an operation when a value is input to one of predetermined logical structure elements that repeatedly appear and the value is copied to another logical structure element of the predetermined logical structure element. It is a figure explaining.
FIG. 44 shows an operation when a value is input to one of predetermined logical structure elements that repeatedly appear and the value is copied to another logical structure element of the predetermined logical structure element; It is a figure explaining.
FIG. 45 shows an operation when a value is input to one of predetermined logical structure elements that repeatedly appear and the value is copied to another logical structure element of the predetermined logical structure element. It is a figure explaining.
FIG. 46 shows an operation when a value is input to one of predetermined logical structure elements that repeatedly appear and the value is copied to another logical structure element of the predetermined logical structure element. It is a figure explaining.
FIG. 47 shows an operation when a value is input to one of predetermined logical structure elements that repeatedly appear and the value is copied to another logical structure element of the predetermined logical structure element. It is a figure explaining.
48 displays the structured document of FIG. 27 in a table layout, specifies the input format of the contents of the logical structure element, and further checks the constraint conditions for the contents input to the logical structure element, It is a figure which shows an example of the style table in the case of performing the operation etc. of the content of the other logical structure element according to the success or failure of the conditions with respect to the content input into the structural element.
FIG. 49 is a diagram showing an example of display data obtained by converting the structured document of FIG. 27 according to the eleventh embodiment.
FIG. 50: When a value is input to a logical structure element, checking a constraint condition for the content input to the logical structure element, and other logical structure elements according to success or failure of the condition for the content input to the logical structure element It is a figure explaining operation | movement when performing operation etc. of the content of this.
FIG. 51: When a value is input to a logical structure element, a constraint condition check for the content input to the logical structure element, and other logical structure elements according to success or failure of the condition for the content input to the logical structure element It is a figure explaining operation | movement when performing operation etc. of the content of this.
FIG. 52: When a value is input to a logical structure element, checking a constraint condition for the content input to the logical structure element, and other logical structure elements according to success or failure of the condition for the content input to the logical structure element It is a figure explaining operation | movement when performing operation etc. of the content of this.
FIG. 53: When a value is input to a logical structure element, a constraint condition check for the content input to the logical structure element, and other logical structure elements according to success or failure of the condition for the content input to the logical structure element It is a figure explaining operation | movement when performing operation etc. of the content of this.
FIG. 54 is a diagram showing an example of a list of condition-execution relationships in a style table created by style table analysis means in the twelfth embodiment.
FIG. 55 is a block diagram showing the structure of a structured document processing apparatus according to Embodiment 13 of the present invention.
FIG. 56 is a flowchart for explaining the operation of the structured document processing apparatus according to the thirteenth embodiment;
FIG. 57 is a diagram showing an example of a style table template created according to the thirteenth embodiment.
FIG. 58 is a block diagram showing the structure of a structured document processing apparatus according to Embodiment 14 of the present invention.
FIG. 59 is a flowchart for explaining the operation of the structured document processing apparatus according to the fourteenth embodiment;
FIG. 60 is a diagram showing an example of another style table used for a style table template in the fourteenth embodiment.
FIG. 61 is a diagram showing an example of a style table template created according to the fourteenth embodiment.
FIG. 62 is a block diagram showing the structure of a structured document processing apparatus according to Embodiment 15 of the present invention.
FIG. 63 is a flowchart for explaining the operation of the structured document processing apparatus according to the fifteenth embodiment;
FIG. 64 is a diagram showing a logical structure tree of the structured document in FIG. 23;
65 is a diagram showing a logical structure tree of the structured document in FIG. 27. FIG.
66 is a diagram showing a logical structure tree of the structured document in FIG. 31. FIG.
FIG. 67 is a diagram illustrating an example of an image for setting various designations of a style table.
FIG. 68 is a diagram illustrating an example of an image for setting various parameters (table property) for designating a table.
FIG. 69 is a diagram showing an example of an image for setting input fields and setting various parameters (input properties) thereof.
FIG. 70 is a diagram illustrating an example of an image for setting check rule designation.
FIG. 71 is a diagram for explaining a conventional structured document processing method (first conventional technique).
FIG. 72 is a diagram for explaining a conventional structured document processing method (first conventional technique).
FIG. 73 is a diagram for explaining a conventional structured document processing method (first conventional technique).
FIG. 74 is a block diagram showing a conventional structured document processing apparatus (second conventional technique).
[Explanation of symbols]
1, 1A, 1B, 1C, 1D structured document processing device, 11 structured document analysis means (logical structure specifying means), 12 style table analysis means (style sheet creation means, circulation verification means), 13 table structure conversion means (Style sheet creation means), 14 display style sheet creation means (style sheet creation means), 15 structured document display means, 16 input style sheet creation means (style sheet creation means), 17 structured document storage means (input) Data writing means), 18 style table template creation means (style table template generation means), 19 style table diversion means (style table template change means), 20 table structure detection means (style table template generation means), 21 structured Document, 22 Style Table, 22A Other Style Table, 23 Display Style Sheet (Style Sheet), 24 Force for the style sheet (style sheet), 25 style table template (of style table template).

Claims (11)

構造化文書の一部または全部を表組レイアウトで表示する構造化文書処理装置において、
前記構造化文書を解析し、その構造化文書の論理構造を特定する論理構造特定手段と、
前記表組レイアウトの範囲および形態、並びにGUIに基づく構造化文書へのデータ入力の入力形式を指定するスタイル表に基づいて、前記論理構造特定手段により特定された前記構造化文書の論理構造の一部または全部を表組レイアウトに変換する変換ルール、および前記入力形式に応じた入力欄の記述を出力するための命令文を記述したスタイルシートを作成するスタイルシート作成手段と、
前記スタイルシートに基づいて前記構造化文書を変換し、前記入力欄とともに表示し、前記GUIに基づいて前記入力欄に対して設定されたデータをその入力欄に表示する構造化文書表示手段と、
前記入力欄に表示されたデータを前記構造化文書に書き込む入力データ書込手段と
を備えることを特徴とする構造化文書処理装置。
In a structured document processing apparatus that displays a part or all of a structured document in a table layout,
Logical structure specifying means for analyzing the structured document and specifying the logical structure of the structured document;
One of the logical structures of the structured document specified by the logical structure specifying means based on the range and form of the table layout and the style table that specifies the input format of data input to the structured document based on the GUI A style sheet creating means for creating a style sheet describing a conversion rule for converting a part or all into a table layout, and a statement for outputting a description of an input field according to the input format;
A structured document display means for converting the structured document based on the style sheet, displaying the structured document together with the input field, and displaying data set for the input field based on the GUI in the input field;
A structured document processing apparatus comprising: input data writing means for writing data displayed in the input field to the structured document.
構造化文書表示手段は、論理構造が複数個の同一の論理構造要素を有し、かつ、それらの論理構造要素に対応する入力欄のうちのいずれか1つに対してデータが入力された場合、前記複数個の同一の論理構造要素のうちの他の論理構造要素に対応する入力欄に、そのデータを表示する
ことを特徴とする請求項記載の構造化文書処理装置。
The structured document display means has a logical structure having a plurality of identical logical structure elements, and data is input to any one of the input fields corresponding to the logical structure elements. other input field corresponding to the logical structure elements, the structured document processing apparatus according to claim 1, wherein the displaying the data of said plurality of identical logical structure elements.
構造化文書表示手段は、GUIに基づいて入力欄に対してデータが入力された場合、そのデータについて、その入力欄に対応する論理構造要素に対する所定の条件が成立するか否かを検証する
ことを特徴とする請求項記載の構造化文書処理装置。
When data is input to the input field based on the GUI, the structured document display means verifies whether or not a predetermined condition for the logical structure element corresponding to the input field is satisfied for the data. The structured document processing apparatus according to claim 1 .
構造化文書表示手段は、入力されたデータについて、前記入力欄に対応する論理構造要素に対する所定の条件が成立した場合に、その条件に対応する実行文に基づいて所定の値をその論理構造要素に設定する
ことを特徴とする請求項記載の構造化文書処理装置。
When a predetermined condition for the logical structure element corresponding to the input field is satisfied for the input data, the structured document display means assigns a predetermined value to the logical structure element based on the executable statement corresponding to the condition. The structured document processing apparatus according to claim 3 , wherein the structured document processing apparatus is configured as follows.
各論理構造要素に対する所定の条件とその所定の条件に対応する実行文との条件−実行関係を調べ、前記条件−実行関係の循環が発生しているか否かを検証する循環検証手段を備える
ことを特徴とする請求項記載の構造化文書処理装置。
A circulation verification means for examining a condition-execution relationship between a predetermined condition for each logical structure element and an executable statement corresponding to the predetermined condition, and verifying whether or not a cycle of the condition-execution relationship has occurred; The structured document processing apparatus according to claim 4 .
スタイルシートに記述される変換ルールは、論理構造の終端の論理構造要素に対応して表組レイアウトのための命令文を生成するものである
ことを特徴とする請求項記載の構造化文書処理装置。
The conversion rule described in the style sheet, the structured document processing according to claim 1, wherein the corresponding logical structure element at the end of the logical structure and generates a statement for the table column layout apparatus.
構造化文書の論理構造に基づいてスタイル表の雛形を生成するスタイル表雛形生成手段を備える
ことを特徴とする請求項記載の構造化文書処理装置。
Structured document processing apparatus according to claim 1, characterized in that it comprises a style table model generating means for generating a skeleton style table based on the logical structure of the structured document.
他のスタイル表に基づいてスタイル表の雛形を変更し、新たなスタイル表の雛形を生成するスタイル表雛形変更手段を備える
ことを特徴とする請求項記載の構造化文書処理装置。
8. The structured document processing apparatus according to claim 7, further comprising: a style table template changing unit that changes a style table template based on another style table and generates a new style table template.
スタイル表雛形生成手段は、構造化文書のうちの表組レイアウトの可能な部分については表組レイアウトとしてスタイル表の雛形を生成する
ことを特徴とする請求項記載の構造化文書処理装置。
9. The structured document processing apparatus according to claim 8, wherein the style table template generation means generates a style table template as a table layout for a portion of the structured document that is capable of a table layout.
所定の表示部および入力部を制御してGUIに基づいてスタイル表を作成するスタイル表作成手段を備える
ことを特徴とする請求項記載の構造化文書処理装置。
Structured document processing apparatus according to claim 1, characterized in that it comprises a style table creation means for creating a style table based on GUI by controlling the predetermined display unit and an input unit.
構造化文書の一部または全部を表組レイアウトで表示する構造化文書処理方法において、
論理構造特定手段により、前記構造化文書を解析し、その構造化文書の論理構造を特定するステップと、
スタイルシート作成手段により、前記表組レイアウトの範囲および形態、並びにGUIに基づく構造化文書へのデータ入力の入力形式を指定するスタイル表に基づいて、前記論理構造特定手段により特定された前記構造化文書の論理構造の一部または全部を表組レイアウトに変換する変換ルール、および前記入力形式に応じた入力欄の記述を出力するための命令文を記述したスタイルシートを作成するステップと、
前記スタイルシートに基づいて前記構造化文書を変換し、表示するステップと
構造化文書表示手段により、前記スタイルシートに基づいて前記構造化文書を変換し、前記入力欄とともに表示し、前記GUIに基づいて前記入力欄に対して設定されたデータをその入力欄に表示するステップと、
入力データ書込手段により、前記入力欄に表示されたデータを前記構造化文書に書き込むステップ
を備えることを特徴とする構造化文書処理方法。
In a structured document processing method for displaying a part or all of a structured document in a table layout,
Analyzing the structured document by a logical structure specifying means and specifying a logical structure of the structured document;
The structured structure specified by the logical structure specifying means based on a style table that specifies the range and form of the table layout and the input format of data input to the structured document based on the GUI by the style sheet creating means Creating a conversion rule for converting part or all of the logical structure of a document into a table layout, and a style sheet describing a statement for outputting a description of an input field according to the input format ;
Converting and displaying the structured document based on the stylesheet;
The structured document display means converts the structured document based on the style sheet, displays it together with the input field, and displays data set for the input field based on the GUI in the input field . Steps,
And a step of writing the data displayed in the input field into the structured document by an input data writing means .
JP04554499A 1999-02-23 1999-02-23 Structured document processing apparatus and structured document processing method Expired - Fee Related JP3830686B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04554499A JP3830686B2 (en) 1999-02-23 1999-02-23 Structured document processing apparatus and structured document processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04554499A JP3830686B2 (en) 1999-02-23 1999-02-23 Structured document processing apparatus and structured document processing method

Publications (2)

Publication Number Publication Date
JP2000242641A JP2000242641A (en) 2000-09-08
JP3830686B2 true JP3830686B2 (en) 2006-10-04

Family

ID=12722319

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04554499A Expired - Fee Related JP3830686B2 (en) 1999-02-23 1999-02-23 Structured document processing apparatus and structured document processing method

Country Status (1)

Country Link
JP (1) JP3830686B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002222181A (en) * 2000-11-21 2002-08-09 Bisket Kk Information processing system and method therefor, and recording medium recording information processing software
US6868528B2 (en) * 2001-06-15 2005-03-15 Microsoft Corporation Systems and methods for creating and displaying a user interface for displaying hierarchical data
EP1280055B1 (en) * 2001-07-27 2010-04-14 Sap Ag Method and computer system for creating and processing a browser compliant human interface description
JP4373470B2 (en) * 2005-03-30 2009-11-25 富士通株式会社 Document conversion utilization system

Also Published As

Publication number Publication date
JP2000242641A (en) 2000-09-08

Similar Documents

Publication Publication Date Title
JP4095558B2 (en) Document processing apparatus, document processing method, and computer program
CN1607524B (en) Method for checking multiple variable data document and computer device
US20190147022A1 (en) Method, program, recording medium, and device for assisting in creating homepage
Schrage Proxima: a presentation-oriented editor for structured documents
JP4566196B2 (en) Document processing method and apparatus
JP3830686B2 (en) Structured document processing apparatus and structured document processing method
US20090235156A1 (en) Document processing device and document processing method
JPH06251007A (en) Table data input device
JP4627530B2 (en) Document processing method and apparatus
US5671427A (en) Document editing apparatus using a table to link document portions
JP4889338B2 (en) Screen program layout changing method, information processing apparatus, program, and recording medium
JP2001344230A (en) Device and method for generating multimedia document, and recording medium with program for allowing computer to execute the method recorded thereon
KR20040090866A (en) XML Document Editor Using a Form and Computer-Readable Recording Medium
JP4354719B2 (en) Program development support program
JPH0384661A (en) Document producing device
JP2000076226A (en) Document data editing system
JP3619015B2 (en) Structured document processing method
JP2946715B2 (en) Program generation method and specification input method for it
JP2002366354A (en) Method, device, and program for generating program specification
JPS63109578A (en) Processing system for logic diagram outline display
JPH0683594A (en) Graphical user interface, wherein withy-wig type edditer and compiler are integrated
JP2003058370A (en) Source code generation system
JP2000339307A (en) Typesetting device
JP3677852B2 (en) Document processing method and apparatus
Torii et al. The consistency control system of XML documents

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040921

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060328

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060515

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060613

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060712

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: 20100721

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100721

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110721

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110721

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120721

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120721

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130721

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees