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

RE: recupering value in other template

Subject: RE: recupering value in other template
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Thu, 5 Jun 2003 13:15:02 -0500
RE:  recupering value in other template
> and i can't also not recuper  a parameter after calling template B?

If you mean that template A passes a parameter to template B when
calling B, and B passes it back as a parameter when it's done,
then no, you can't.
The only way to pass data back from template B to its caller is
as the result of the template (a result tree fragment).

So you could do

 <xsl:template name="A">
   <xsl:variable name="result-of-B">
     <xsl:call-template name="B" />
   </xsl:variable>

   <xsl:text>result of B: </xsl:text>
   <xsl:value-of select="$result-of-B" />
 </xsl:template>

or something like that.

By the way we don't have the word "recuper" in English, so I'm not
completely sure what you're trying to do.
(But I wish I knew French as well as you know English.)

Lars


 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.