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

Is there any way to access user request response in xsl

Subject: Is there any way to access user request response in xsl
From: ural <ural@xxxxxxxx>
Date: Thu, 17 Feb 2000 16:27:34 +0000
xsl request.querystring
hi,,

I am using asp as frontend.
my xml file is
<?xml version="1.0" ...?>
<abc>
	<News>
		<title>..............</title>
		<abstract>...........</abstract>
	</News>

	<News>
		<title>..............</title>
		<abstract>...........</abstract>
	</News>
</abc>


I have an xsl file to access this xml data.


In my Asp page suppose I write something like this,

if request.queryString("id")=1 then
   first_news.xsl
else
   second_news.xsl
end if

Then it is not good habit. because tomorrow if I have another 10 news then I cannot sit and create 10 xsl files, right.
So, what I want is,
I want to send some value to xsl file from asp file. ie as we send some value as querystring in asp. and based on this value I want to make my xsl file act upon.


ie if I send 1 as query string, for example, then I must get only first element. If it is 2 then I should get 2nd element.

Is it possible?
If it is... then please help in this regards. This may be a silly question. But I am new to xml and xsl.
So please help..................


rgds
Ural


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.