xsl-list
[Top] [All Lists]

RE: Using document()

2002-10-09 03:30:19
From http://www.w3.org/TR/xslt#function-document:
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.

And it goes on to say:

* The semantics of the fragment identifier depend on the media type of
the [resource]

* The XSLT processor is not required to support any particular media
types

Which taken together, means that the XSLT processor is not required to
support fragment identifiers.

(Indeed, the XSLT processor is not required to support any particular
URI schemes, so a processor could still be conformant if it rejected all
conceivable URIs...)

However, a conformant XSLT processor is required to state in its
documentation which URI schemes and media types it supports.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



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