Templates view

The <xsl:template> is the basic element for stylesheets transformation. This view is only available during XSLT debugging sessions and shows all <xsl:template> instructions used by the transformation. By seeing the number of hits for each of the templates you get an idea of the stylesheet coverage by template rules with respect to the input source.

Figure 11.11. The Templates view

The Templates view

Table 11.7. Templates details

ColumnDescription
MatchMatch attribute of the <xsl:template>.
HitsNumber of hits for the <xsl:template>. Shows how many times the XSLT processor used this particular template.
PriorityTemplate priority as established by XSLT processor.
ModeMode attribute of the <xsl:template>.
NameName attribute of the <xsl:template>.
ResourceResource file where template is located.

Remarks

  • Clicking a record highlights that template definition inside resource.

  • Saxon only shows the applied templates having at least one hit from the processor. Xalan shows all defined templates, with or without hits.

  • Template table values can be sorted by clicking the corresponding column header (ascending, descending, no sort)

  • Xalan shows the "built-in" rules.