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

Re: double pass in XSLT2

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

> how would I write a double pass (eg
> http://www.biglist.com/lists/xsl-list/archives/200302/msg00306.html )
> 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:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.