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

RE: error in xsl:key

Subject: RE: error in xsl:key
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 19 Sep 2008 17:51:53 +0100
RE:  error in xsl:key
It's a dynamic error like any other, and all dynamic errors are fatal.

The system has a lot of discretion in exactly how evaluation proceeds. For
example, if evaluating a global variable throws an error, but you never use
the variable, then it's processor-dependent whether your stylesheet will
fail or not. The same is true to an extent here - except that key() really
can't return a result until the use expression has been evaluated for every
node that matches the xsl:key/@match pattern.

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

> -----Original Message-----
> From: Vladimir Nesterovsky [mailto:vladimir@xxxxxxxxxxxxxxxxxxxx] 
> Sent: 19 September 2008 17:32
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  error in xsl:key
> 
> Hello!
> 
> I have an xsl:key like this:
> 
> <xsl:key
>   name="t:type-name"
>   match="type"
>   use="t:get-type-name(.)"/
> 
> Please don't bother with what function's really doing, except 
> that for a certain circumstances it may issue an error.
> 
> My question is what this should result into, when error occurs?
> 
> E.g. in Saxon 9.1 this results in error when I try to access 
> a key() function, with valid $key-value.
> --
> Vladimir Nesterovsky
> http://www.nesterovsky-bros.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.