Latest web development tutorials

XSLT examples

<Xsl: template> element

When the specified node contains the rules to be applied when matching template

Examples explained


<Xsl: value-of> element

Extract the value of a selected node

Examples explained


<Xsl: for-each> element

By <xsl: for-each> element to select each XML element specifies the nodes in the cluster

Filtering the output node set

Examples explained


<Xsl: sort> element

Sort the output node set

Examples explained


<Xsl: if> element

Place the contents of an XML file for test conditions

Examples explained


<Xsl: choose> element

Example 1
This example will be higher than the price of the CD 10 to the "Artist" column to add a pink background color

Example 2
This example could be higher than 10 to "Artist" column to add a pink background color in the price of the CD, and more than 9 and less than the price of the CD is equal to 10 to "Artist" column to add a gray background color

Examples explained


<Xsl: apply-templates> element

The template is applied to the element

Examples explained