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

RE: xsl problem

Subject: RE: xsl problem
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Tue, 30 Mar 2004 18:18:07 +0200
RE:  xsl problem
> -----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
  • xsl problem
    • poppe chris - Tue, 30 Mar 2004 09:35:57 -0500 (EST)
      • Andreas L. Delmelle - Tue, 30 Mar 2004 11:10:20 -0500 (EST) <=
      • Mukul Gandhi - Tue, 30 Mar 2004 13:11:16 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

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