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

result tree fragments and node-sets

Subject: result tree fragments and node-sets
From: "Chris Nolte" <nolte@xxxxxxxxxxxxxxx>
Date: Fri, 6 Jul 2001 11:02:24 -0700
 result tree fragments and node-sets
I'm (still) a bit confused by the distinction between result tree fragments
and node-sets.

Can I do something like the following (and is it reasonable)?

<xsl:template name='foo'>
  <xsl:variable name='temp0'>
    <xsl:apply-templates mode='zero'>
  </xsl:variable>
  <xsl:variable name='temp1'>
    <xsl:apply-templates select='$temp0' mode='one'>
  </xsl:variable>
  <xsl:variable name='temp2'>
    <xsl:apply-templates select='$temp1' mode='two'>
  </xsl:variable>
  <xsl:copy-of select='$temp2' />
</xsl:template>

I had been trying to understand basic XSLT before learning about extension
functions.  Now I have read messages that seem to indicate that a RTF can't
be the argument of a select expression; only node-sets can be selected, and
the above should be written select='xx:node-set($temp0)'.  Yet by all
appearances my stylesheet is working without using the node-set extension
function.  Is this an artifact of my flat data structure?

When should I use the node-set extension function, what does it actually do,
and what more does it allow me to do?

Chris



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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.