Example of incoming XML for above stylesheet:
    
                           www             World Wide Web site                               java             Java info                                              www             World Wide Web site                               validator             web developers who want to get it right               
Output XHTML that this would produce:
   test1     

Sun Microsystems Inc.

The following host names are currently in use at sun.com

Xsl Transformations

XSL 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

Host nameURLUsed by
Host nameURLUsed by
www http://www.sun.comWorld Wide Web site
java http://java.sun.comJava info

The World Wide Web Consortium

The following host names are currently in use at w3.org

Host nameURLUsed by
www http://www.w3.orgWorld Wide Web site
validator http://validator.w3.orgweb developers who want to get it right

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.

 

<< PreviousWord BrowserNext >>
x window system
x ray crystallography
dax
xerox parc
xenophon
xhtml
extensible stylesheet language
xingu river
xe
xerox
xt bus architecture
xenogears
xenogears terms
kislev
xfree86
x (us band)
xp
xenarthra
xywrite
x ray
x86
xiangqi
xfs
xemacs
xbox
xxx
xena: warrior princess
list of xena: warrior princess episodes
xmms
x ray spex
x factor
x men
x rated
southern platyfish
yahoo
yuri gagarin
yellowknife
yukon
year 2000 problem
yunus emre
yttrium
ytterbium
ytterby
yard