Re: [xsl] double pass in XSLT2

Subject: Re: [xsl] double pass in XSLT2
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 20 Feb 2003 19:07:25 +0000
Hi Tobi,

> how would I write a double pass (eg
> )
> in XSLT2?

Just drop the xx:node-set() call -- in XSLT 2.0 a variable set using
its content gets set to the document node of the tree constructed by
the content:

<xsl:variable name="temp">
  <xsl:apply-templates select="/" mode="phase1"/>

<xsl:template match="/">
  <xsl:apply-templates select="$temp" mode="phase2"/>

I prefer the $temp variable to be declared within the template for the
document node, but that's just a stylistic thing.



Jeni Tennison

 XSL-List info and archive:

Current Thread