[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|