aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/xslt/when/index.html
blob: 4d5f52d9c3f610b5f1a4abd5ea92c317ce0e3f08 (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
---
title: when
slug: Web/XSLT/when
tags:
  - XSLT_Reference
translation_of: Web/XSLT/Element/when
---
<p>{{ XsltRef() }}</p>
<p><code>&lt;xsl:when&gt;</code> 요소는 항상 case 문처럼 동작하는 <code>&lt;xsl:choose&gt;</code> 요소 안에 나타납니다.</p>
<h3 id=".EB.AC.B8.EB.B2.95" name=".EB.AC.B8.EB.B2.95">문법</h3>
<pre>&lt;xsl:when test=EXPRESSION&gt;
	TEMPLATE
&lt;/xsl:when&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>test</code></dt>
 <dd>
  평가할 boolean 식을 지정합니다. 참이면, 요소의 컨텐트는 처리하고 거짓이면, 무시합니다.</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>
<p>없음.</p>
<h3 id=".ED.83.80.EC.9E.85" name=".ED.83.80.EC.9E.85">타입</h3>
<p>하위명령, 항상 <code>&lt;xsl:choose&gt;</code> 요소 안에 나타남.</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#section-Conditional-Processing-with-xsl:choose">XSLT section 9.2, Conditional Processing with xsl:choose</a></p>
<h3 id="Gecko_.EC.A7.80.EC.9B.90" name="Gecko_.EC.A7.80.EC.9B.90">Gecko 지원</h3>
<p>지원함.</p>