This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Passing Parameters or ?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]