Re: XSLT V 1.1

Subject: Re: XSLT V 1.1
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 15 Sep 2000 09:51:31 GMT
> I'l be very glad to see XSL pseudo-code which works 
> with current document() but will fail with this version.

That's easy because you can't, as things stand in XSLT 1.0,
obtain the URI of any node so if you currently have
a two argument use of document, you can't change to your proposed
version (even if you know th euRI of the root of the input document)
as you (or rather the XSLT engine running the stylesheet) does not
know the URI of the node.

You suggest that
document(relative-uri,node)

should be replaced by

new-document(relative-uri,base-uri)

but you can't do that unless you also provide a function (as i suggested
before) which returns the uri of a node, so then you'd have the original
as 

new-document(string-as-relative-uri,uri-of-node(node))


> Empty string "" works like a reference to stylesheet 
> document itself.

'' currently works as a reference to the stylesheet as a consequence of
the standard rules for resolving relative URI references.
If relative references were taken relative to the document except for a
special case of "" which was taken as the stylesheet that would be
incompatible with the algorithm for resolving relative uri references in
the relevant RFC and I doubt such a suggestion would ever get past W3C
review (even if it was otherwise a good idea:-)

David


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


Current Thread