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

How to reuse param in two different stylesheet?

Subject: How to reuse param in two different stylesheet?
From: "Zoe Peng" <zoe@xxxxxxxxxxxx>
Date: Wed, 17 Jul 2002 11:31:17 -0400
param stylesheet
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

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.