The result is "Joe Smith". My question is: the process just processes the first template, or processes both, but the second produces zero output? if not processes the second, comparing the previous example, it should process second?? Thanks for any reply!!
Kevin, XSLT has several default template rules. One of them is for element and root nodes - <xsl:template match="*|/"> <xsl:apply-templates/> <xsl:template> This rule ensures that the source element and then employee are processed. For the employee element we have a rule that outputs the data. This template doesn't call templates for its descendants (<xsl:apply-templates/>), so the template surname never gets called. Cheers, Dan
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
posted 15 years ago
Thanks for your reply, Dan. Regards Kevin
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad: