|
[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








