From da78a9e329e272dedb2400b79a3bdeebff387d47 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:17 -0500 Subject: initial commit --- files/ko/web/xpath/functions/boolean/index.html | 39 +++++++++ files/ko/web/xpath/functions/ceiling/index.html | 41 ++++++++++ files/ko/web/xpath/functions/concat/index.html | 29 +++++++ files/ko/web/xpath/functions/contains/index.html | 47 +++++++++++ files/ko/web/xpath/functions/count/index.html | 29 +++++++ files/ko/web/xpath/functions/current/index.html | 61 ++++++++++++++ files/ko/web/xpath/functions/document/index.html | 61 ++++++++++++++ .../xpath/functions/element-available/index.html | 29 +++++++ files/ko/web/xpath/functions/false/index.html | 25 ++++++ files/ko/web/xpath/functions/floor/index.html | 32 ++++++++ .../web/xpath/functions/format-number/index.html | 49 ++++++++++++ .../xpath/functions/function-available/index.html | 29 +++++++ .../ko/web/xpath/functions/generate-id/index.html | 37 +++++++++ files/ko/web/xpath/functions/id/index.html | 46 +++++++++++ files/ko/web/xpath/functions/index.html | 74 +++++++++++++++++ files/ko/web/xpath/functions/key/index.html | 43 ++++++++++ files/ko/web/xpath/functions/lang/index.html | 55 +++++++++++++ files/ko/web/xpath/functions/last/index.html | 23 ++++++ files/ko/web/xpath/functions/local-name/index.html | 33 ++++++++ files/ko/web/xpath/functions/name/index.html | 33 ++++++++ .../web/xpath/functions/namespace-uri/index.html | 36 +++++++++ .../web/xpath/functions/normalize-space/index.html | 29 +++++++ files/ko/web/xpath/functions/not/index.html | 33 ++++++++ files/ko/web/xpath/functions/number/index.html | 35 ++++++++ files/ko/web/xpath/functions/position/index.html | 34 ++++++++ files/ko/web/xpath/functions/round/index.html | 35 ++++++++ .../ko/web/xpath/functions/starts-with/index.html | 42 ++++++++++ .../web/xpath/functions/string-length/index.html | 28 +++++++ files/ko/web/xpath/functions/string/index.html | 42 ++++++++++ .../web/xpath/functions/substring-after/index.html | 49 ++++++++++++ .../xpath/functions/substring-before/index.html | 49 ++++++++++++ files/ko/web/xpath/functions/substring/index.html | 55 +++++++++++++ files/ko/web/xpath/functions/sum/index.html | 39 +++++++++ .../web/xpath/functions/system-property/index.html | 34 ++++++++ files/ko/web/xpath/functions/translate/index.html | 92 ++++++++++++++++++++++ files/ko/web/xpath/functions/true/index.html | 19 +++++ .../xpath/functions/unparsed-entity-url/index.html | 21 +++++ 37 files changed, 1487 insertions(+) create mode 100644 files/ko/web/xpath/functions/boolean/index.html create mode 100644 files/ko/web/xpath/functions/ceiling/index.html create mode 100644 files/ko/web/xpath/functions/concat/index.html create mode 100644 files/ko/web/xpath/functions/contains/index.html create mode 100644 files/ko/web/xpath/functions/count/index.html create mode 100644 files/ko/web/xpath/functions/current/index.html create mode 100644 files/ko/web/xpath/functions/document/index.html create mode 100644 files/ko/web/xpath/functions/element-available/index.html create mode 100644 files/ko/web/xpath/functions/false/index.html create mode 100644 files/ko/web/xpath/functions/floor/index.html create mode 100644 files/ko/web/xpath/functions/format-number/index.html create mode 100644 files/ko/web/xpath/functions/function-available/index.html create mode 100644 files/ko/web/xpath/functions/generate-id/index.html create mode 100644 files/ko/web/xpath/functions/id/index.html create mode 100644 files/ko/web/xpath/functions/index.html create mode 100644 files/ko/web/xpath/functions/key/index.html create mode 100644 files/ko/web/xpath/functions/lang/index.html create mode 100644 files/ko/web/xpath/functions/last/index.html create mode 100644 files/ko/web/xpath/functions/local-name/index.html create mode 100644 files/ko/web/xpath/functions/name/index.html create mode 100644 files/ko/web/xpath/functions/namespace-uri/index.html create mode 100644 files/ko/web/xpath/functions/normalize-space/index.html create mode 100644 files/ko/web/xpath/functions/not/index.html create mode 100644 files/ko/web/xpath/functions/number/index.html create mode 100644 files/ko/web/xpath/functions/position/index.html create mode 100644 files/ko/web/xpath/functions/round/index.html create mode 100644 files/ko/web/xpath/functions/starts-with/index.html create mode 100644 files/ko/web/xpath/functions/string-length/index.html create mode 100644 files/ko/web/xpath/functions/string/index.html create mode 100644 files/ko/web/xpath/functions/substring-after/index.html create mode 100644 files/ko/web/xpath/functions/substring-before/index.html create mode 100644 files/ko/web/xpath/functions/substring/index.html create mode 100644 files/ko/web/xpath/functions/sum/index.html create mode 100644 files/ko/web/xpath/functions/system-property/index.html create mode 100644 files/ko/web/xpath/functions/translate/index.html create mode 100644 files/ko/web/xpath/functions/true/index.html create mode 100644 files/ko/web/xpath/functions/unparsed-entity-url/index.html (limited to 'files/ko/web/xpath/functions') diff --git a/files/ko/web/xpath/functions/boolean/index.html b/files/ko/web/xpath/functions/boolean/index.html new file mode 100644 index 0000000000..2259c3e313 --- /dev/null +++ b/files/ko/web/xpath/functions/boolean/index.html @@ -0,0 +1,39 @@ +--- +title: boolean +slug: Web/XPath/Functions/boolean +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/boolean +--- +

