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 output. 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. Cheers, Dimitre Novatchev. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] document() question, Michael Kay | Thread | [xsl] RE: RE: building a nodeset fr, Hall, Kurt |
RE: [xsl] document() question, Michael Kay | Date | [xsl] RE: RE: building a nodeset fr, Hall, Kurt |
Month |