From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/xpath/functions/position/index.html | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 files/ja/web/xpath/functions/position/index.html (limited to 'files/ja/web/xpath/functions/position/index.html') diff --git a/files/ja/web/xpath/functions/position/index.html b/files/ja/web/xpath/functions/position/index.html new file mode 100644 index 0000000000..80d3c2ed60 --- /dev/null +++ b/files/ja/web/xpath/functions/position/index.html @@ -0,0 +1,62 @@ +--- +title: position +slug: Web/XPath/Functions/position +tags: + - XSLT + - XSLT_Reference +translation_of: Web/XPath/Functions/position +--- +

{{ XsltRef() }}

+ +

position 関数は、式評価コンテキストのコンテキスト位置に等しい数値を返します。

+ +

{{ 英語版章題("Syntax") }}

+ +

構文

+ +
position()
+
+ +

{{ 英語版章題("Returns") }}

+ +

戻り値

+ +

式評価コンテキストのコンテキスト位置に等しい整数。

+ +

{{ 英語版章題("Notes") }}

+ +

注記

+ + + + + +
<xsl:template match="//a[position() = 5]">
+ <!-- このテンプレートは文書内のあらゆる位置にある
+         5 番目の a 要素にマッチする -->
+</xsl:template>
+
+ +
<xsl:template match="//div[@class='foo']/bar[position() = 1]">
+ <!-- このテンプレートは class 属性が "foo" に等しい div 要素の子である
+      1 番目の bar 要素にマッチする -->
+</xsl:template>
+
+ +

{{ 英語版章題("Defined") }}

+ +

定義

+ +

XPath 1.0 4.1

+ +

{{ 英語版章題("Gecko support") }}

+ +

Gecko でのサポート

+ +

サポート済み。

+ +
{{ languages( { "en": "en/XPath/Functions/position", "fr": "fr/XPath/Fonctions/position", "pl": "pl/XPath/Funkcje/position" } ) }}
-- cgit v1.2.3-54-g00ecf