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

RE: Returning a Tree

Subject: RE: Returning a Tree
From: "Sullivan, Dan" <dsullivan@xxxxxxxxxxx>
Date: Tue, 4 Sep 2001 12:45:20 -0700
calling templates returning result
A variable without a select attribute contains a result tree fragment,
which in effect is a string. There is no way to assign the result of a
call-template with the select attribute... so in effect call-template
always returns a result tree fragment, never a nodeset. So there is no
standard way to do what you are trying to do. Many XSLT processors,
however, have extension functions that will convert a result tree
fragment into a nodeset.

Dan

-----Original Message-----
From: Darren Hayduk [mailto:dhayduk@xxxxxxxxxxxxxxx]
Sent: Tuesday, September 04, 2001 3:28 PM
To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  Returning a Tree


I'm trying to construct a template (call-template) that will return a
node
set, and I can't figure out how to do it.

I've had success calling a template with a node-set (a, below),
assigning a
node-set to a variable which can be used in the same context (b, below),
but
not returning a node-set (c, below).

A: <xsl:call-template name="a"> <xsl:with-param select="//nodes"
name="in"/>
</xsl:call-template>
B: <xsl:variable name="v" select="//nodes"/>
C: <xsl:template name="c"> <xsl:value-of>... -or-
<xsl:copy>...</xsl:template>
and then
<xsl:variable name="vc">
  <xsl:call-template name="c">	
</xsl:variable>
<xsl:for-each select="$vc"> ...

Is this possible??

Thanks,
Darren

_______________________________________________
Darren Hayduk | Network Management
Nauticus Networks, Inc.
200 Crossing Blvd, Framingham, MA 01702
508-270-0500 x299


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


 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.