diff options
Diffstat (limited to 'files/ja/web/xpath/functions/lang/index.html')
| -rw-r--r-- | files/ja/web/xpath/functions/lang/index.html | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/files/ja/web/xpath/functions/lang/index.html b/files/ja/web/xpath/functions/lang/index.html index b52a8114d0..58fa50c595 100644 --- a/files/ja/web/xpath/functions/lang/index.html +++ b/files/ja/web/xpath/functions/lang/index.html @@ -8,36 +8,28 @@ translation_of: Web/XPath/Functions/lang --- <p>{{ XsltRef() }}</p> -<p><code>lang</code> 関数は、コンテキストノードの言語が与えられた言語に一致するかどうかを判定し、真偽値 true または false を返します。</p> +<p><code>lang</code> 関数は、コンテキストノードの言語が渡された言語に一致するかどうかを判定し、真偽値 true または false を返します。</p> -<p>{{ 英語版章題("Syntax") }}</p> - -<h3 id=".E6.A7.8B.E6.96.87" name=".E6.A7.8B.E6.96.87">構文</h3> +<h3 id="Syntax">構文</h3> <pre class="eval">lang(<em>string</em> ) </pre> -<p>{{ 英語版章題("Arguments") }}</p> - -<h3 id=".E5.BC.95.E6.95.B0" name=".E5.BC.95.E6.95.B0">引数</h3> +<h3 id="Arguments">引数</h3> <dl> <dt><code><em>string</em></code></dt> <dd>マッチさせる言語コードまたはローカライゼーション (言語と国) コード。</dd> </dl> -<p>{{ 英語版章題("Returns") }}</p> - -<h3 id=".E6.88.BB.E3.82.8A.E5.80.A4" name=".E6.88.BB.E3.82.8A.E5.80.A4">戻り値</h3> +<h3 id="Returns">返値</h3> <p>コンテキストノードが与えられた言語に一致すれば <code>true</code>。そうでなければ <code>false</code>。</p> -<p>{{ 英語版章題("Notes") }}</p> - -<h3 id=".E6.B3.A8.E8.A8.98" name=".E6.B3.A8.E8.A8.98">注記</h3> +<h3 id="Notes">注</h3> <ul> - <li>ノードの言語はそのノードの <code>xml:lang</code> 属性で決定されます。 現在のノードが <code>xml:lang</code> 属性を持たなければ、 <code>xml:lang</code> 属性を持つ直近の祖先の <code>xml:lang</code> 属性の値が現在のノードの言語を決定します。言語を判定することができなければ (どの祖先も <code>xml:lang</code> 属性を持たなければ) 、この関数は false を返します。</li> + <li>ノードの言語はそのノードの <code>xml:lang</code> 属性で決定されます。 現在のノードが <code>xml:lang</code> 属性を持たなければ、 <code>xml:lang</code> 属性を持つ直近の祖先の <code>xml:lang</code> 属性の値が現在のノードの言語を決定します。言語を判定することができなければ (どの祖先も <code>xml:lang</code> 属性を持たなければ)、この関数は false を返します。</li> </ul> <ul> @@ -48,7 +40,7 @@ translation_of: Web/XPath/Functions/lang <pre><p xml:lang="en">I went up a floor.</p> <p xml:lang="en-GB">I took the lift.</p> -<p xsl:lang="en-US">I rode the elevator.</p></pre> +<p xml:lang="en-US">I rode the elevator.</p></pre> <p>このような XSL テンプレートの一部があったとすると、</p> @@ -66,16 +58,10 @@ translation_of: Web/XPath/Functions/lang 0 </pre> -<p>{{ 英語版章題("Defined") }}</p> - -<h3 id=".E5.AE.9A.E7.BE.A9" name=".E5.AE.9A.E7.BE.A9">定義</h3> - -<p><a class="external" href="http://www.w3.org/TR/xpath#function-lang">XPath 1.0 4.3</a></p> - -<p>{{ 英語版章題("Gecko support") }}</p> +<h3 id="Defined">定義</h3> -<h3 id="Gecko_.E3.81.A7.E3.81.AE.E3.82.B5.E3.83.9D.E3.83.BC.E3.83.88" name="Gecko_.E3.81.A7.E3.81.AE.E3.82.B5.E3.83.9D.E3.83.BC.E3.83.88">Gecko でのサポート</h3> +<p><a href="https://www.w3.org/TR/xpath#function-lang">XPath 1.0 4.3</a></p> -<p>サポート済み。</p> +<h3 id="Gecko_support">Gecko での対応</h3> -<div class="noinclude">{{ languages( { "en": "en/XPath/Functions/lang", "fr": "fr/XPath/Fonctions/lang", "pl": "pl/XPath/Funkcje/lang" } ) }}</div> +<p>対応済み。</p> |
