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

Re: Using XSLT's key() function while context in seco

Subject: Re: Using XSLT's key() function while context in secondary document?
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 19 Feb 2008 17:43:34 +0000
Re:  Using XSLT's key() function while context in  seco
On 19/02/2008, Scott Trenda <Scott.Trenda@xxxxxxxx> wrote:
> Unless there's going to be a processing error at
> "document('s.xml')//Channel" when s.xml does not exist, then the pattern
> should be solid here. From the XSLT 1.0 specification:
> "When the second argument to the key function is of type node-set, then
> the result is the union of the result of applying the key function to
> the string value of each of the nodes in the argument node-set."
> So, by passing document('s.xml')//Channel as the second argument to
> key(), you can bypass the explicit context switch below, and jump right
> into processing the key results. I had mentioned before that this is
> beneficial only if no other processing is needed for the
> document('s.xml')//Channel nodes, but that was part of the original
> example.

heh,  I didn't know that...

Thanks Scott!

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

Current Thread


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.
First Name
Last Name
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.