aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/xslt/decimal-format/index.html
blob: 83e51a2e90d8df48da3eecdddf4cfe144feeb6e6 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
title: decimal-format
slug: Web/XSLT/decimal-format
tags:
  - XSLT_Reference
translation_of: Web/XSLT/Element/decimal-format
---
<p>{{ XsltRef() }}</p>
<p><code>&lt;xsl:decimal-format&gt;</code> 요소는
 <i>
  <code>format-number( )</code></i>
 함수를 써서 숫자를 문자열로 바꿀 때 쓰는 기호와 문자를 정의합니다.</p>
<h3 id=".EB.AC.B8.EB.B2.95" name=".EB.AC.B8.EB.B2.95">문법</h3>
<pre>&lt;xsl:decimal-format
	name=NAME
	decimal-separator=CHARACTER
	grouping-separator=CHARACTER
	infinity=STRING
	minus-sign=CHARACTER
	NaN=STRING
	percent=CHARACTER
	per-mille=CHARATER
	zero-digit=CHARACTER
	digit=CHARACTER
	pattern-separator=CHARACTER /&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>
<p>없음.</p>
<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>name</code></dt>
 <dd>
  이 형식에 이름을 지정합니다.</dd>
</dl>
<dl>
 <dt>
  <code>decimal-separator</code></dt>
 <dd>
  소숫점 문자를 지정합니다. 기본값은 (<code>.</code>)입니다.</dd>
</dl>
<dl>
 <dt>
  <code>grouping-separator</code></dt>
 <dd>
  그룹 구분 문자를 지정합니다. 기본값은 (<code>,</code>)입니다.</dd>
</dl>
<dl>
 <dt>
  <code>infinity</code></dt>
 <dd>
  무한대(infinity)를 나타내는데 쓰는 문자열을 지정합니다. 기본값은 "<code>Infinity</code>" 문자열입니다.</dd>
</dl>
<dl>
 <dt>
  <code>minus-sign</code></dt>
 <dd>
  빼기 기호 문자를 지정합니다. 기본값은 (<code>-</code>)입니다.</dd>
</dl>
<dl>
 <dt>
  <code>NaN</code></dt>
 <dd>
  값이 숫자가 아닐 때 쓰는 문자열을 지정합니다. 기본값은 "<code>NaN</code>" 문자열입니다.</dd>
</dl>
<dl>
 <dt>
  <code>percent</code></dt>
 <dd>
  백분율(percentage) 기호 문자를 지정합니다. 기본값은 (<code>%</code>)입니다.</dd>
</dl>
<dl>
 <dt>
  <code>per-mille</code></dt>
 <dd>
  천분율(per thousand) 문자를 지정합니다. 기본값은 (<code></code>)입니다.</dd>
</dl>
<dl>
 <dt>
  <code>zero-digit</code></dt>
 <dd>
  숫자 0으로 쓸 문자를 지정합니다. 기본값은 (<code>0</code>)입니다.</dd>
</dl>
<dl>
 <dt>
  <code>digit</code></dt>
 <dd>
  형식 패턴에서 숫자(digit)를 나타내는데 쓰는 문자를 지정합니다. 기본값은 (<code>#</code>)입니다.</dd>
</dl>
<dl>
 <dt>
  <code>pattern-separator</code></dt>
 <dd>
  형식 패턴에서 양수와 음수 부분패턴을 구분하는 문자를 지정합니다. 기본값은 (<code>;</code>)입니다.</dd>
</dl>
<h3 id=".ED.83.80.EC.9E.85" name=".ED.83.80.EC.9E.85">타입</h3>
<p>최상위, <code>&lt;xsl:stylesheet&gt;</code><code>&lt;xsl:transform&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#format-number">XSLT section 12.3, Number Formatting</a></p>
<h3 id="Gecko_.EC.A7.80.EC.9B.90" name="Gecko_.EC.A7.80.EC.9B.90">Gecko 지원</h3>
<p>Mozilla 1.0과 Netscape 7.0 현재 지원함.</p>