--- title: XSLT slug: Web/XSLT tags: - XSLT translation_of: Web/XSLT ---

 

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

Documentation

XSLT Element Reference
Transforming XML with XSLT
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.
Using the Mozilla JavaScript interface to XSL Transformations
This document describes the JavaScript interface to the XSLT processing engine in Mozilla 1.2 and up.
Specifying parameters using processing instructions
Firefox allows stylesheet parameters to be specified when using the <?xml-stylesheet?> processing instruction. This is done using the <?xslt-param?> PI described in this document.
XSLT Tutorial
This W3Schools tutorial teaches the reader how to use XSLT to transform XML documents into other formats, like XHTML.
What is XSLT?
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.
XSLT 2.0 (new)

Community

  • View Mozilla forums...

{{ DiscussionList("dev-tech-xslt", "mozilla.dev.tech.xslt") }}

XML, XPath, XQuery

{{ Note("one") }} This description of XSLT is obtained from the Wikipedia XSLT article.

Categories

Interwiki Language Links

 

{{ 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" } ) }}