This prompts a few other questions I've had for some time: When a sequence is passed as a parameter, what is actually passed -- its copy or a reference to the sequence? If there's actually such thing as a reference to a sequence, then why should calculating the hash key of this reference take longer than scanning through many items until the last (which may be thousands of items away)? Are subsequences shared so that when an item is added at either end the original sequence is not copied, but a reference to itself is used? I know the general answer about this being implementation-dependent, however Saxon is the only real XSLT 2.0 processor I have at this moment. I also believe that understanding the principles behind the answers will help XSLT programmers write better, more efficient XSLT code units. Cheers, Dimitre.
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