{{ XsltRef() }}

+

 

+

boolean 함수는 식을 평가하고 참이나 거짓을 반환합니다.

+

문법

+
boolean(expression )
+
+

인수

+
+
+ + + expression +
+
+ 평가하는 식. 식은 부울 뿐만 아니라 수와 노드 집합도 참조할 수 있습니다.
+
+

반환

+

+ + expression + 을 평가한 뒤 부울값 truefalse.

+

주의

+ +

정의

+

XPath 1.0 4.3

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/ceiling/index.html b/files/ko/web/xpath/functions/ceiling/index.html new file mode 100644 index 0000000000..cd671738fa --- /dev/null +++ b/files/ko/web/xpath/functions/ceiling/index.html @@ -0,0 +1,41 @@ +--- +title: ceiling +slug: Web/XPath/Functions/ceiling +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/ceiling +--- +

{{ XsltRef() }}

+


+ ceiling 함수는 10진수를 평가하고 10진수보다 작지 않은 가장 작은 정수를 반환합니다.

+

문법

+
ceiling(number )
+
+

인수

+
+
+ + + number +
+
+ 평가할 수.
+
+

반환

+

+ + number + 보다 작지 않은 가장 작은 정수.

+

예를 들어,

+

    ceiling ( + + 5.2 + ) = 6

+

    ceiling ( + + -5.2 + ) = -5

+

정의

+

XPath 1.0 4.4

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/concat/index.html b/files/ko/web/xpath/functions/concat/index.html new file mode 100644 index 0000000000..82162ff93a --- /dev/null +++ b/files/ko/web/xpath/functions/concat/index.html @@ -0,0 +1,29 @@ +--- +title: concat +slug: Web/XPath/Functions/concat +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/concat +--- +

{{ XsltRef() }}

+


+ concat 함수는 둘 또는 둘 이상의 문자열을 연결하고 연결한 문자열을 반환합니다.

+

문법

+
concat(string1 ,string2 [,stringn]* )
+
+

인수

+
+
+ + + stringn +
+
+ 이 함수는 둘 또는 둘 이상의 인수를 받습니다. 각각은 문자열입니다.
+
+

반환

+

함수에 인수로 건넨 모든 문자열을 연결한 단일 문자열.

+

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/contains/index.html b/files/ko/web/xpath/functions/contains/index.html new file mode 100644 index 0000000000..360e5dc39c --- /dev/null +++ b/files/ko/web/xpath/functions/contains/index.html @@ -0,0 +1,47 @@ +--- +title: contains +slug: Web/XPath/Functions/contains +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/contains +--- +

{{ XsltRef() }}

+


+ contains 함수는 첫 번째 인수 문자열이 두 번째 인수 문자열을 포함하는지 결정하고 부울값 true 또는 false를 반환합니다.

+

문법

+
contains(haystack ,needle )
+
+

인수

+
+
+ + + haystack +
+
+ 찾을 문자열
+
+
+
+ + + needle +
+
+ 첫 번째 인수( + + haystack + )에서 찾을 부분 문자열
+
+

반환

+

첫 번째 인수( + + haystack + )가 두 번째 인수( + + needle + )를 포함하면 true. 그렇지 않으면, false.

+

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/count/index.html b/files/ko/web/xpath/functions/count/index.html new file mode 100644 index 0000000000..0bed0a6e26 --- /dev/null +++ b/files/ko/web/xpath/functions/count/index.html @@ -0,0 +1,29 @@ +--- +title: count +slug: Web/XPath/Functions/count +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/count +--- +

{{ XsltRef() }}

+


+ count 함수는 노드 집합의 노드 수를 세고 나서 정수로 반환합니다.

+

문법

+
count(node-set )
+
+

인수

+
+
+ + + node-set +
+
+ 셀 노드 집합.
+
+

반환

+

노드 집합의 노드 수를 나타내는 정수.

+

정의

+

1.0 4.1

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/current/index.html b/files/ko/web/xpath/functions/current/index.html new file mode 100644 index 0000000000..e08a75a379 --- /dev/null +++ b/files/ko/web/xpath/functions/current/index.html @@ -0,0 +1,61 @@ +--- +title: current +slug: Web/XPath/Functions/current +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/current +--- +

{{ XsltRef() }}

+ +

current 함수는 XSLT 명령에서 문맥 노드를 얻는 데 쓸 수 있습니다.

+ +

문법

+ +
current()
+
+ +

반환

+ +

오직 현재 노드만을 포함하는 노드 집합.

+ +

주의

+ +

이 함수는 XPath에 더한 XSLT 고유 추가분입니다. 기본 XPath 함수 라이브러리의 일부가 아닙니다.

