Re: [xsl] XSLT Dead?

Subject: Re: [xsl] XSLT Dead?
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 17 Apr 2007 22:26:37 +0100
On 4/17/07, Steve <subsume@xxxxxxxxx> wrote:
Ahh, give and take. For-each is given nodes and apply-templates takes
nodes it "wants". I think I see.

Well the answer I look for is that with xsl:apply-templates the processing is controlled by the structure of the input document, while with xsl:for-each the processing is controlled by the stylesheet. If you understand and can describe what happens when you call <xsl:apply-templates/> then you're doing better than most.

I think its good practice to only use xsl:for-each to change the context node.

Current Thread