2.1.3 [W3C-XSLT] Section 12.1, Multiple Source Documents


The specification states:

 If the URI reference does not contain a fragment identifier, then a node-set 
 containing just the root node of the document is returned. If the URI reference
 does contain a fragment identifier, the function returns a node-set containing the
 nodes in the tree identified by the fragment identifier of the URI reference. The
 semantics of the fragment identifier is dependent on the media type of the result
 of retrieving the URI. If there is an error in processing the fragment identifier,
 the XSLT processor may signal the error; if it does not signal the error, it must 
 recover by returning an empty node-set. Possible errors include:
    • The fragment identifier identifies something that cannot be represented by an 
XSLT node-set (such as a range of characters within a text node).
     • The XSLT processor does not support fragment identifiers for the media-type 
 of the retrieval result. An XSLT processor is not required to support any 
 particular media types. The documentation for an XSLT processor should specify for
 which media types the XSLT processor supports fragment identifiers.


The fragment identifier in the document() function is not processed.