[Home] [By Thread] [By Date] [Recent Entries]
Florent Georges wrote:
<xsl:template match="*"/> Florent, that is not the case. Though I often use your throw-away template because it is so easy and has clear semantics, the normal precedence rules apply, even if you use the element() constructor for a match (which is, I believe, a bit odd though). The OP had: <xsl:template match="element(zoo:country)"> which is the long form of saying: <xsl:template match="zoo:country" >... and a specific element reference has a higher precedence than a generic one. So, adding something like: <xsl:template match="*" /> will work, and will still call the appropriate other templates in due cause. In cases where you have large input document with many elements and only a few needs to be processed, I believe that it is a bit faster than the text() node approach (some estimate I like to refer to as running time by granularity approximation, but I may be wrong). -- Abel
|

Cart