+ +
+

For an outermost expression (an expression not occurring within another expression), the current node is always the same as the context node (which will be returned by the . or self syntax). The following two are symantically equivalent.

+ +
<xsl:value-of select="current()"/>
+ +
<xsl:value-of select="."/>
+ +

In an inner expression (e.g. in square brackets), the current node is still the same as it would have been in an outermost expression. Thus within all of the following three expressions the current function (not the entire expressions) returns the same node. Moreover, the latter two are semantically equivalent.

+ +
<xsl:value-of select="current()"/>
+ +
<xsl:value-of select="foo/bar[current() = X]"/>
+ +
<xsl:variable name="current" select="current()"/>
+<xsl:value-of select="foo/bar[$current = X]"/>
+ +

And the next code is also semantically equivalent to the latter two, since the . occurs in an outermost expression.

+ +
<xsl:variable name="current" select="."/>
+<xsl:value-of select="foo/bar[$current = X]"/>
+ +

But the . always relate to the narrowest context. Thus in

+ +
<xsl:value-of select="foo/bar[. = X]"/>
+ +

the . returns the bar node, which may be different from the current node.

+
+ +

 

+ +

정의

+ +

XSLT 1.0 12.4

+ +

Gecko 지원

+ +

지원함.

diff --git a/files/ko/web/xpath/functions/document/index.html b/files/ko/web/xpath/functions/document/index.html new file mode 100644 index 0000000000..934af02195 --- /dev/null +++ b/files/ko/web/xpath/functions/document/index.html @@ -0,0 +1,61 @@ +--- +title: document +slug: Web/XPath/Functions/document +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/document +--- +

{{ XsltRef() }}

+


+ document 함수는 하나 또는 여러 외부 문서에서 노드 집합을 찾고 결과 노드 집합을 반환합니다.

+

문법

+
document(URI [,node-set] )
+
+

인수

+
+
+ + + URI +
+
+ 검색하는 문서의 절대 또는 상대 URI. URI는 또한 조각 인식자(fragment identifier)를 포함할지도 모릅니다.
+
+
+
+ + + node-set + (선택사항)
+
+ 반환하게 될 외부 문서의 노드 집합을 가리키는 식.
+
+

반환

+

노드 집합.

+

주의

+ + + + +

이 함수는 XPath에 더한 XSLT 고유 추가분입니다. 기본 XPath 함수 라이브러리의 일부가 아닙니다.

+

정의

+

XSLT 1.0 12.1

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/element-available/index.html b/files/ko/web/xpath/functions/element-available/index.html new file mode 100644 index 0000000000..bb236437e0 --- /dev/null +++ b/files/ko/web/xpath/functions/element-available/index.html @@ -0,0 +1,29 @@ +--- +title: element-available +slug: Web/XPath/Functions/element-available +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/element-available +--- +

{{ XsltRef() }}

+


+ element-available 함수는 요소가 이용 가능한 지를 결정하고 true나 false를 반환합니다.

+

구문

+
element-available(QName )
+
+

인수

+
+
+ + + QName +
+
+ 유효한 QName으로 평가해야 합니다. QName은 식 범위(scope)에서 이름공간 선언을 써서 확장 이름으로 확장됩니다.
+
+

반환

+

만약 확장 이름이 명령 이름이면 true를 반환합니다. 만약 확장 이름에 XSLT 이름공간 URI와 같은 이름공간 URI이 있으면, XSLT로 정의된 요소를 참조합니다. 그렇지 않으면, extension 요소를 참조합니다. 만약 확장 이름에 null 이름공간 URI가 있으면, element-available 함수는 false를 반환합니다.

+

정의

+

XSLT 1.0 15

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/false/index.html b/files/ko/web/xpath/functions/false/index.html new file mode 100644 index 0000000000..a29953f4c3 --- /dev/null +++ b/files/ko/web/xpath/functions/false/index.html @@ -0,0 +1,25 @@ +--- +title: 'false' +slug: Web/XPath/Functions/false +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/false +--- +

{{ XsltRef() }}

+


+ false 함수는 boolean false를 반환합니다.

+

구문

+
false()
+
+

반환

+

Boolean false.

+

주의

+

이 함수는 비교(comparison)하는 부분에 쓸모가 있습니다.

+
<xsl:if test="boolean((1 &gt; 2) = false())">
+ The expression evaluates as true
+</xsl:if>
+
+

정의

+

XPath 1.0 4.3

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/floor/index.html b/files/ko/web/xpath/functions/floor/index.html new file mode 100644 index 0000000000..ead261d1ec --- /dev/null +++ b/files/ko/web/xpath/functions/floor/index.html @@ -0,0 +1,32 @@ +--- +title: floor +slug: Web/XPath/Functions/floor +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/floor +--- +

{{ XsltRef() }}

+


+ floor 함수는 10진수를 평가하고 10진수보다 크지 않는(작거나 같은) 가장 큰 정수를 반환합니다.

+

구문

+
floor(number )
+
+

인수

+
+
+ + + number +
+
+ 평가할 10진수.
+
+

반환

+

+ + number + 보다 크지 않는 가장 큰 정수.

+

정의

+

