But that seems to mean that I can't use a key in this case,
because I want to use it inside xsl:sort:
ah, in that case you'd need to use an extensin function eg
saxon:function so you can get the for-each inside the Xpath select
attribute, or use XSLT2/Xpath2 which alows you to go
document('jhg.xml')/key(...)
David
________________________________________________________________________
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
________________________________________________________________________