Re: [xsl] xsl:key and document()

Subject: Re: [xsl] xsl:key and document()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 9 Jan 2001 09:32:53 GMT
> Another problem with using document() with the URI of the original
> source document is, of course, that the original source document might
> change depending on the run of the stylesheet, so you can't hard-code
> it into the stylesheet. 

but you could use document('',/) ie the relative (empty) URI from the
base URI of the root node of the source. (But as you say I don't think
there is any guarantee that the original document can actually be
constructed from this URI)


> If I'm using multiple documents, I usually have a global variable
> holding the root node of the source so that I can always get back to
> it easily wherever I am:

Good advice (as always:-)

David


_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

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


Current Thread