RE: TR/xquery-operators/#func-doc

http://www.w3.org/TR/xslt20/ 16.1 seems to half answer this,
or contradict it.

quote. The effect of these rules is that unless XML entities or xml:base are
used, document("") refers to the document node of the containing stylesheet
module. The XML resource containing the stylesheet module is processed
exactly as if it were any other XML document, for example there is no
special recognition of xsl:text elements, and no special treatment of
comments and processing instructions. unquote.

Impact on users:
  If I want to use xml:base, I can't access the filesheet using
document("")?

I find this unacceptable. 
Many people utilise data within the stylesheet as a lookup.



2. Is there another out of sync issue here?
xslt 2 says:

document($uri-sequence as item()*, $base-node as node()) as node()*

which is missing from the former reference?

   
regards DaveP





> 15.4.4 fn:doc
> fn:doc($uri as xs:string?) as document? 
> 
> 
> No mention of the current 1.0 practice, fn:doc('')
> retrieving the current stylesheet.
> 
> Please add that back in if its been removed.
> If its still available, please document it.
> If its been replaced please annotate to locate it.
> 
> 
> I regret the change from document() to doc().
> An unnecessary change from an xslt perspective,
> requiring work which is not necessary
> when migrating from 1.0 to 2.0
> 
> What was the justification for the name change?
> 
> Regards DaveP.
> AC RNIB
> 
> **** 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 
> 

- 

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 

Received on Monday, 12 May 2003 08:02:11 UTC