|
|
Xsl TransformationsXSL Transformations, or XSLT, is an XML-based scripting language used for transforming XML documents. It is the XML transformation language part of the XSL specification (the other parts being XSL-FO and XPath). As with XML and HTML, the XSLT specification is a Recommendation developed by the W3C. To transform in this context means to apply an XSLT stylesheet to an XML document, stored as a source tree, so as to create a result tree. The result tree may be produced in XML, XHTML, HTML or any text-based format including plain text, tab- and comma-separated values, RTF and TeX. It may comprise text and markup from the XSLT stylesheet combined with parts of the incoming XML document, selected using XPath query-strings. Among many other options, the result tree may be written to an output file, transmitted over a network or simply displayed locally. The language is declarative, i.e. an XSLT stylesheet consists of a collection of template rules which define the transformations to be performed. These template rules can be applied recursively. The XSLT processor checks which template rules can be applied and executes the associated transformations based on a sequence of priorities. An XSLT stylesheet is itself an XML document as the example below shows. The W3C finalized the XSLT 1.0 specification in 1999 and the XSLT 2.0 specification currently has 'Working Draft' status. Example Example XSLT Stylesheet: xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> test1 The following host names are currently in use at | | | Example of incoming XML for above stylesheet: www java www validator Output XHTML that this would produce: test1 Sun Microsystems Inc.The following host names are currently in use at sun.com The World Wide Web ConsortiumThe following host names are currently in use at w3.org See also - STX is intended as a high-speed, low memory consumption alternative to XSLT.
- Smarty is a template engine written in PHP.
External links - Implementations for Java:
- Implementations for C or C++:
- Implementations for Python:
- 4XSLT, in the 4Suite toolkit by Fourthought, Inc.
- Implementations for specific operating systems:
- Microsoft's MSXML library may be used in various Microsoft Windows application development environments and languages, such as .Net, Visual Basic, C, and JScript.
- Implementations integrated into web browsers:
- Wikis
- A wiki dedicated to extending the knowledgebase and overall understanding of XSLT 1.0, XSLT 2.0, processor and language extension projects such as EXSLT and FXSL, and the processors that support each of these language implemenations.
|
 |