[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: apply-templates and predicates
But if you filter on the template match you may need to add a new template when the schema changes or *a* default template will be invoked. A A template will be invoked that matches the element. I don't think that "default" has any meaning if you don't mean th einbuilt ones. In simle cases match="a" match="b" match="*" you might say the last of those was the default, but if the full set of templates is match="*[not(@bar)]" match="b//*" match="*[@foo]" then which is the "default" If you filter on the invoking template no default template will be invoked. that depends on the filter. It may be written to just accept a fixed ist or it may be written to accept all but a fixed list. As I just said in a different reply, if you write your select attribute to just accept a fixed list then any new elements will be silently ignored and finding all the places in the stylesheet that need to be changed to accept that element (if that's what should happen) is a lot harder than just adding a template for the new element. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
|
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
|