XPath 1.0 4.4

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/format-number/index.html b/files/ko/web/xpath/functions/format-number/index.html new file mode 100644 index 0000000000..38b5df5e1c --- /dev/null +++ b/files/ko/web/xpath/functions/format-number/index.html @@ -0,0 +1,49 @@ +--- +title: format-number +slug: Web/XPath/Functions/format-number +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/format-number +--- +

{{ XsltRef() }}

+


+ format-number 함수는 수를 평가하고 제공한 형식으로 그 수를 나타내는 문자열을 반환합니다.

+

문법

+
format-number(number ,pattern [,decimal-format] )
+
+

인수

+
+
+ + + number +
+
+ 형식을 지정할 수
+
+
+
+ + + pattern +
+
+ JDK 1.1 Decimal Format 클래스 형식의 문자열.
+
+
+
+ + + decimal-format + (선택사항)
+
+ 쓸 수 형식을 정의하는 xsl:decimal-format 요소의 이름. 빼면, 기본 decimal-format을 씁니다.
+
+

반환

+

새 형식으로 수를 나타내는 문자열.

+

주의

+

이 함수는 XPath에 더한 XSLT 고유 추가분입니다. 기본 XPath 함수 라이브러리의 일부가 아닙니다.

+

정의

+

XSLT 1.0 12.3

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/function-available/index.html b/files/ko/web/xpath/functions/function-available/index.html new file mode 100644 index 0000000000..421c97554a --- /dev/null +++ b/files/ko/web/xpath/functions/function-available/index.html @@ -0,0 +1,29 @@ +--- +title: function-available +slug: Web/XPath/Functions/function-available +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/function-available +--- +

{{ XsltRef() }}

+


+ function-available 함수는 인수로 준 함수가 이용 가능한 지를 결정하고 boolean true나 false를 반환합니다.

+

구문

+
function-available(name )
+
+

인수

+
+
+ + + name +
+
+ 검사할 함수 이름.
+
+

반환

+

Boolean truefalse.

+

정의

+

XPath 1.0 15

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/generate-id/index.html b/files/ko/web/xpath/functions/generate-id/index.html new file mode 100644 index 0000000000..f491f03c78 --- /dev/null +++ b/files/ko/web/xpath/functions/generate-id/index.html @@ -0,0 +1,37 @@ +--- +title: generate-id +slug: Web/XPath/Functions/generate-id +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/generate-id +--- +

{{ XsltRef() }}

+


+ generate-id 함수는 제공한 노드 집합의 첫 노드를 위한 유일한 id를 만들고 그 id를 포함하는 문자열을 반환합니다.

+

문법

+
generate-id( [node-set] )
+
+

인수

+
+
+ + + node-set + (선택사항)
+
+ id는 이 노드 집합의 첫 노드를 위해 만듭니다. 빼면, 현재 문맥 노드를 씁니다.
+
+

반환

+

만든 id를 포함하는 문자열.

+

주의

+ + +

이 함수는 XPath에 더한 XSLT 고유 추가분입니다. 기본 XPath 함수 라이브러리의 일부가 아닙니다.

+

정의

+

XSLT 1.0 12.4

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/id/index.html b/files/ko/web/xpath/functions/id/index.html new file mode 100644 index 0000000000..a5ab5ecab7 --- /dev/null +++ b/files/ko/web/xpath/functions/id/index.html @@ -0,0 +1,46 @@ +--- +title: id +slug: Web/XPath/Functions/id +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/id +--- +

{{ XsltRef() }}

+


+ id 함수는 인수로 준 id와 일치하는 노드를 찾아 그 식별된 노드를 포함하는 노드 집합을 반환합니다.

+

구문

+
id(expression )
+
+

인수

+
+
+ + + expression +
+
+ 만약 + + expression + 이 노드 집합이면, 노드 집합 안 각 노드의 문자열 값은 개별 id로 다룹니다. 반환하는 노드 집합은 그 id와 대응하는 노드입니다.
+
+
+
+ 만약 + + expression + 이 문자열이나, 노드 집합이 아닌 어떤 거라면, + + expression + 은 공백으로 구분된 id 목록으로 다룹니다. 반환하는 노드 집합은 그 id와 대응하는 노드입니다.
+
+

반환

+

그 노드를 포함하는 노드 집합이나 인수로 준 id로 식별된 노드.

+

주의

+ +

정의

+

XPath 1.0 4.1

+

Gecko 지원

+

부분 지원함.

diff --git a/files/ko/web/xpath/functions/index.html b/files/ko/web/xpath/functions/index.html new file mode 100644 index 0000000000..ca47e6de8b --- /dev/null +++ b/files/ko/web/xpath/functions/index.html @@ -0,0 +1,74 @@ +--- +title: Functions +slug: Web/XPath/Functions +tags: + - XPath + - XPath_Reference + - XSLT_Reference +translation_of: Web/XPath/Functions +--- +

{{ XsltRef() }} 다음은 설명, 문법, 인수 목록, 결과형, 해당 W3C 권고안 소스, 현 Gecko 지원 정도를 포함하는 기본 XPath 함수와 XPath에 더해진 XSLT 고유의 추가분에 주석을 단 목록입니다. XPath/XSLT 함수 사용에 관한 추가 정보는, For Further Reading 페이지를 봐 주세요.

