« Mac_Stripe-XHTML_Strict-ja | Main | Mac_Stripe-XHTML_Strict-ja の2005年10月29日の更新のお知らせ »
Mac_Stripe-XHTML_Strict-ja に含まれるテンプレートにおいてオリジナルとは異なる部分のうち、文書の適合性に関する箇所について解説をします。
<?xml version="1.0" encoding="<$Charset$>" ?>
An XML declaration is not required in all XML documents; however XHTML document authors are strongly encouraged to use XML declarations in all their documents.
XML 宣言は全ての XML 文書で必須というわけではない。しかしながら XHTML 文書作成者はその全ての文書の中で XML 宣言を使用するように強く推奨される。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
The root element of the document must be html.
文書の root 要素は html でなければならない。
および同セクションの次の箇所。
There must be a DOCTYPE declaration in the document prior to the root element.
その root 要素に先立って文書には DOCTYPE 宣言がなければならない。
<html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<$Lang$>" lang="<$Lang$>">
The root element of the document must contain an xmlns declaration for the XHTML namespace [XMLNS]. The namespace for XHTML is defined to be http://www.w3.org/1999/xhtml.
文書のその root 要素は XHTML 名前空間 [XMLNS] のための xmlns 宣言を含んでいなければならない。XHTML のための名前空間は http://www.w3.org/1999/xhtml と定義される。
<html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<$Lang$>" lang="<$Lang$>">
For example, in HTML set the "lang" attribute on the
HTML element.
例えば、HTML では HTML 要素に "lang" 属性を設定すること。
lang 属性を付けるという条件下で必須事項です。
<html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<$Lang$>" lang="<$Lang$>">
lang と xml:lang 属性」より
Use both the lang and xml:lang attributes when specifying the language of an element.
要素の言語を指定するときは lang と xml:lang 属性の両方を使用すること。