[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: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 1 Apr 2004 13:41:35 +0100
RE:  centralised alphabetical order ...
The key() function locates nodes within the document containing the context
node. You have to know which documents you want to search, it's not capable
of searching across documents.

Michael Kay 

> -----Original Message-----
> From: james walker [mailto:jameswalkerandy@xxxxxxxxxxx] 
> Sent: 01 April 2004 11:40
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  centralised alphabetical order ...
> 
> Hello,
> When u said "You don't need to worry that the key is defined 
> against every 
> possible
> >document; the document to be searched is determined when you 
> call the key()
> >function.
> " which key function did u mean?
> 
> At the moment
> <xsl:key name="cat-by-firstocc" match="link" 
> use="substring(title,1,1)" /> 
> ths statement only seems to be matching key values to titles 
> in the input 
> document (which doesnt contain anything as all the links are 
> in seperate 
> documents within $nsindex)?
> 
> 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.
> 
> cheers
> james
> 
> _________________________________________________________________
> Express yourself with cool new emoticons 
> http://www.msn.co.uk/specials/myemo

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.