+ diff --git a/files/ko/web/xpath/functions/key/index.html b/files/ko/web/xpath/functions/key/index.html new file mode 100644 index 0000000000..6441db02de --- /dev/null +++ b/files/ko/web/xpath/functions/key/index.html @@ -0,0 +1,43 @@ +--- +title: key +slug: Web/XPath/Functions/key +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/key +--- +

{{ XsltRef() }}

+


+ key 함수는 인수로 준 키와 값을 갖는 노드 집합을 반환합니다.

+

문법

+
key(keyname ,value )
+
+

인수

+
+
+ + + keyname +
+
+ 사용할 xsl:key 요소의 이름을 포함하는 문자열
+
+
+
+ + + value +
+
+ 반환되는 노드 집합은 제공한 키와 이 값을 갖는 각 노드를 포함합니다.
+
+

반환

+

노드 집합.

+

주의

+ +

이 함수는 XPath에 더한 XSLT 고유 추가분입니다. 기본 XPath 함수 라이브러리의 일부가 아닙니다.

+

정의

+

XSLT 1.0 12.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/lang/index.html b/files/ko/web/xpath/functions/lang/index.html new file mode 100644 index 0000000000..cc4c9c13b6 --- /dev/null +++ b/files/ko/web/xpath/functions/lang/index.html @@ -0,0 +1,55 @@ +--- +title: lang +slug: Web/XPath/Functions/lang +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/lang +--- +

{{ XsltRef() }}

+


+ lang 함수는 문맥 노드가 인수로 준 언어와 일치하는 지를 결정하고 true나 false를 반환합니다.

+

구문

+
lang(string )
+
+

인수

+
+
+ + + string +
+
+ 일치 여부에 사용하는 언어 코드나 지역화 (언어와 나라) 코드.
+
+

반환

+

문맥 노드가 인수로 준 언어와 일치하면 true. 그렇지 않으면, false.

+

주의

+ + +

이 XML 코드 조각을 주고

+
<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>
+

XSL 템플릿이 이렇다면

+
<xsl:value-of select="count(//p[lang('en')])" />
+<xsl:value-of select="count(//p[lang('en-GB')])" />
+<xsl:value-of select="count(//p[lang('en-US')])" />
+<xsl:value-of select="count(//p[lang('de')])" />
+
+

출력은 다음과 같을 지도 모릅니다.

+
3
+1
+1
+0
+
+

정의

+

XPath 1.0 4.3

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/last/index.html b/files/ko/web/xpath/functions/last/index.html new file mode 100644 index 0000000000..57cfd73c74 --- /dev/null +++ b/files/ko/web/xpath/functions/last/index.html @@ -0,0 +1,23 @@ +--- +title: last +slug: Web/XPath/Functions/last +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/last +--- +

{{ XsltRef() }}

+


+ last 함수는 식 평가 문맥(expression evaluation context)과 크기가 같은 숫자를 반환합니다.

+

구문

+
last()
+
+

반환

+

식 평가 문맥과 크기가 같은 정수.

+

주의

+ +

정의

+

XPath 1.0 4.1

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/local-name/index.html b/files/ko/web/xpath/functions/local-name/index.html new file mode 100644 index 0000000000..da77a5ea88 --- /dev/null +++ b/files/ko/web/xpath/functions/local-name/index.html @@ -0,0 +1,33 @@ +--- +title: local-name +slug: Web/XPath/Functions/local-name +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/local-name +--- +

{{ XsltRef() }}

+


+ local-name 함수는 인수로 준 노드 집합 안 첫 노드의 지역 이름을 나타내는 문자열을 반환합니다.

+

구문

+
local-name( [node-set] )
+
+

인수

+
+
+ + + node-set + (선택사항)
+
+ 이 노드 집합 안 첫 노드의 지역 이름이 반환됩니다. 이 인수를 빼면, 현재 문맥 노드를 씁니다.
+
+

반환

+

문자열.

+

주의

+ +

정의

+

XPath 1.0 4.1

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/name/index.html b/files/ko/web/xpath/functions/name/index.html new file mode 100644 index 0000000000..b9f526a0f1 --- /dev/null +++ b/files/ko/web/xpath/functions/name/index.html @@ -0,0 +1,33 @@ +--- +title: name +slug: Web/XPath/Functions/name +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/name +--- +

{{ XsltRef() }}

+


+ name 함수는 인수로 준 노드 집합 안 첫 노드의 QName을 나타내는 문자열을 반환합니다.

+

구문

+
name( [node-set] )
+
+

인수

+
+
+ + + node-set + (선택사항)
+
+ 이 노드 집합 안 첫 노드의 QName이 반환됩니다. 이 인수를 빼면, 현재 문맥 노드를 씁니다.
+
+

반환

+

노드의 QName을 나타내는 문자열

+

주의

+ +

정의

+

XPath 1.0 4.1

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/namespace-uri/index.html b/files/ko/web/xpath/functions/namespace-uri/index.html new file mode 100644 index 0000000000..1e73667e3a --- /dev/null +++ b/files/ko/web/xpath/functions/namespace-uri/index.html @@ -0,0 +1,36 @@ +--- +title: namespace-uri +slug: Web/XPath/Functions/namespace-uri +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/namespace-uri +--- +

{{ XsltRef() }}

+


+ namespace-uri 함수는 인수로 준 노드 집합 안 첫 노드의 이름공간 URI를 나타내는 문자열을 반환합니다.

+

