[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT Output contains the unwanted content of all
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|