Two author templates, one more precise: Both Saxon and MSXSL take the first as the more precise
<xsl:stylesheet ... > <xsl:template match="thought/author" > <xsl:copy> <xsl:text>The author of this well known thought is: </xsl:text> <xsl:value-of select="." /> </xsl:copy> </xsl:template> <xsl:template match="author" > <xsl:copy> <xsl:text>The author is: </xsl:text> <xsl:value-of select="." /> </xsl:copy> </xsl:template> </xsl:stylesheet>
More precise definition of precedence later