aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/xslt/index.html
blob: 223716c62460f5083f3bf520d286d6b59ed5b184 (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
---
title: XSLT
slug: Web/XSLT
tags:
  - XSLT
translation_of: Web/XSLT
---
<p> </p>

<div><strong>可扩展样式表语言转换(XSLT)</strong>是一种基于<a href="cn/XML">XML</a>的语言,和专门的处理软件一起使用,用于XML文档转换。虽然这个处理过程被称作“转换”,但并没有改变原始文档,而是在原文档内容的基础上创建了一个新的XML文档。然后, 这个新文档会被处理器序列化(输出)为标准的XML语法或其他格式,如<a href="cn/HTML">HTML</a>或纯文本。XSLT最常用于不同XML模式间的数据转换,或用于将XML数据转换为网页或PDF文档。 {{ Ref("one") }}</div>

<table class="topicpage-table">
 <tbody>
  <tr>
   <td>
    <h4 id="Documentation" name="Documentation"><a>Documentation</a></h4>

    <dl>
     <dt><a href="cn/XSLT/Elements">XSLT Element Reference</a></dt>
    </dl>

    <dl>
     <dt><a href="cn/Transforming_XML_with_XSLT">Transforming XML with XSLT</a></dt>
     <dd><small>XSLT allows a stylesheet author to transform a primary XML document in two significant ways: manipulating and sorting the content, including a wholesale reordering of it if so desired, and transforming the content into a different format.</small></dd>
    </dl>

    <dl>
     <dt><a href="cn/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations">Using the Mozilla JavaScript interface to XSL Transformations</a></dt>
     <dd><small>This document describes the JavaScript interface to the XSLT processing engine in Mozilla 1.2 and up.</small></dd>
    </dl>

    <dl>
     <dt><a href="cn/XSLT/PI_Parameters">Specifying parameters using processing instructions</a></dt>
     <dd><small>Firefox allows stylesheet parameters to be specified when using the <code>&lt;?xml-stylesheet?&gt;</code> processing instruction. This is done using the <code>&lt;?xslt-param?&gt;</code> PI described in this document.</small></dd>
    </dl>

    <dl>
     <dt><a class="external" href="http://www.topxml.com/xsl/tutorials/intro/">XSLT &amp; XPath Tutorial</a></dt>
     <dd><small>The TopXML XSLT tutorial introduces you to the basics of XSLT concepts, syntax, and programming.</small></dd>
    </dl>

    <dl>
     <dt><a class="external" href="http://www.w3schools.com/xsl/">XSLT Tutorial</a></dt>
     <dd><small>This <a class="external" href="http://www.w3schools.com">W3Schools</a> tutorial teaches the reader how to use XSLT to transform XML documents into other formats, like XHTML.</small></dd>
    </dl>

    <dl>
     <dt><a class="external" href="http://www.xml.com/pub/a/2000/08/holman/">What is XSLT?</a></dt>
     <dd><small>This extensive introduction to XSLT and XPath assumes no prior knowledge of the technologies, and guides the reader through background, context, structure, concepts and introductory terminology.</small></dd>
    </dl>

    <dl>
     <dt><a href="cn/XSLT_2.0">XSLT 2.0</a> (new)</dt>
    </dl>

   </td>
   <td>
    <h4 id="Community" name="Community">Community</h4>

    <ul>
     <li>View Mozilla forums...</li>
    </ul>

    <p>{{ DiscussionList("dev-tech-xslt", "mozilla.dev.tech.xslt") }}</p>

    <h4 id="Related_Topics" name="Related_Topics">Related Topics</h4>

    <dl>
     <dd><a href="cn/XML">XML</a>, <a href="cn/XPath">XPath</a>, <a href="cn/XQuery">XQuery</a></dd>
    </dl>
   </td>
  </tr>
 </tbody>
</table>

<hr>
<p><small>{{ Note("one") }} This description of XSLT is obtained from the <a class="external" href="http://en.wikipedia.org/wiki/Xslt">Wikipedia XSLT article</a>. </small></p>

<p><span class="comment">Categories</span></p>

<p><span class="comment">Interwiki Language Links</span></p>

<p> </p>

<p>{{ languages( { "en": "en/XSLT", "es": "es/XSLT", "fr": "fr/XSLT", "it": "it/XSLT", "ja": "ja/XSLT", "ko": "ko/XSLT", "pl": "pl/XSLT", "pt": "pt/XSLT" } ) }}</p>