電子文件交換是達成資訊共享的重要一環,國際標準 SGML 則是文件在異 質環境中交換時用來描述文件結構的一種協定。 SGML 極富彈性,適用於 各類文件,而其彈性來自「文件型別定義」。文件型別定義根據「SGML 宣告」和「SGML 抽象語法」的規範來描寫特定型別的文件結構,以利電 腦剖析和處理。 SGML 宣告可依特殊需要自行訂定,而 SGML 的抽象語法 又甚繁雜,因此只有受過相當訓練的人或藉助於工具,才能製作出完整無 缺的文件型別定義。不過,輔助撰寫文件型別定義的工具目前尚付之闕如 ,因此,制定合用的文件型別定義往往成為應用 SGML 的瓶頸。本研究實 作了一個撰寫文件型別定義的智慧型輔助工具。此工具憑撰寫者鍵入的「 內容模式」逐步建立對應的「語法樹」,再配合「動態確認」與「邏輯叢 聚」的技巧,以人機互動的方式導引撰寫者完成一個合乎規範的文件型別 定義。
Document interchange is an important link in information sharing, and the international standard SGML is a protocol for describing document structure for document interchange in a heterogeneous enviroment. SGML is flexible and suitable for all kinds of documents. Its flexibility comes from the "document type definition". A document type definition describes a particular type of document structure, using the rules of "SGML declaration" and "abstract syntax of SGML" to facilitate computer parsing and processing. Since the SGML declaration can be customized according to special needs and the abstract syntax is quite complex, only those with considerable training or relying on tools can create a complete and correct document type definition. Unfortunately, tools for writing document type definition are lacking, thus, producing a suitable document type definition often becomes the bottleneck in using SGML. This research designed and implemented an intelligent tool to aid in wirting document type definition. This tool builds up a "syntax tree" based on the "content model" input by the writer. Combining with the "dynamic validation" and "logical bunching" techinques, this tool guides the writer interactively to produce a conforming document type definition.