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

Re: xsl:key() and $variables.

Subject: Re: xsl:key() and $variables.
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 21 Jul 2006 18:35:52 -0400
Re:  xsl:key() and $variables.
Steve -- in XSLT 2.0 the key() function allows a third argument to provide a context for the retrieval; that's what it's doing in Ken's example. In 1.0 we get around that by using a for-each instruction to change context to the document wherein sits the node we want.

Commonly when we do this we have to bind variables outside the call to for-each, to use inside the key(). The 2.0 call to key() is thus more concise in two ways: lots less side-stepping.

Actually since the hint was in Mike's original answer, you've been given the answer to your question (how do you do this in 1.0) twice now. I suppose it doesn't count if you don't know that's what it is.

Okay, enough from me -- I didn't follow the top of the thread carefully either (Mike, Ken and Dimitre all being more than competent to help), so I'm at risk myself --


At 04:46 PM 7/21/2006, Tommie wrote:
Steve --

At 4:12 PM -0400 7/21/06, Steve wrote:
My problem relates to the ... nevermind. Read up, Dimitre.

At 4:27 PM -0400 7/21/06, Steve wrote:
Yeah, I gathered that

but am as yet unable to apply it. If you're going to attempt to help,
please read the top thread.

Please assume that Dmitre is trying to help and did not understand your inquiry. Instead of fussing at someone who is trying to help, or assuming that the person has not read your previous posts, clarify your question.

On XSL-List it is generally a good idea to assume that everyone is of
good will, and that if your question is not being answered it was not
understood. OK?

-- Tommie
B. Tommie Usdin                        mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in XML and SGML

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.