구문

+
namespace-uri( [node-set] )
+
+

인수

+
+
+ + + node-set + (선택사항)
+
+ 이 노드 집합 안 첫 노드의 이름공간 URI가 반환됩니다. 이 인수를 빼면, 현재 문맥 노드를 씁니다.
+
+

반환

+

제공한 노드가 있는 이름공간 URI를 나타내는 문자열.

+

주의

+ + +

정의

+

XPath 1.0 4.1

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/normalize-space/index.html b/files/ko/web/xpath/functions/normalize-space/index.html new file mode 100644 index 0000000000..5bf0eec9d2 --- /dev/null +++ b/files/ko/web/xpath/functions/normalize-space/index.html @@ -0,0 +1,29 @@ +--- +title: normalize-space +slug: Web/XPath/Functions/normalize-space +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/normalize-space +--- +

{{ XsltRef() }}

+


+ normalize-space 함수는 문자열에서 앞뒤 공백을 빼고(strip) 결과 문자열을 반환합니다.

+

구문

+
normalize-space(string )
+
+

인수

+
+
+ + + string +
+
+ nomalize되는 문자열
+
+

반환

+

nomalize된 문자열.

+

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/not/index.html b/files/ko/web/xpath/functions/not/index.html new file mode 100644 index 0000000000..f99f0d46c1 --- /dev/null +++ b/files/ko/web/xpath/functions/not/index.html @@ -0,0 +1,33 @@ +--- +title: not +slug: Web/XPath/Functions/not +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/not +--- +

{{ XsltRef() }}

+


+ not 함수는 불린식을 평가하고 반대값을 반환합니다.

+

구문

+
not(expression )
+
+

인수

+
+
+ + + expression + (선택사항)
+
+ 식은 마치 boolean() 함수에 인수로 넘겨진 것처럼 정확히 평가됩니다.
+
+

반환

+

false로 평가한 식은 true; true로 평가한 식은 false.

+

주의

+ +

정의

+

XPath 1.0 4.3

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/number/index.html b/files/ko/web/xpath/functions/number/index.html new file mode 100644 index 0000000000..73e9e10d35 --- /dev/null +++ b/files/ko/web/xpath/functions/number/index.html @@ -0,0 +1,35 @@ +--- +title: number +slug: Web/XPath/Functions/number +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/number +--- +

{{ XsltRef() }}

+


+ number 함수는 개체를 숫자로 변환하고 그 숫자를 반환합니다.

+

구문

+
number( [object] )
+
+

인수

+
+
+ + object + (optional)
+
+ 숫자로 변환할 개체.
+
+

반환

+

개체를 변환한 뒤 결과 숫자.

+

주의

+ +

정의

+

XPath 1.0 4.4

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/position/index.html b/files/ko/web/xpath/functions/position/index.html new file mode 100644 index 0000000000..3804cd8dfc --- /dev/null +++ b/files/ko/web/xpath/functions/position/index.html @@ -0,0 +1,34 @@ +--- +title: position +slug: Web/XPath/Functions/position +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/position +--- +

{{ XsltRef() }}

+


+ position 함수는 식 평가 문맥(expression evaluation context)와 위치가 같은 숫자를 반환합니다.

+

구문

+
position()
+
+

반환

+

식 평가 문맥과 위치가 같은 정수.

+

주의

+ + +
<xsl:template match="//a[position() = 5">
+ <!-- 이 템플릿은 문서 안 다섯 번째 a 요소와 일치합니다. -->
+</xsl:template>
+
+
<xsl:template match="//div[@class='foo']/bar[position() = 1]">
+ <!-- 이 템플릿은 class 속성이 "foo"이고 div 요소의 자식인 첫 번째 bar 요소와 일치합니다 -->
+</xsl:template>
+
+

정의

+

XPath 1.0 4.1

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/round/index.html b/files/ko/web/xpath/functions/round/index.html new file mode 100644 index 0000000000..9bf8259881 --- /dev/null +++ b/files/ko/web/xpath/functions/round/index.html @@ -0,0 +1,35 @@ +--- +title: round +slug: Web/XPath/Functions/round +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/round +--- +

{{ XsltRef() }}

+


+ round 함수는 인수로 준 수에 가장 가까운 정수를 반환합니다.

+

구문

+
round(decimal )
+
+

인수

+
+
+ + decimal +
+
+ 정수 처리(round)될 10진수.
+
+

반환

+

인수 + + decimal + 보다 작거나 크거나 같은 가장 가까운 정수.

+

주의

+ +

정의

+

XPath 1.0 4.4

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/starts-with/index.html b/files/ko/web/xpath/functions/starts-with/index.html new file mode 100644 index 0000000000..ae553da10a --- /dev/null +++ b/files/ko/web/xpath/functions/starts-with/index.html @@ -0,0 +1,42 @@ +--- +title: starts-with +slug: Web/XPath/Functions/starts-with +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/starts-with +--- +

{{ XsltRef() }}

+


+ starts-with 함수는 첫 번째 문자열이 두 번째 문자열로 시작하는 지를 확인한 뒤 true나 false를 반환합니다.

+

구문

+
starts-with(haystack ,needle)
+
+

인수

+
+
+ + haystack +
+
+ 들여다볼(look in) 문자열.
+
+
+
+ + needle +
+
+ 찾을(look for) 문자열.
+
+

