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

Re: centralised alphabetical order ...

Subject: Re: centralised alphabetical order ...
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Apr 2004 12:46:42 +0100
Re:  centralised alphabetical order ...
> I wanted to match all the titles in all documents under nsindex using the 
> same xsl:key statement. For example, if i had 4 files with one title in each 
> which started with the letter A, i would want the statement <xsl:for-each 
> select="key('cat-by-firstocc', A)"> to go through all of those documents.

you can't have a single key lookup that covers more than one document.
xsl:key applies to all documents but each is indexed separately and
key() just returns nodes from the current document.

so you need to go
<xsl:for-each select="some path that selects at least one node from each
document">
 ... select="key(...

Often this isn't quite the semantic that you want, but it's the semantic
that you get:-)

David


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.