[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:apply-template and xsl:for-ech confusion

Subject: Re: xsl:apply-template and xsl:for-ech confusion
From: "Luke Ambrogio" <luke.ambrogio@xxxxxxxxxxxx>
Date: Wed, 1 Oct 2003 15:41:34 +0200
apply template
very cool thanks!

----- Original Message -----
From: "Anton Triest" <anton@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, October 01, 2004 3:37 PM
Subject: Re:  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[@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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.