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

Re: [XSLT]Use value of parameter

Subject: Re: [XSLT]Use value of parameter
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 11 Apr 2008 11:03:28 +0100
Re:  [XSLT]Use value of parameter
> I need change value of the global parameter,
"global" means that it has the same value "globally" ie for teh entire
run of the stylesheet.  If you want a parameter to have different values
at different points of the execution then by definition it is a local
parameter.

> I need pass a parameter from one template to other template 
use <xsl:with-param  at the point that you use xsl:apply-templates or xsl:call-template.


> and pass  the result from the second template to de first (like a normal  
> function).

like a normal function, a template only has one result, and never
changes the valuues of its input. The way to capture that result is to
use
<xsl:variable name="x">
 <xsl:call-template
 ...

In XSLT 1, $x will always be a result-tree-fragment, but in XSLT2 any
XPath type might be returned.

> Anybody can help me?

You'd probably get more useful help if you stated what problem you were
trying to solve.

David

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.