aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/xpath/functions/boolean/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/xpath/functions/boolean/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/xpath/functions/boolean/index.html')
-rw-r--r--files/ja/web/xpath/functions/boolean/index.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/files/ja/web/xpath/functions/boolean/index.html b/files/ja/web/xpath/functions/boolean/index.html
new file mode 100644
index 0000000000..d61b689237
--- /dev/null
+++ b/files/ja/web/xpath/functions/boolean/index.html
@@ -0,0 +1,43 @@
+---
+title: boolean
+slug: Web/XPath/Functions/boolean
+tags:
+ - XSLT
+ - XSLT_Reference
+translation_of: Web/XPath/Functions/boolean
+---
+<div>{{ XsltRef() }}</div>
+
+<p><code>boolean</code> 関数は式を評価し、 true または false を返します。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">boolean( <var>expression</var> )</pre>
+
+<h2 id="Arguments" name="Arguments">引数</h2>
+
+<dl>
+ <dt><code><var>expression</var></code></dt>
+ <dd>評価される式です。式は真偽値のほか、数値やノード集合を参照することができます。</dd>
+</dl>
+
+<h2 id="Returns" name="Returns">返値</h2>
+
+<p><code><var>expression</var></code> を評価した結果から得られる真偽値 <code>true</code> または <code>false</code>。</p>
+
+<h2 id="Notes" name="Notes">メモ</h2>
+
+<ul>
+ <li>数値は、正のゼロ、負のゼロ、 <code>NaN</code> の場合は false と評価されます。それ以外の場合は true と評価されます。</li>
+ <li>ノード集合は、空集合でなければ true と評価されます。</li>
+ <li>文字列は、空文字列ならば false と評価されます。そうでなければ true と評価されます。</li>
+ <li>4 つの基本型以外の型のオブジェクトは、その型に応じた方法で真偽値に変換されます。</li>
+</ul>
+
+<h2 id="Defined" name="Defined">定義</h2>
+
+<p><a class="external" href="http://www.w3.org/TR/xpath#function-boolean">XPath 1.0 4.3</a></p>
+
+<h2 id="Gecko_support" name="Gecko_support">Gecko の対応</h2>
+
+<p>対応済み。</p>