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

RE: [answered] collecting multiple tokenize() results

Subject: RE: [answered] collecting multiple tokenize() results into one sequence
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 24 Jul 2008 17:12:13 +0100
RE:  [answered] collecting multiple tokenize() results
> How to clarify the error message? What about (borrowing 
> language from the above paragraph):
> "Invalid initial / or // in path step: Cannot select the root 
> node of the tree that contains the context node, because the 
> context item is not a node."
> 
> It's a little long, but given that I'm not the first one who 
> has been unhelped by the existing error message, wouldn't it 
> be worth it to make this somewhat obscure problem clearer?

I'll see what I can do to improve it.

One of the difficulties in designing run-time error messages is that it's
dangerous to make assumptions about what constructs were used in the
original source code, since the same run-time code can be produced from many
different source code formulations. However, there are many cases where
Saxon saves information at compile time for use in the event of a run-time
error, so that better diagnostics can be produced, and it might be possible
to do the same here.

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-2011 All Rights Reserved.