aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/xslt/sort/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/xslt/sort/index.html')
-rw-r--r--files/ko/web/xslt/sort/index.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/files/ko/web/xslt/sort/index.html b/files/ko/web/xslt/sort/index.html
new file mode 100644
index 0000000000..22217ec61f
--- /dev/null
+++ b/files/ko/web/xslt/sort/index.html
@@ -0,0 +1,55 @@
+---
+title: sort
+slug: Web/XSLT/sort
+tags:
+ - XSLT_Reference
+translation_of: Web/XSLT/Element/sort
+---
+<p>{{ XsltRef() }}</p>
+<p><code>&lt;xsl:sort&gt;</code> 요소는 <code>&lt;xsl:apply-templates&gt;</code>나 <code>&lt;xsl:for-each&gt;</code>가 선택한 노드에 정렬키를 정의하고 노드를 처리할 순서를 결정합니다.</p>
+<h3 id=".EB.AC.B8.EB.B2.95" name=".EB.AC.B8.EB.B2.95">문법</h3>
+<pre>&lt;xsl:sort
+ select=EXPRESSION
+ order="ascending" | "descending"
+ case-order="upper-first"| "lower-first"
+ lang=XML:LANG-CODE
+ data-type="html" | "xml" | "text" /&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>select</code></dt>
+ <dd>
+ 정렬할 노드를 지정하는 XPath 식을 씁니다.</dd>
+</dl>
+<dl>
+ <dt>
+ <code>order</code></dt>
+ <dd>
+ "<code>ascending</code>"나 "<code>descending</code>"으로 처리하면 좋을 노드를 지정합니다. 기본값은 "<code>ascending</code>"입니다.</dd>
+</dl>
+<dl>
+ <dt>
+ <code>case-order</code></dt>
+ <dd>
+ 처음에 오는 게 대문자인지 소문자인지를 나타냅니다. 가능한 값은 "<code>upper-first</code>"와 "<code>lower-first</code>"입니다.</dd>
+</dl>
+<dl>
+ <dt>
+ <code>lang</code></dt>
+ <dd>
+ 어떤 언어를 정렬에 쓸지를 지정합니다.</dd>
+</dl>
+<dl>
+ <dt>
+ <code>data-type</code></dt>
+ <dd>
+ 어떤 항목을 알파벳순이나 숫자순으로 순서 매길지를 정의합니다. 가능한 값은 "<code>text</code>"와 기본값인 "<code>text</code>"가 있는 "<code>number</code>"입니다.</dd>
+</dl>
+<h3 id=".ED.83.80.EC.9E.85" name=".ED.83.80.EC.9E.85">타입</h3>
+<p>하위명령, 항상 <code>&lt;xsl:for-each&gt;</code>의 자식으로 나타나고 고유(proper) 템플릿이나 <code>&lt;xsl:apply-templates&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#sorting">XSLT section 10, Sorting</a></p>
+<h3 id="Gecko_.EC.A7.80.EC.9B.90" name="Gecko_.EC.A7.80.EC.9B.90">Gecko 지원</h3>
+<p>지원함.</p>