[xsl] Re: RE: building a nodeset from selected nodes

Subject: [xsl] Re: RE: building a nodeset from selected nodes
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 5 Jul 2001 11:36:13 -0700 (PDT)
Hall, Kurt wrote:

> Thanks, but doesn't the instruction: 
>	<xsl:for-each select="key('columns-by-name', column)">
> get a node-set of columns where name=column?  I need an instruction
that can get a node-set of columns where name IN (col1, col2, ...).
> Re: using an apply-templates: I don't think I can use it as a way to
> generate my node-list which can then be passed to a call-template.
> The problem I see is that if I separate the node-set generation
> from my transformation of that node set, I've got to use a variable
> to connect the two (which I can't do because I don't have access to 
> the nodeset() extension).

Hi Kurt,

Wendel gave you the key to the exact solution to your problem.

You don't understand it at present and this means that you need to read a good book
on XSLT -- I'd recommend Mike Kay's "XSLT Programmer's Reference".

Otherwise the only way to show to you that Wendel's solution is correct, would be to
write the complete code of the stylesheet so that when you apply it to your xml
source you'll have to agree with the fact that it produces exactly the desired

But of course, this would not be useful to you at all -- you need to be gettting
some experience -- therefore read more and try to write XSLT code.

Dimitre Novatchev.

Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread