RE: Avoiding dummy xsl:if with apply-templates
> Yes, I did it for keeping the (large) pattern in one place > instead of two, and > for optimization, to have it evaluated only once. But that's perhaps > unnecessary? > It's good practice, I think, to use a variable in such cases. Some optimizers may recognize common subexpressions, but there's no point relying on it. Michael Kay http://www.saxonica.com/
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