• matching pattern

            The values for match attribute of ≶xsl:template> can be
            <ul>
            <li>/ matches the document node</li>
            <li>* matches any element</li>
            <li>text() matches text nodes</li>
            <li>The name of an element matches that element</li>
            <li>path patterns</li>
            </ul>
    
  • builtin template

            <p>There is a built-in template rule to allow recursive processing to
            continue in the absence of a successful pattern match by an explicit template
            rule in the stylesheet.  This template rule applies to both element nodes and
            the root node.  The following shows the equivalent of the built-in template
            rule:</p>
            <xsl:template match="*|/">
            <xsl:apply-templates/>
    
  • XSLT Processing Model

            Whe XSLT processor looks for a template, it searches the whole stylesheet, so it doesn't matter where the template is within that stylesheet. When the XSLT processor finds a matching template, it uses the content of the template to process the matching node and generate some output. Then content of the template might include insturctions that tell the processor to apply templates to a particular set of nodes, in which case it goes though those nodes finding the and processing matching templates, and so on.
    
  • Node tree

            <p>When XSLT processor read a xml document, it generates a node tree. The nodes can be one of the following.</p>
            <ul>
            <li>Element Nodes</li>
            <li>Attribute Nodes</li>
            <li>Text nodes</li>
            <li>Comment nodes</li>
            <li>Processing-instruction nodes</li>
            </ul>
            <p>
            Attribute nodes are a bit special because attributes are not contained in elements in the same way as other elements or text, but they are still associated with particular elements. the element that an attribute is associated with is still known as its parent, but attributes are not their parent element's children, just its attributes.
            </p>
    
  • simplified style sheet vs tempaltes based style sheet

                
                
                Hello World Example