This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: xsl:key and document()



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]