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

Re: Avoiding boneheaded mistakes in XSLT?

Subject: Re: Avoiding boneheaded mistakes in XSLT?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 30 Dec 2010 13:48:16 +0000
Re:  Avoiding boneheaded mistakes in XSLT?
What is useful, has already been provided by SA processors for years.

I'm glad you think so, but I think there are still opportunities to get better.

For example, Saxon 9.3, when you call an unknown function, tries quite hard to discover what you did wrong - for example, it will recognize common misspellings of the Saxon namespace. Improving the diagnostics here reduces the number of support calls. Similarly, the schema validator when it encounters an element name that is not allowed in a particular position tries to work out whether you spelt the element name wrong or used the right element name in the wrong place. I think there's an inexhaustible number of refinements that can be made to improve feedback for people who make mistakes, and I shall keep trying!

Producing warnings for constructs that could be correct comes into a different category. Saxon has always produced some such warnings for things that are obviously wrong, even though legal (for example @A/@B), and I think there is plenty more scope to be smarter. For example, If someone writes book/isbn when the schema (or indeed the instance) contains book/@isbn, I think the probability that this is incorrect is sufficiently high to justify a warning, provided it can be suppressed at user option.

Michael Kay
Saxonica

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.