[xsl] document() function.

Subject: [xsl] document() function.
From: David.Pawson@xxxxxxxxxxx
Date: Tue, 20 May 2003 08:33:41 +0100
The xslt working group on W3C appear to be on their way to replacing
the document() function with doc() which has only the base functionality
of document()

I received this in response to my comments:
You have to understand that XQuery has no problem with the 99% use of
fn:document that takes a URI and returns a document. However,
fn:document has so many special cases that are almost never used but
complicate the functionality, that we felt fn:doc() is providing the 99%
functionality without all the additional baggage. 

You could see this to be the first stage of a deprecation of
fn:document() in XPath. First, we provide a simpler function. In a later
version, fn:document() may be removed.

At least that's how I personally see the reason for keeping both in

If you need other than the simpler functionality of doc() and don't
want to change your stylesheets, please let them know.

The WG appear to be under the impression its not used.

public-qt-comments@xxxxxx takes the comments.

Regards DaveP.

**** snip here *****


NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 

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

Current Thread