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

Re: xsl:key

Subject: Re: xsl:key
From: "Scott Boag/CAM/Lotus" <Scott_Boag@xxxxxxxxx>
Date: Wed, 3 May 2000 14:50:41 -0400
wed cam
> As for the term "match" in xsl:key, I think that it really
> acts like "select" does elsewhere.

Uh, not true.  It is a match pattern.  The implementation pours through the
nodes in the (current) source tree, and tries to match each node to the
pattern.  The "use" attribute is a select pattern which is used to locate
the desired value relative to the node matched.  If you want to find key in
another source tree, you have to call the key() function inside a for-each
which selects a node using the document() function.

-scott




                                                                                                                           
                    "David                                                                                                 
                    Marston/CAM/Lotus"           To:     xsl-list@xxxxxxxxxxxxxxxx                                         
                    <David_Marston@lotus.        cc:     (bcc: Scott Boag/CAM/Lotus)                                       
                    com>                         Subject:     Re: xsl:key                                                  
                    Sent by:                                                                                               
                    owner-xsl-list@mulber                                                                                  
                    rytech.com                                                                                             
                                                                                                                           
                                                                                                                           
                    05/03/2000 01:58 PM                                                                                    
                    Please respond to                                                                                      
                    xsl-list                                                                                               
                                                                                                                           
                                                                                                                           




Michael French asks:
>Is there any way to key nodes from an external document() ?

I think the example given at the end of section 12.2 of the
XSLT spec does what you want. This example is known to work
with Xalan.

As for the term "match" in xsl:key, I think that it really
acts like "select" does elsewhere.
.................David Marston


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list





 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.