This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to reuse param in two different stylesheet?
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: "Zoe Peng" <zoe at allfools dot net>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 17 Jul 2002 17:08:30 +0100
- Subject: Re: [xsl] How to reuse param in two different stylesheet?
- Organization: Jeni Tennison Consulting Ltd
- References: <200207171531.g6HFVGg04947@allfools.net>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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