Root Match Templates
Each XML document has a single root element. This element encloses all following elements and is therefore the parent element to all the other elements.
When the XSLT processor applies a stylesheet to an XML document, it begins processing with the root element of the XML source document. To process the root element, the XSLT processor searches the stylesheet for a template rule that matches the root element. A template rule matches the root element when the value of the template's match attribute is "/".
If the user explicitly defined a template rule that matches the root element, the XSLT processor finds it and implements that template to the entire XML document. If the XSLT processor does not find an explicitly defined template rule that matches the root element, the processor implements the default template that matches the root element. Every stylesheet includes this default template.
Was this helpful?
Last modified date: 08/16/2017