|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








