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

RE: using xsl:message

Subject: RE: using xsl:message
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 24 Oct 2004 19:26:43 +0100
RE:  using xsl:message
> I think that a failure from the doc() function should be a 
> fatal error, for
> two reasons: 

I've now established that the reason the error isn't fatal is that it occurs
while evaluating a pattern in a template rule.

This is a tricky area of the spec. Because we can't legislate which patterns
are evaluated against which nodes, it's hard to ensure that a pattern such
as

match="*[. = '']"

doesn't get evaluated against an element whose value is (say) a number,
which would cause an error. The spec therefore says that errors that occur
while evaluating a pattern are recoverable. What's happened here is that the
global variable is evaluated during the matching of a pattern, and the error
in evaluating it is therefore treated as non-fatal.

This doesn't feel quite right: although Saxon evaluates global variables on
first reference, it should probably behave as if it didn't, in which case
this would be a hard error. But it's not immediately obvious how to achieve
that... In the meantime (having fixed the spurious "circularity" messages),
I think the behavior is conformant.

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.