Re: XPath for matching multiple child elements
Yeah, I started to use Wendell's suggestion, but I decided for myself that having the template matching pattern spelled out explicitly (<xsl:template match="comments//h1 | comments//p ...">) would be better for my (and others') long-term comprehension of the style sheet. I'm glad to see that I probably made a good choice performance-wise, too.
Yes, and comprehensibility is definitely a maintenance consideration.
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