xsl-list
[Top] [All Lists]

document() function.

2003-05-20 00:33:41
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()
http://www.w3.org/TR/xquery-operators/#func-doc

I received this in response to my comments:
<quote>
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
XPath.
</quote>

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(_at_)w3(_dot_)org 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 
system.

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



<Prev in Thread] Current Thread [Next in Thread>