aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/xslt/variable/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/xslt/variable/index.html')
-rw-r--r--files/ko/web/xslt/variable/index.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/files/ko/web/xslt/variable/index.html b/files/ko/web/xslt/variable/index.html
new file mode 100644
index 0000000000..8568f70b20
--- /dev/null
+++ b/files/ko/web/xslt/variable/index.html
@@ -0,0 +1,33 @@
+---
+title: variable
+slug: Web/XSLT/variable
+tags:
+ - XSLT_Reference
+translation_of: Web/XSLT/Element/variable
+---
+<p>{{ XsltRef() }}</p>
+<p><code>&lt;xsl:variable&gt;</code> 요소는 스타일시트에 전역 변수나 지역 변수를 선언하고 그 변수에 값을 줍니다. XSLT가 부작용(side-effect)을 허용하지 않기 때문에, 변수값을 한 번 주면 그 변수는 범위(scope)를 벗어날 때까지 같은 값입니다.</p>
+<h3 id=".EA.B5.AC.EB.AC.B8" name=".EA.B5.AC.EB.AC.B8">구문</h3>
+<pre>&lt;xsl:variable name=NAME select=EXPRESSION &gt;
+ TEMPLATE
+&lt;/xsl:variable&gt; </pre>
+<h3 id=".ED.95.84.EC.88.98_.EC.86.8D.EC.84.B1" name=".ED.95.84.EC.88.98_.EC.86.8D.EC.84.B1">필수 속성</h3>
+<dl>
+ <dt>
+ <code>name</code></dt>
+ <dd>
+ 변수에 이름을 줍니다.</dd>
+</dl>
+<h3 id=".EC.84.A0.ED.83.9D_.EC.86.8D.EC.84.B1" name=".EC.84.A0.ED.83.9D_.EC.86.8D.EC.84.B1">선택 속성</h3>
+<dl>
+ <dt>
+ <code>select</code></dt>
+ <dd>
+ 변수값을 XPath 식으로 정의합니다. 요소가 템플릿을 포함하면, 이 속성은 무시합니다.</dd>
+</dl>
+<h3 id=".ED.83.80.EC.9E.85" name=".ED.83.80.EC.9E.85">타입</h3>
+<p>최상위 또는 명령. 최상위 요소로 나타나면, 변수의 범위는 전역이고 문서 전체에서 접근할 수 있습니다. 템플릿 안에 나타나면, 번수의 범위는 지역이고 나타난 템플릿 안에서만 접근할 수 있습니다.</p>
+<h3 id=".EC.A0.95.EC.9D.98" name=".EC.A0.95.EC.9D.98">정의</h3>
+<p><a class="external" href="http://www.w3.org/TR/xslt#variables">XSLT section 11, Variables and Parameters</a></p>
+<h3 id="Gecko_.EC.A7.80.EC.9B.90" name="Gecko_.EC.A7.80.EC.9B.90">Gecko 지원</h3>
+<p>지원함.</p>