RE: [xsl] Using document()

Subject: RE: [xsl] Using document()
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 9 Oct 2002 11:30:19 +0100
> 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.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread