In general, XSL first specifies how to process the source tree to get a result tree. |
The pattern of a template rule is matched with the source tree and replaces it with the template. |
The result tree is then processed with formatting to achieve a document suitable for display, printing, speech or other media. |
XSL and XML may have their own namespaces for rules. |