RE: apply-templates and predicates
It also increases the chances that the stylesheet will do something unwanted when the schema changes
Unless your definition of "unwanted" considers that data being silently dropped is more unwanted than data passed through even to an invalid result....
(Not that there aren't third possibilities like trapping an exception in some way for unexpected input, for example by using xsl:message or any of a number of other techniques. But the point is, sometimes you'll be expressing and controlling tighter constraints over your output than over your input -- if you are validating your output you can rely on that to catch problems there; but validation processes can't usually see where data that was there, is now missing. So what's "unwanted" depends on the context. Or to put it another way, you're right -- and sometimes it's a good thing that your stylesheet does something unwanted.)
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