Re: [xsl] How to reuse param in two different stylesheet?

Subject: Re: [xsl] How to reuse param in two different stylesheet?
From: "Zoe Peng" <zoe@xxxxxxxxxxxx>
Date: Wed, 17 Jul 2002 15:53:15 -0400
Hi Jini,
I got what you mean. 
In order for 2nd stylesheet to get the params, does the transform 
engine need to set the params, too? (for example, I use java 
transformer class to set sessionid as params for stylesheet to get it)
or I can get these params through the url? Thanks
--Zoe


> Hi Zoe,
> 
> > When I click Get Contents1, the params I want to use is from the
> > stylesheet1 which is the same pop and smtp; but, I don't have this
> > information anymore when I get the second xml document. Is there a
> > way to know and continue use the params?
> 
> The only information that an XSLT stylesheet knows about is the
> information that it's passed either within the source document or as a
> parameter. If you want information to get into a stylesheet, you have
> to explicitly pass it as a parameter.
> 
> What I suggest you do is use the value of the parameter in stylesheet1
> within the URL that you create; that will mean that the parameter is
> passed to the next stylesheet (assuming here that you're using
> server-side transformations such that the parameters in the URL get
> passed to the stylesheet).
> 
> Cheers,
> 
> Jeni
> 
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 
> 
>  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