반환

+

만약 + + haystack + 이 + + needle + 로 시작하면 true. 그렇지 않으면, false.

+

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/string-length/index.html b/files/ko/web/xpath/functions/string-length/index.html new file mode 100644 index 0000000000..e62774f000 --- /dev/null +++ b/files/ko/web/xpath/functions/string-length/index.html @@ -0,0 +1,28 @@ +--- +title: string-length +slug: Web/XPath/Functions/string-length +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/string-length +--- +

{{ XsltRef() }}

+


+ string-length 함수는 인수로 준 문자열의 문자수를 반환합니다.

+

구문

+
string-length( [string] )
+
+

인수

+
+
+ + string + (선택사항)
+
+ 평가할 문자열. 빼면, 쓰는 문자열은 문자열로 변환된 문맥 노드와 같습니다.
+
+

반환

+

문자열의 문자수와 같은 정수.

+

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/string/index.html b/files/ko/web/xpath/functions/string/index.html new file mode 100644 index 0000000000..25c9879bdd --- /dev/null +++ b/files/ko/web/xpath/functions/string/index.html @@ -0,0 +1,42 @@ +--- +title: string +slug: Web/XPath/Functions/string +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/string +--- +

{{ XsltRef() }}

+


+ string 함수는 인수를 문자열로 변환합니다.

+

구문

+
string( [object] )
+
+

인수

+
+
+ + object + (선택사항)
+
+ 문자열로 변환할 개체. 빼면, 문맥 노드를 씁니다.
+
+

반환

+

문자열

+

주의

+ +

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/substring-after/index.html b/files/ko/web/xpath/functions/substring-after/index.html new file mode 100644 index 0000000000..513a777014 --- /dev/null +++ b/files/ko/web/xpath/functions/substring-after/index.html @@ -0,0 +1,49 @@ +--- +title: substring-after +slug: Web/XPath/Functions/substring-after +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/substring-after +--- +

{{ XsltRef() }}

+


+ substring-after 함수는 첫 번째 인수에서 두 번째 인수가 나타난 다음의 나머지를 반환합니다.

+

구문

+
substring-after(haystack ,needle )
+
+

인수

+
+
+ + haystack +
+
+ 평가할 문자열. 이 문자열의 부분이 반환됩니다.
+
+
+
+ + needle +
+
+ 찾을 부분 문자열. + + haystack + 에서 + + needle + 의 첫 출현 뒤의 문자열이 반환됩니다.
+
+

반환

+

문자열.

+

주의

+

XSL 예:

+
<xsl:value-of select="substring-after('1999/04/01','/')" />
+
+

출력

+
04/01
+
+

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/substring-before/index.html b/files/ko/web/xpath/functions/substring-before/index.html new file mode 100644 index 0000000000..1336715eee --- /dev/null +++ b/files/ko/web/xpath/functions/substring-before/index.html @@ -0,0 +1,49 @@ +--- +title: substring-before +slug: Web/XPath/Functions/substring-before +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/substring-before +--- +

{{ XsltRef() }}

+


+ substring-before 함수는 첫 번째 인수에서 두 번째 인수가 나타난 앞의 나머지를 반환합니다.

+

구문

+
substring-before(haystack ,needle )
+
+

인수

+
+
+ + haystack +
+
+ 평가할 문자열. 이 문자열의 부분이 반환됩니다.
+
+
+
+ + needle +
+
+ 찾을 부분 문자열. + + haystack + 에서 + + needle + 의 첫 출현 앞의 문자열이 반환됩니다.
+
+

반환

+

문자열.

+

주의

+

XSL 예:

+
<xsl:value-of select="substring-before('1999/04/01','/')" />
+
+

출력

+
1999
+
+

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/substring/index.html b/files/ko/web/xpath/functions/substring/index.html new file mode 100644 index 0000000000..74368b58bd --- /dev/null +++ b/files/ko/web/xpath/functions/substring/index.html @@ -0,0 +1,55 @@ +--- +title: substring +slug: Web/XPath/Functions/substring +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/substring +--- +

{{ XsltRef() }}

+


+ substring 함수는 인수로 준 문자열의 부분을 반환합니다.

+

구문

+
substring(string ,start [,length] )
+
+

인수

+
+
+ + string +
+
+ 평가할 문자열.
+
+
+
+ + start +
+
+ 부분 문자열이 시작하는 + + string + 안 위치.
+
+
+
+ + length + (선택사항)
+
+ 부분 문자열의 길이. 빼면, 반환되는 문자열은 + + start + 위치부터 + + string + 의 끝까지 모든 문자를 포함합니다.
+
+

반환

+

문자열.

+

주의

+

다른 XPath 함수와 마찬가지로, 위치는 0에 기반을 두지 않습니다. 문자열의 첫 문자는 위치가 0이 아니라 1입니다.

+

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/sum/index.html b/files/ko/web/xpath/functions/sum/index.html new file mode 100644 index 0000000000..b1b79e8ed4 --- /dev/null +++ b/files/ko/web/xpath/functions/sum/index.html @@ -0,0 +1,39 @@ +--- +title: sum +slug: Web/XPath/Functions/sum +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/sum +--- +

{{ XsltRef() }}

+ +


