Re: [xsl] Nested loops

Subject: Re: [xsl] Nested loops
From: Peter Bradley <apvx95@xxxxxxxxxxxxx>
Date: Sat, 13 Nov 2004 12:47:35 +0000
Ysgrifennodd Bruce D'Arcus:

How about this:

<xsl:template match="invoice">
<xsl:variable name="record" select="invoice_rec/invoiceNumber"/>
<xsl:apply-templates select="invoice_rec"/>
<xsl:apply-templates
select="../invoice_line[invoice_line_rec/invoiceNumber='$record']"/>
...
</xsl:template>


Bruce

Bruce,


Thanks. I think I must be panicking (sp?). I had tried doing the above but for reasons of deep-rooted stupidity had tried to use <xsl:value-of...> in the select attribute.

Right. I'm off to play with this with renewed hope :-)

Thanks

Peter

Current Thread