[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Priority and import precedence

Subject: RE: Priority and import precedence
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 1 Feb 2005 10:30:50 -0000
RE:  Priority and import precedence
> Would it be possible to add a warning message to Saxon, like ambiguous
> rule match, when one template is chosen over another purely by import
> precedence (in fact, isn't this just another kind of ambiguous rule
> match)?  

Interesting idea. It would have to be in some kind of diagnostic mode (a)
because of the performance implications, and (b) because overriding
templates is good and normal practice and you don't want to produce large
numbers of warnings about something that's perfectly respectable.

I actually find that "overriding" bugs are one of my most common errors in
Java that the compiler doesn't catch. It's infuriating that when you
misspell a method name in a subclass, or get the arguments wrong, the method
is just silently ignored. So I can see that in complex XSLT applications,
there might be similar effects.

Michael Kay
http://www.saxonica.com/ 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.