XSL Match Templates
XSL Match Templates
Stylesheets are made up of a number of templates, each of which defines what the XSLT processor should do when it matches a particular node in the XML source document. The XSLT processor populates the result document by instantiating a sequence of templates. Instantiation of a template means that the XSLT processor
*Copies any literal data from the template to the target
*Executes the XSLT instructions in the template
Templates are defined using the <xsl:template> element. The match attribute in the <xsl:template> element indicates which parts of the source document should be processed with the particular template.