ISO/IEC 10179:1996 情報技術—処理言語—ドキュメントスタイルセマンティクスおよび仕様言語(DSSSL) | ページ 3

※一部、英文及び仏文を自動翻訳した日本語訳を使用しています。

序章

この国際標準は、SGML 文書のフォーマットと変換を指定するために使用される Document Style Semantics and Specification Language (DSSSL) を定義します。 DSSSL の最初の焦点は、紙媒体と電子媒体の両方の書式設定と、さまざまな DTD に従ってマークアップされた SGML 文書の変換にあります。 DSSSL は、ドキュメント タイプの定義を変更したり制約したりする必要なく、任意の SGML ドキュメントで使用できます。

この国際標準の主な目的は、書式設定およびその他のドキュメント処理仕様を形式的かつ厳密な方法で表現するための言語を提供し、これらの仕様をネイティブまたは翻訳メカニズムを使用して幅広いフォーマッタで処理できるようにすることです。

DSSSL スタイル言語を使用すると、ユーザーは、構成、レイアウト、およびページ付けの際にさまざまなオブジェクトに適用されるフォーマットの種類を指定できます。 DSSSL 変換言語により、ユーザーは SGML マークアップの 1 つのアプリケーションから別のアプリケーションへのドキュメントの変換を指定できます。

DSSSL は、ドキュメントのクラスに適用される仕様向けに設計されています。これらの仕様は、特定の SGML ドキュメントだけでなく、SGML アプリケーションのすべての可能な SGML ドキュメントにも適用できます。

DSSSL 仕様言語は宣言型です。これらは完全なプログラミング言語を意図したものではありませんが、通常そのような言語に関連する構造が含まれています。 DSSSL 仕様は、異種システムによって明確に解析および解釈できます。さらに、「フロントエンド」の DSSSL プロセッサとトランスレータを使用することで、DSSSL 仕様を既存のフォーマッティング システムで使用することもできます。 DSSSL は、バッチまたはインタラクティブな書式設定システムに偏りがなく、事前定義された書式設定アルゴリズムを規定していません。

DSSSL では、フロー オブジェクトと呼ばれる一連の基本構造と、それらのオブジェクトに適用される一連の関連する書式設定特性によって、書式設定セマンティクスの標準化が提供されます。 DSSSL は、DSSSL アプリケーション設計者がアプリケーション環境に最適な DSSSL アプリケーションを構築できるように、セマンティック構造を定義および拡張するためのメカニズムを提供します。

0.1 バックグラウンド

DSSSL の背後にある概念は、汎用コーディングの開発に関連しており、特に SGML (Standard Generalized Markup Language (ISO 8879)) に関連しています。

歴史的に、電子原稿には、ドキュメントを特定の方法 (「特定のコーディング」) でフォーマットする制御コードまたはマクロ呼び出しが含まれていました。対照的に、1960 年代後半に始まった一般的なコーディングは、説明的なタグを使用します (たとえば、「スペース 3 行; 14 ポイント ボドニ」ではなく「見出し」)汎用コーディングの概念の中心にあるのは、ドキュメントの情報コンテンツをコンテンツの形式または外観から分離することです。汎用コーディングの概念は 1970 年代初頭に注目を集め、SGML の開発によって実現しました。

SGML はドキュメントのクラスをモデル化するための言語を提供しますが、特定のモデルや定義済みのタグ セットを規定するものではありません。 SGML をドキュメントのクラスに適用する一連のルール (主に DTD とそのサポート ドキュメントで構成される) は、SGML アプリケーションとして知られています。

SGML は文書構造の表現を標準化し、フォーマッターや汎用トランスレーターなどの他のプロセッサーとのインターフェースのための独自の技術を開発することはユーザーに任せています。 DSSSL は、書式設定やその他の処理仕様に標準化されたアーキテクチャを提供することで、この 2 番目のクラスのアプリケーションをサポートするように設計されており、ユーザーは標準化されたフレームワーク内でそのような仕様を交換できます。

DSSSL 仕様は通常、それが適用される SGML ドキュメントの外部にあるため、複数の仕様を特定の SGML ドキュメントに適用して、同じデータのさまざまな表現を生成することができます。

SGML は、ドキュメントの本質的な内容と構造と、それを処理するための仕様とを区別する機能を提供します。 DSSSL を使用すると、SGML ドキュメントと組み合わせてフォーマットやその他の処理仕様を交換して、コンテンツとフォーマットの本質的な違いを維持しながら、ドキュメント表示の標準化された仕様を提供できます。

Introduction

This International Standard defines the Document Style Semantics and Specification Language (DSSSL) used to specify the formatting and transformation of SGML documents. The initial focus of DSSSL is on formatting for both paper and electronic media and on the transformation of SGML documents marked up according to different DTDs. DSSSL may be used with any SGML documents without requiring modifications or constraining the document type definitions.

The main objective of this International Standard is to provide a language for expressing formatting and other document processing specifications in a formal and rigorous manner so that these specifications may be processed by a broad range of formatters, either natively or using a translation mechanism.

The DSSSL style language allows users to specify the types of formatting to be applied to various objects during composition, layout, and pagination. The DSSSL transformation language allows users to specify the transformation of documents from one application of SGML markup into another.

DSSSL is designed for specifications that apply to a class of documents. These specifications are applicable to all possible SGML documents for an SGML application as well as to a particular SGML document.

The DSSSL specification languages are declarative. They are not intended to be complete programming languages, although they contain constructs normally associated with such languages. DSSSL specifications can be unambiguously parsed and interpreted by heterogeneous systems. In addition, DSSSL specifications may be used by existing formatting systems through the use of 'front-end' DSSSL processors and translators. DSSSL has no bias toward batch or interactive formatting systems and does not prescribe any pre-defined formatting algorithms.

The standardization of formatting semantics is provided in DSSSL through a set of basic structures known as flow objects and an associated set of formatting characteristics that are applied to those objects. DSSSL provides mechanisms for defining and extending the semantic constructs so that DSSSL application designers can construct DSSSL applications best suited to their application environments.

0.1 Background

The concepts behind DSSSL are associated with the development of generic coding and specifically with SGML, the Standard Generalized Markup Language (ISO 8879).

Historically, electronic manuscripts contained control codes or macro calls that caused the document to be formatted in a particular way ('specific coding'). In contrast, generic coding, which began in the late 1960s, uses descriptive tags (for example, 'heading' rather than 'Space 3 lines; 14 point Bodoni'). Central to the concept of generic coding is the separation of the information content of documents from the format or appearance of the content. The generic coding concept gained prominence in the early 1970s and came to fruition with the development of SGML.

While SGML provides the language for modeling classes of documents, it does not prescribe any particular model or pre-defined tag set. A set of rules (consisting primarily of a DTD and its supporting documentation) that applies SGML to a class of documents is known as an SGML application.

SGML standardizes the representation of the document structure, leaving it to users to develop their own techniques for interfacing with formatters and other processors, such as general purpose translators. DSSSL is designed to support this second class of applications by providing a standardized architecture for formatting and other processing specifications, allowing users to interchange such specifications within a standardized framework.

A DSSSL specification is normally external to the SGML document to which it applies, and thus multiple specifications may be applied to a given SGML document to yield various presentations of the same data.

SGML provides the ability to distinguish between the intrinsic content and structure of a document, on the one hand, and the specifications for processing it on the other. With DSSSL, formatting and other processing specifications may be interchanged in conjunction with SGML documents to provide the standardized specification of document display while preserving the essential distinction between content and format.