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

RE: RE: doc-available vs. exists(document)

Subject: RE: RE: doc-available vs. exists(document)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 17 Jun 2009 13:35:52 +0100
RE:  RE: doc-available  vs.  exists(document)
> Now that I have my transformation working, I got to wondering why
> doc-available() and document() work a bit differently on their inputs.
> If document() can find the file, why doesn't doc-available() 
> use the same rules?  I would think that I would check 
> document availability, then use the same value to actually 
> open the document.
> There must have been a reason for the difference.  Is there 
> an (easy) explanation for this?

When the time came to design XQuery, it was felt that document() packaged
too much functionality into one function, and that it would be better to
split it into three logically separate and simpler operations: doc(),
base-uri(), and resolve-uri(). The doc-available() function was then
invented, and was aligned with doc() rather than document().


Michael Kay

Current Thread


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.
First Name
Last Name
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.