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

Subject: [xsl] How to reuse param in two different stylesheet?
From: "Zoe Peng" <zoe@xxxxxxxxxxxx>
Date: Wed, 17 Jul 2002 11:31:17 -0400
Hi, please help.

The scenario is: 
1. first query(http://query1/ )to get dynamic xml document and apply 
stylesheet to generate query2 on the fly; e-mail application for 
example. 
xml: 
<mailquery>
<pop3srv>param1</pop3srv>
<smtpsrv>param2</smtpsrv>
</mailquery>
stylesheet
<xsl:stylesheet..>
<a href="http://query2?pop3=param1&smpt=param2&action=read"; >Read</a>
<a href="http://query2?pop3=param1&smpt=param2&action=send"; >Send</a>
</xsl:stylesheet>

2. when I click Read, I will get another xml document and 
another stylesheet on the fly
<Mail>
<Msg id="1">bbb</Msg>
<Msg id="2">ccc</Msg>
</Mail>

<xsl:stylesheet..>
You have <xsl:value-of select="count(Mail/Msg)" /> messages. 
<a href="http://query3?PARAMS...msgid=1&action=getContents>Get 
Contents1</a>
<a href="http://query3?PARAMS...msgid=2&action=getContents>Get 
Contents2</a>
</xsl:stylesheet>

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? 
Please help. Thanks. 

--Zoe







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


Current Thread