Internationalization Tag Set
XML文書の国際化・翻訳・地域化の方法
From Wikipedia, the free encyclopedia
来歴
機能
例
国際化タグセットを組み込んだ文書の例を示す(W3C勧告中の例を改変して引用)。
<!DOCTYPE html>
<html lang="ja"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<title>国際化タグセットの例</title>
<script type="application/its+xml">
<its:rules version="2.0"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:h="http://www.w3.org/1999/xhtml">
<its:translaterule translate="no" selector="//h:code"/>
</its:rules>
</script>
</head>
<body>
<p>地の文は翻訳されるべきだが,例えば「<code>main</code>関数」といった記述などは
翻訳されるべきではない(機械処理の意味が変わってしまうので)。
その為に広域規則を用いて<code><code></code>要素を翻訳しないように設定している。
<code><code></code>要素であっても翻訳すべき場合は
<code><translate></code>属性に<code>yes</code>を指定する。
例えば: <code translate="yes">警告</code>など。
</p>
</body>
</html>