RE: [xsl] xsl problem

Subject: RE: [xsl] xsl problem
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Tue, 30 Mar 2004 18:18:07 +0200
> -----Original Message-----
> From: poppe chris [mailto:pc_poppe@xxxxxxxxxxx]
>

<snip />
> I would love to see all this happen in one xsl transformation,
>
> anyone got any idea's?

Hi,

XSLT 2.0 (w/ XPath 2.0) would allow you to do this cleanly, if I'm not
mistaken... but I really need to study this closer myself, so I'll leave the
2.0 advice to the real experts.

If switching to 2.0 is not (yet) an option, you could always go for the
node-set() extension function, which would allow you to construct a variable
in which you perform the first step:

<xsl:variable name="vsomevar">
  <xsl:apply-templates select="..." />
</xsl:variable>

This variable will be of type Result Tree Fragment, and thus needs to be
reconverted to a nodeset before you can use it in a 'select' using a syntax
like:

<xsl:apply-templates select="exsl:node-set($vsomevar)" />

In this way you can perform the transform in one pass.


Hope this helps!

Cheers,

Andreas

Current Thread