+ sum 함수는 인수로 준 노드 집합의 각 노드의 숫자값의 합을 반환합니다.

+ +

구문

+ +
sum(node-set )
+
+ +

인수

+ +
+
node-set
+
평가될 노드 집합. 이 노드 집합의 각 노드는 마치 number 함수에 넘겨준 것처럼 평가되고 결과 수의 합이 반환됩니다.
+
+ +

반환

+ +

숫자.

+ +

주의

+ +

(없음)

+ +

정의

+ +

XPath 1.0 4.3

+ +

Gecko 지원

+ +

지원함.

diff --git a/files/ko/web/xpath/functions/system-property/index.html b/files/ko/web/xpath/functions/system-property/index.html new file mode 100644 index 0000000000..fb020c11d7 --- /dev/null +++ b/files/ko/web/xpath/functions/system-property/index.html @@ -0,0 +1,34 @@ +--- +title: system-property +slug: Web/XPath/Functions/system-property +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/system-property +--- +

{{ XsltRef() }}

+


+ system-property 함수는 인수로 준 시스템 속성을 나타내는 개체를 반환합니다.

+

문법

+
system-property(name )
+
+

인수

+
+
+ + name + (선택사항)
+
+ 시스템 속성의 이름. 인수는 QName인 문자열로 평가해야 합니다. QName은 식의 범위에서 이름공간 선언을 써 이름으로 확장합니다. system-property 함수는 이름으로 식별하는 시스템 속성값을 나타내는 개체를 반환합니다. 그러한 시스템 속성이 없으면, 빈 문자열을 반환합니다.
+
+

반환

+

인수 system-property를 나타내는 개체

+

주의

+ +

정의

+

XSLT 1.0 12.4

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/translate/index.html b/files/ko/web/xpath/functions/translate/index.html new file mode 100644 index 0000000000..a2f3d67232 --- /dev/null +++ b/files/ko/web/xpath/functions/translate/index.html @@ -0,0 +1,92 @@ +--- +title: translate +slug: Web/XPath/Functions/translate +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/translate +--- +

{{ XsltRef() }}

+


+ translate 함수는 문자열과 번역할 문자 집합을 평가하고 번역된 문자열을 반환합니다.

+

구문

+
translate(string ,abc ,XYZ )
+
+

인수

+
+
+ + string +
+
+ 평가할 문자열.
+
+
+
+ + abc +
+
+ 바꿀 문자열.
+
+
+
+ + XYZ +
+
+ 교체에 쓰는 문자열. + + XYZ + 에서 첫 문자는 + + string + 에서 나타나는 + + abc + 의 첫 문자가 나타날 때마다 교체합니다.
+
+

반환

+

번역된 문자열.

+

주의

+

XPath는 translate 함수가 모든 언어에서 대/소문자 변환에 sufficient solution이 아니다라고 기록합니다. XPath의 future 버전은 대/소문자 변환을 위해 추가 함수를 제공할 지도 모릅니다.

+

그러나, 이 함수는 현재 문자열을 대/소문자로 변환할 수 있는 함수에 가장 가깝습니다.

+

+
<xsl:value-of select="translate('The quick brown fox.', 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
+
+

출력

+
THE QUICK BROWN FOX.
+
+ +

+
<xsl:value-of select="translate('The quick brown fox.', 'brown', 'red'" />
+
+

출력

+
The quick red fdx.
+
+ +

정의

+

XPath 1.0 4.2

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/true/index.html b/files/ko/web/xpath/functions/true/index.html new file mode 100644 index 0000000000..3a54249749 --- /dev/null +++ b/files/ko/web/xpath/functions/true/index.html @@ -0,0 +1,19 @@ +--- +title: 'true' +slug: Web/XPath/Functions/true +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/true +--- +

{{ XsltRef() }}

+


+ true 함수는 불린값 true를 반환합니다.

+

구문

+
true()
+
+

반환

+

불린 true.

+

정의

+

XPath 1.0 4.3

+

Gecko 지원

+

지원함.

diff --git a/files/ko/web/xpath/functions/unparsed-entity-url/index.html b/files/ko/web/xpath/functions/unparsed-entity-url/index.html new file mode 100644 index 0000000000..b5c29f3a60 --- /dev/null +++ b/files/ko/web/xpath/functions/unparsed-entity-url/index.html @@ -0,0 +1,21 @@ +--- +title: unparsed-entity-url +slug: Web/XPath/Functions/unparsed-entity-url +tags: + - XSLT_Reference +translation_of: Web/XPath/Functions/unparsed-entity-url +--- +

{{ XsltRef() }}

+


+ unparsed-entity-url() 함수는 구문해석되지 않은 엔티티의 URI를 반환합니다. 이는 소스 문서의 DTD에서 참조하는 비 XML 데이터입니다.

+

문법

+
string unparsed-entity-url(string)
+
+

인수

+

구문해석되지 않은 엔티티의 이름. 인수가 문자열이 아니면, string() 함수의 규칙을 써서 변환합니다. 이름은 XML 이름입니다.

+

반환

+

엔티티가 있으면, DTD에서 찾은 구문해석되지 않은 엔티티의 URI. 그렇지 않으면 빈 문자열.

+

정의

+

XSLT 1.0 12.4

+

Gecko 지원

+

지원 안 함.

-- cgit v1.2.3-54-g00ecf