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

RE: difference between Result Tree Fragment (RTF) and

Subject: RE: difference between Result Tree Fragment (RTF) and a nodeset
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 25 Apr 2003 15:43:24 -0400
xsl copy of tree fragment
William (Bill?),

As I just posted, the space makes no difference as to whether a variable refers to a node set or to an RTF. It's all in how the variable is declared.

<xsl:variable name="node-set" select="/node/set"/>

<xsl:variable name="RTF">
  <xsl:copy-of select="/node/set"/>
</xsl:variable>

$RTF holds a result tree fragment. Note that the instruction xsl:copy-of creates a *copy* of the node set. In XSLT 1.0, all such copies are RTFs. But in general, any variable you bind by inserting element content into the variable element creates an RTF.

$node-set holds a node set. That is because this is the type of data object returned by the XPath expression in the select attribute. Had it said select="false()", the variable would refer to a Boolean value, and so forth.

For more on your particular problem, you've seen that earlier post by now, probably.

Cheers,
Wendell

At 02:42 PM 4/25/2003, you wrote:
I don't mean to muddy the waters of Leena Kulkarni's query,
but if anyone would like to also consider my ~similar (sort of)
query of the previous couple of days, I'd appreciate it... :>)


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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.