David, Thanks for the tip. If I can make this work I'll post the resulting code.
Rob Stanley Geac Enterprise Solutions Limited +44 (0)1527 496535 Eagle House The Slough, Studley, Warks. B80 7EN -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 11 January 2002 19:26 To: [EMAIL PROTECTED] Subject: Re: Help please: Key() and Generated NodeSets Rob Stanley writes: >Can any guru-types out there tell me if it is possible to use the key >function against nodes in a NodeSet generated by an extension function? The trick is the relationship between the "match" node and the "use" node. Since a NodeSet is just a collection of nodes with no structure, you can't key into the NodeSet itself. But you may figure out a way to define the key relationship so it pertains to nodes in the source tree, or another document as shown in the final example in XSLT 12.2, then use your returned NodeSet to choose the nodes. In other words, the last example in 12.2 shows how the document() function, which returns a NodeSet, can be used to change the domain over which key() searches. However, the relationship between each entry element and its @name was structured into the file. If the returned nodes from your function have relationships determined elsewhere, you might have a solution by emulating the example. .................David Marston
