Processing always starts with template match="/" . This is the root element and its only child is document element, in our case xslTutorial. Many stylesheets do not contain this element explicitly. When an explicit template does not exist implicit template, which contains instruction is called. This instruction means: processes all of the children of the current node, including text nodes. Compare Stylesheet 1 and Stylesheet 2. When template for a node exists, there is no default processing (Stylesheet 3). If you want to include descendants of the node, you have to explicitly request their templates (Stylesheet 4).
|