[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:key and document()

Subject: Re: xsl:key and document()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 9 Jan 2001 09:32:53 GMT
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.