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

Re: How to check if document(file) was able to find an

Subject: Re: How to check if document(file) was able to find and read the file?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 9 Apr 2003 12:24:46 +0100
xslt document file
> How can I check that?

It's actually an error to refer to a document that is not there.
Your XSLT system may just give up at that point and stop.
If so there is nothing you can do from within the stylesheet.

However the XSLT spec does say what the processor must do if it does not
die at that point: it has to return an empty node set, in which case

<xsl:when test="$Descriptions">
<xsl:when test="count($Descriptions)>0">

both of those should work and be true if the document is there and false
otherwise.

$Descriptions will either be an empty node set or a set consisting of
a single / node, depending on whether the document is there or not.



David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.