Subject: RE: Passing Parameters or ?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 29 Mar 2001 10:15:44 +0100
|
> I am new to XSL so the following may seem trivial, but I
> could not find the answer in the
> FAQ. How does one pre-process a document or node and then use
> the result in a second pass?
>
Like this:
<xsl:variable name="temp-tree-1">
<xsl:apply-templates select="/" mode="phase1"/>
</xsl:variable>
<xsl:variable name="temp-tree-2">
<xsl:apply-templates select="xx:node-set($temp-tree-1)" mode="phase2"/>
</xsl:variable>
<xsl:template match="/">
<xsl:apply-templates select="xx:node-set($temp-tree-2)" mode="phase3"/>
</xsl:template>
The xx:node-set() is an extension function supplied by your favourite
vendor.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|