Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] xsl:apply-template and xsl:for-ech confusion [Thread Next] Re: [xsl] xsl:apply-template and xsl:for-ech confusionTo: Date: 10/1/2004 5:38:00 PM 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[@subsectorID=$subsector]"> <xsl:apply-templates select=".."/> </xsl:for-each> could be rewritten more simply as: <xsl:apply-templates select="tblMIMCompanies[tblMIMSubSectors[@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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
