very cool thanks!
----- Original Message -----
From: "Anton Triest" <anton(_at_)cking(_dot_)be>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Friday, October 01, 2004 3:37 PM
Subject: Re: [xsl] xsl:apply-template and xsl:for-ech confusion
Luke Ambrogio wrote:
ok the solution was infact using
<xsl:apply templates select=".."/>
since there was the child element tblMIMSubsector being processed
OK but this:
<xsl:for-each
select="tblMIMCompanies/tblMIMSubSectors[(_at_)subsectorID=$subsector]">
<xsl:apply-templates select=".."/>
</xsl:for-each>
could be rewritten more simply as:
<xsl:apply-templates
select="tblMIMCompanies[tblMIMSubSectors[(_at_)subsectorID=$subsector]]"/>
Unless there's more than one tblMIMSubSectors with the same subsectorID
inside one tblMIMCompanies,
that would give the same output, or am I wrong? (and if there are such
duplicate subsectorIDs,
the first one would output multiple but identical tblMIMCompanies, whereas
the second one would'nt)
Cheers,
Anton
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--