aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/xpath/functions/name/index.html
blob: 426f40f2dd0e7f71f492c38920de0944568a20e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
title: name
slug: Web/XPath/Functions/name
tags:
  - XSLT
  - XSLT_Reference
translation_of: Web/XPath/Functions/name
---
<p>{{ XsltRef() }}</p>

<p><code>name</code> 関数は、与えられたノード集合内の最初のノードの QName を表す文字列を返します。</p>

<h3 id="Syntax">構文</h3>

<pre class="eval">name( [<em>node-set</em>] )
</pre>

<h3 id="Arguments">引数</h3>

<dl>
 <dt><code><em>node-set</em></code> (省略可)</dt>
 <dd>このノード集合内の最初のノードの QName が返されます。引数を省略すると、現在のコンテキストノードが使用されます。</dd>
</dl>

<h3 id="Returns">返値</h3>

<p>ノードの QName を表す文字列。</p>

<h3 id="Notes"></h3>

<ul>
 <li><a class="external" href="http://www.w3.org/TR/REC-xml-names/#NT-QName">QName</a> はノードの修飾名であり、名前空間接頭辞とローカル名が含まれます。</li>
</ul>

<h3 id="Defined">定義</h3>

<p><a href="https://www.w3.org/TR/xpath#function-local-name">XPath 1.0 4.1</a></p>

<h3 id="Gecko_support">Gecko での対応</h3>

<p>対応済み。</p>