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

RE: Question about the key() function

Subject: RE: Question about the key() function
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 14 May 2005 00:06:43 +0100
RE:  Question about the key() function
> One more point. I re-wrote the key() function within the
> <xsl:apply-templates> element.
> 
> Original
> --------
> <xsl:apply-templates select="key('x',addressbook/address/zip)" />
> 
> Modified
> --------
> <xsl:apply-templates select="addressbook/address[key('x', zip)]" />
> 
> This time it worked.

Which means that your processor is correctly eliminating duplicates in the
result of a path expression, but is incorrectly failing to remove them in
the result of key().

Michael Kay
http://www.saxonica.com/

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.