Re: [xsl] centralised alphabetical order ...

Subject: Re: [xsl] centralised alphabetical order ...
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Apr 2004 14:35:46 +0100
  it would be something like <xsl:for-each 
  select="document($nsindex/filename)/root/link | 
  document($nsindex/filename)/root/link | 
  document($nsindex/filename)/root/link


you don't want the /root/link bits as you just want the document nodes.
each bit you are unioning there is teh same but I assume that's just an
artifact of the cut down example.

> I forgot to say i have about 30 files which need to be searched.

if you have a file that contains the filenames
<x>
<y>a.xml</y>
<y>b.xml</y>
....


then you can just do select="document($file/x/y)" and load all thirty documents
in one go.

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