この付録は正式なものである。
This appendix is normative.
SVG ファミリーUAの間で SVG ファミリーの文書の可搬性を最大限確保するために、この仕様ではこれら双方に対し、同時に SVG ファミリー文書型についても、適合性要件を厳格に定義する。適合性の定義についてはこの付録で見ることができるが、それらはこの文書および他の関連仕様に含まれる正式な記述を参照している。 SVG の適合性要件を完全に理解するためには、それらの正式な文献全てを完全に読解する必要がある。
In order to ensure that SVG-family documents are maximally portable among SVG-family user agents, this specification rigidly defines conformance requirements for both, as well as for SVG-family document types. While the conformance definitions can be found in this appendix, they necessarily reference normative text within this document and within other related specifications. It is only possible to fully comprehend the conformance requirements of SVG through a complete reading of all normative references.
SVG 文書片は、 SVG の DTD ( 文書型定義 を見よ)も含むこの文書で述べられる仕様( SVG 仕様 )と次に挙げるものに厳格に従うとき、適合 SVG 文書片( Conforming SVG Document Fragment )とされる。
An SVG document fragment is a Conforming SVG Document Fragment if it adheres to the specification described in this document ( Scalable Vector Graphics (SVG) Specification) including SVG's DTD (see Document Type Definition) and also:
<?xml...?>
)を追加し、その直後に SVG DTD を参照する適切な文書型宣言(即ち <!DOCTYPE svg ... >
)を追加して出来上がる文書が
妥当な XML 文書
( valid XML document )になる。
<?xml...?>
) is included at the top of the document, and if an appropriate document type declaration (i.e., <!DOCTYPE svg ... >
) which points to the SVG DTD is included immediately thereafter, the result is a
valid XML document.SVG 言語とこれらの適合性基準は SVG 内容に対するいかなるサイズ制限も仮定しない。要素数の最大値, 文字データ量, 属性値の文字数に制限は設けられていない。
The SVG language or these conformance criteria provide no designated size limits on any aspect of SVG content. There are no maximum values on the number of elements, the amount of character data, or the number of characters in attribute values.
ファイルは次を満たすとき適合 SVG 独立ファイル( Conforming SVG Stand-Alone File )とされる:
A file is a Conforming SVG Stand-Alone File if:
XML 名前空間 [XML-NS] で述べられている仕組みを利用して SVG 文書片を親の XML 文書内に含めることができる。
SVG document fragments can be included within parent XML documents using the XML namespace facilities described in Namespaces in XML.
親の XML 文書内に含まれる SVG 文書片は、親 XML 文書から取り出されたときに SVG 文書型定義( DTD ) に適合するとき適合被包含 SVG 文書片( Conforming Included SVG Document Fragment )とされる。
An SVG document fragment that is included within a parent XML document is a Conforming Included SVG Document Fragment if the SVG document fragment, when taken out of the parent XML document, conforms to the SVG Document Type Definitions (DTD).
特に、 SVG 名前空間の('svg' 要素以外の)要素はそれ自身としては利用できないことに注意。すなわち次の文書は適合していない:
In particular, note that individual elements from the SVG namespace cannot be used by themselves. Thus, the SVG part of the following document is not conforming:
<?xml version="1.0" standalone="no"?> <!DOCTYPE SomeParentXMLGrammar PUBLIC "-//SomeParent" "http://SomeParentXMLGrammar.dtd"> <ParentXML> <!-- ParentXML の要素がここに挿入される --> <!-- 次の記述は適合していない --> <z:rect xmlns:z="http://www.w3.org/2000/svg" x="0" y="0" width="10" height="10" /> <!-- ParentXML の要素がここに挿入される --> </ParentXML>
そのかわり、次のような修正を施せば SVG の部分が適合被包含 SVG 文書片になる(下の例ではスタイル付け可能な SVG の利用を示している):
Instead, for the SVG part to become a Conforming Included SVG Document Fragment, the file could be modified as follows (the example below shows the use of Stylable SVG):
<?xml version="1.0" standalone="no"?> <!DOCTYPE SomeParentXMLGrammar PUBLIC "-//SomeParent" "http://SomeParentXMLGrammar.dtd"> <ParentXML> <!-- ParentXML の要素がここに挿入される --> <!-- 次の記述は適合している --> <z:svg xmlns:z="http://www.w3.org/2000/svg" width="100px" height="100px" > <z:rect x="0" y="0" width="10" height="10" /> </z:svg> <!-- ParentXML の要素がここに挿入される --> </ParentXML>
適合 SVG ジェネレータ( Conforming SVG Generator )とは次の2つを満たすプログラムのことである:
A Conforming SVG Generator is a program which:
更に、適合 SVG ジェネレータである文書作成ツールは、 SVG 内容のジェネレータに関連する部分において、「文書作成ツール・アクセシビリティ指針( Authoring Tool Accessibility Guidelines 1.0 )」 [ATAG] による優先度( Priority )1のアクセシビリティ指針全てへの適合が要求される(優先度2および3は奨励されるが適合性には要求されない)。
Additionally, an authoring tool which is a Conforming SVG Generator conforms to all of the Priority 1 accessibility guidelines from the document "Authoring Tool Accessibility Guidelines 1.0" [ ATAG] that are relevant to generators of SVG content. (Priorities 2 and 3 are encouraged but not required for conformance.)
SVG ジェネレータは W3C による国際化分野における開発( W3C developments in the area of internationalization )に従うことが奨励される。特に重要なのは、W3C Character Model( W3C 文字モデル)と Webwide Early Uniform Normalization の概念であり、それらは利用者やアプリケーション間でのユニコード文字データの互換性の向上を約束する。将来版の SVG 仕様では適合 SVG ジェネレータに対し W3C Character Model のサポートが要求される見込みである。
SVG generators are encouraged to follow W3C developments in the area of internationalization. Of particular interest is the W3C Character Model and the concept of Webwide Early Uniform Normalization, which promises to enhance the interchangability of Unicode character data across users and applications. Future versions of the SVG specification are likely to require support of the W3C Character Model in Conforming SVG Generators.
SVG インタープリタとは、 SVG 文書片の構文解析と処理が可能なプログラムのことを意味する。 SVG インタープリタの例としては、サーバ側データ変換ツール(例えば SVG 内容を修正して SVG 内容に変換するツール)や、解析ツール(例えば SVG 内容からテキスト内容を抽出するツール)などが挙げられる。 SVG ビューア は、処理が対象メディアへの SVG 内容の描画であるという意味で SVG 文書片の構文解析と処理が可能でなければならないので、 SVG インタープリタに対する要求を満足することになる。
An SVG interpreter is a program which can parse and process SVG document fragments. Examples of SVG interpreters are server-side transcoding tools (e.g., a tool which converts SVG content into modified SVG content) or analysis tools (e.g., a tool which extracts the text content from SVG content). An SVG viewer also satisfies the requirements of an SVG interpreter in that it can parse and process SVG document fragments, where processing consists of rendering the SVG content to the target medium.
適合 SVG インタープリタ( Conforming SVG Interpreter )は [XML10] と [XML-NS] で定義される全ての XML 構造の構文解析と処理ができなければならない。
In a Conforming SVG Interpreter, the XML parser must be able to parse and process all XML constructs defined within [ XML10] and [ XML-NS].
適合 SVG インタープリタは次の2種に分けられる:
There are two sub-categories of Conforming SVG Interpreters:
適合 SVG インタープリタは任意の SVG 文書を正しく構文解析できなければならない。全ての特色機能の意味内容を正しく解釈することは要求されていない。
A Conforming SVG Interpreter must parse any SVG document correctly. It is not required to interpret the semantics of all features correctly.
注意: SVG からラスターへの変換などの SVG から別のグラフィックス表現へのデータ変換は一種のビューアであり、ビューアに対する適合性基準が適用される。( 適合 SVG ビューア を見よ。)
Note: A transcoder from SVG into another graphics representation, such as an SVG-to-raster transcoder, represents a viewer, and thus viewer conformance criteria apply. (See Conforming SVG Viewers.)
SVG ビューアとは SVG 文書片の構文解析と処理が可能であり、文書の内容をディスプレイやプリンタなどの何らかの出力メディアに描画可能なプログラムを意味する。したがって、SVG ビューアはSVG インタープリタでもある。
An SVG viewer is a program which can parse and process an SVG document fragment and render the contents of the document onto some sort of output medium such as a display or printer; thus, an SVG Viewer is also an SVG Interpreter.
適合 SVG ビューア( Conforming SVG Viewer )は次の2種に分けられる:
There are two sub-categories of Conforming SVG Viewers:
適合静的 SVG ビューアと適合動的 SVG ビューアの両方に、以下の特別な基準への適合が要求される:
Specific criteria that apply to both Conforming Static SVG Viewers and Conforming Dynamic SVG Viewers:
アンチエイリアスのサポートは厳密には適合 SVG ビューアに要求されてはいないが、ディスプレイ装置に対しては強く推奨される。アンチエイリアスのサポートが無い場合、ディスプレイ装置への描画結果は一般に低品質である。
Although anti-aliasing support is not a strict requirement for a Conforming SVG Viewer, it is highly recommended for display devices. Lack of anti-aliasing support will generally result in poor results on display devices.
更に、適合動的 SVG ビューアには以下の特別な基準への適合が要求される:
Specific criteria that apply to only Conforming Dynamic SVG Viewers:
Web Accessibility Initiative [WAI] は、「ユーザーエージェントアクセシビリティ指針( User Agent Accessibility Guidelines 1.0 )」 [UAAG] を定義中である。ビューアにはその文書で定義される優先度1のアクセシビリティ指針に適合することが奨励され、更に優先度2と3にも適合することが望まれる。指針が完成した暁には、この仕様の将来版において、優先度1の指針が適合性への要件として適合 SVG ビューアに要求される見込みである。
The Web Accessibility Initiative [ WAI] is defining "User Agent Accessibility Guidelines 1.0" [ UAAG]. Viewers are encouraged to conform to the Priority 1 accessibility guidelines defined in this document, and preferably also Priorities 2 and 3. Once the guidelines are completed, a future version of this specification is likely to require conformance to the Priority 1 guidelines in Conforming SVG Viewers.
より高次の概念的基準が適合高品質 SVG ビューアに適用される。適合高品質 SVG ビューアは、適合高品質静的 SVG ビューア と 適合高品質動的 SVG ビューア に分類される。
A higher order concept is that of a Conforming High-Quality SVG Viewer, with sub-categories Conforming High-Quality Static SVG Viewer and Conforming High-Quality Dynamic SVG Viewer.
適合高品質静的 SVG ビューア と 適合高品質動的 SVG ビューア の双方とも、次の追加の特色機能をサポートしなければならない:
Both a Conforming High-Quality Static SVG Viewer and a Conforming High-Quality Dynamic SVG Viewer must support the following additional features:
更に、適合高品質動的 SVG ビューアには次の特色機能のサポートが要求される:
A Conforming High-Quality Dynamic SVG Viewer must support the following additional features:
適合 SVG ビューアは プレゼンテーション属性 を用いてスタイル付けプロパティを SVG 内容に適用できなければならない。
A Conforming SVG Viewer must be able to apply styling properties to SVG content using presentation attributes.
UAが CSS2 をサポートする場合、適合 SVG ビューアも SVG 内容の CSS によるスタイル付け、および、この仕様で述べられている SVG に適用される CSS2 仕様 の特色機能全てをサポートしなければならない( CSS と XSL で共有されるプロパティ, CSS によるスタイル付け, SVG で利用される CSS と XSL の機能 を見よ)。サポートされる CSS2 の特色機能の実装は、 CSS2 仕様における適合性の定義( conformance definitions from the CSS2 specification )に従わねばならない。
If the user agent includes a CSS2 capability, a Conforming SVG Viewer must support CSS styling of SVG content and must support all features from CSS2 ( Cascading Style Sheets, level 2 CSS2 Specification) that are described in this specification as applying to SVG (see properties shared with CSS and XSL, Styling with CSS and Facilities from CSS and XSL used by SVG). The supported features from CSS2 must be implemented in accordance with the conformance definitions from the CSS2 specification.
UAが HTML または XHTML の表示能力を持つ、あるいは XML 文書への CSS/XSL スタイル付けプロパティの適用能力を持つ場合、適合 SVG ビューアは、 HTML または XHTML の 'img' 要素、あるいはラスター画像リソースを参照できる CSS/XSL プロパティ(例えば 'background-image' )などの、外部リソースとしてラスター画像が利用できるような全ての場所において、 MIME タイプ "image/svg+xml" のリソースをサポートしなければならない。
If the user agent includes an HTML or XHTML viewing capability or can apply CSS/XSL styling properties to XML documents, then a Conforming SVG Viewer must support resources of MIME type "image/svg+xml" wherever raster image external resources can be used, such as in the HTML or XHTML 'img' element and in CSS/XSL properties that can refer to raster image resources (e.g., 'background-image').