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

RE: Re: [answered] collecting multiple tokenize() resu

Subject: RE: Re: [answered] collecting multiple tokenize() results into one sequence
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 29 Jul 2008 19:14:27 +0100
RE:  Re: [answered] collecting multiple tokenize() resu
> Actually this was labeled as a compile-time error message in my case.
> But no doubt it can occur at run-time as well...

Actually, when I looked more closely, I found that this is a case of an
error that's defined as a dynamic error in the spec, but is being detected
statically (which is allowed, under some fairly byzantine rules in the XPath
spec). And the reason for the relative vagueness of the message wasn't in
this case loss of information between compile-time and run-time, but rather
than the condition was being detected in a superclass covering a wide
variety of different kinds of expression, and the message wasn't being
customized to the particular kind of expression. Which is now fixed.
> 
> That would be nice... the root (excuse the term) of the 
> problem here is that you're trying to communicate to the 
> programmer an error that is caused by a condition that is 
> camouflaged. The programmer is trying to access the context 
> node when there is no context node, but often it is far from 
> clear (to us mortals) that the stylesheet as written would 
> need to access the context node!

Yes indeed. Design of error messages often has to find the right compromise,
given that there are readers who understand the language and its terminology
very precisely and others who don't. There are messages in Saxon that are
conceptual howlers (like "attempting to write an attribute when there is no
open start tag") where I may have bent a little too far towards
communicating with the ignorant, and others where I am no doubt too
technical for the majority.

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.