Subject: RE: [xsl] building a nodeset from selected nodes From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 05 Jul 2001 17:18:27 +0100 |
Hi Wendell,
Using key() is sooooo much easier than recursive templates.
At Thursday, July 05, 2001 8:52 AM, you wrote: > (Even if it didn't, you could still iterate over the column children and > use . for that second argument. ;-)
I originally thought of doing this (assuming I understand you) but then I got back to the problem where I have multiple node-sets with no obvious (to me?) way to combine them into a single node-set, though I was eventually able to combine them using recursive template calls.
<xsl:for-each select="column"> <xsl:apply-templates select="key('columns-by-name', .)"/> </xsl:for-each>
Is there a simpler approach to combine a variable number of node-sets into a single node-set (without using extensions)?
<xsl:template match="query"> <xsl:variable name="matching-columns" select="//table/column[name=current()/column]"/> <xsl:for-each select="$matching-columns"> ... </xsl:for-each> </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] building a nodeset from s, Wendell Piez | Thread | RE: [xsl] building a nodeset from s, Hall, Kurt |
Re: [xsl] Accumulator needed, Karim Barkati | Date | [xsl] Re: Re: Re: RE: Re: RE: Re: X, Dimitre Novatchev |
Month |