[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Simple template matching problem
Steve wrote:
Templates are chosen based on precedence rules which are clearly defined. I don't know them by heart, but in general, I think the following suffices: the more specific you get, the higher the precedence, but extra predicates or parent/child specifications do not add up and count equally. If you want to override the default precedence (using @priority), using something below 0 will always be lower than default precedence and something above 1 will always be higher than default precedence. Not really sure what you mean here. Yes, this is a much abbreviated snippet from the actual xsl. Why do I need what, exactly? Sorry, 'this' referred to '//beginDate'. It looks to me like a point for improvement of your code, but I can't tell, because I know too little of your structure. Hence the (sorry, rather vague) description of why and all. Switching modes is something really handy why you happen to have very similar data sets that have to be treated rather differently. It looks like you have such sources, but I can't tell from your input. Cheers, -- 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
|