Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] centralised alphabetical order ...

From: "james walker" <jameswalkerandy@----------->
To:
Date: 4/1/2004 1:55:00 AM
I think i get a problem with the union operator then, as the xalan server 
the translation is running on can't seem to cope with more than 27 unions of 
files in a for-each statement (it doesnt seem to have enough memory).

I am assuming when u say "><xsl:for-each select="some path that selects at 
least one node from each
document">
 ... select="key(..."
it would be something like <xsl:for-each 
select="document($nsindex/filename)/root/link | 
document($nsindex/filename)/root/link | 
document($nsindex/filename)/root/link">? as i tried something like this 
earlier and placed an xsl:sort after, this is when i encountered the union 
problem!



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





From: David Carlisle <davidc@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] centralised alphabetical order ...
Date: Thu, 1 Apr 2004 12:46:42 +0100

> 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
________________________________________________________________________


_________________________________________________________________

Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent