With XSL you can freely modify any source text. This stylesheet and This stylesheet produce different output from the same source file.
Every XSL stylesheet must start with xsl:stylesheet element. The atribute version='1.0' xmlns:xsl specifies version of XSL(T) specification. This example shows the simplest possible stylesheet. As it does not contain any information, default processing is used.
An XSL processors parses an XML source and tries to find a matching template rule. If it does, instructions inside matching template are evaluated.
Contents of original elements can be recovered from original sources in two basic ways. This stylesheet uses xsl:value-of construct. In this case the contents of the element is used without any further processing. Construct xsl:apply-templates in This stylesheet is different. The parser further processes selected elements, for which a template is defined..