An xsl:template
element represents a template rule.
Each template rule has a match pattern and a template.
The match pattern is found in the match
attribute.
The template is the content of the xsl:template
element.
When the pattern is matched, the template is instantiated to form a result tree fragment, which is added to the complete result tree.
Processing starts by attempting to match the root node of the document to a template rule.
There default template rules that apply when no explicit rule matches.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="NAME">
<h2><xsl:value-of select="."/></h2>
</xsl:template>
</xsl:stylesheet>
You can find this example in examples/atoms1.xsl