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

document not there ambiguity (was: bug? warning given

Subject: document not there ambiguity (was: bug? warning given as error)
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Wed, 23 Apr 2003 12:18:27 -0400
signal or warning given
On Wednesday, April 23, 2003, at 10:23 AM, Chris Leishman wrote:
The spec states in section 12.1 Multiple Source Documents
"If there is an error retrieving the resource, then the XSLT processor
may signal an error; if it does not signal an error, it must recover
by returning an empty node-set."


So both behaviours are correct.

....and people wonder why the different implementations are so incompatible....


Really...what where the W3C thinking? Perhaps someone should start a list of 'standard implementation choices for implementing the xslt standard' (rolls eyes) and maybe that'll become YAWNS (Yet Another W3C uNsuccessful Standard).

They're already on the way... the WD for xslt 2.0 says this about "unparsed-text" function


"[ERR117] It is a dynamic error if a URI cannot be used to retrieve a resource containing text. The processor must either signal the error, or must recover by treating the URI as if it referenced a resource containing a zero-length string."

Just glancing at the XPath 2.0 / xquery 1.0 WD I can't tell but it seems the same for fn:document:

14.5.3 "An error in processing the fragment identifier is classed as a dynamic error. In such cases, then an error is raised ("Error processing fragment identifier"), or the processor must recover by returning an empty sequence."

hooray :-\

simon

--
     anti-spam: do not post this address publicly
www.simonwoodside.com -- 99% Devil, 1% Angel


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.